Pre-release
This release is a pre-release and may not be stable for production use.
youtube-django
Install
$ pip install youtube-django
Add 'youtube_django' to your settings.
INSTALLED_APPS = [
# [...]
'youtube_django',
]
Run migrations:
$ python manage.py migrate
Add the following Google Oauth Settings to your settings.py:
GOOGLE_OAUTH2_CLIENT_ID = '<Your Client ID from Google Developer Console>' GOOGLE_OAUTH2_CLIENT_SECRET = '<Your Client Secret from Google Developer Console>' GOOGLE_OAUTH2_CALLBACK_VIEW = 'oauth2callback' # your oauth callback view name
Add your views.Example:
from youtube_django.views import (
VideoUploadView,
AuthorizeView,
Oauth2CallbackView,
)
urlpatterns = [
path('^yt/upload/', VideoUploadView.as_view(), name='video_upload'),
path('^yt/authorize/', AuthorizeView.as_view(), name='authorize'),
path('^yt/oauth2callback/', Oauth2CallbackView.as_view(),
name='oauth2callback')
]
Metadata
Release files for youtube-django 0.2.dev2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| youtube_django-0.2.dev2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / youtube_django-0.2.dev2-py2.py3-none-any.whl
| Download URL | youtube_django-0.2.dev2-py2.py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dd2d14fe8bc8e232b18def1358fd66603819c614d1b9ae8df58396c41a4ed844
|
|
BLAKE2b-256 checksum How to use checksums |
2a1a2d1bfea93f9cf09df1f6f2bdc40e4e8e55445971c075ee11d1739033e8b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|