YouTube API Data V3 and Google Authentication implementation for Django
Project description
youtube-django
docs | |
tests | |
package |
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') ]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Built Distribution
Close
Hashes for youtube_django-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df6c2432495f4c3fde6eb6c5caac2b9c06d5b505e347827b3ca50ef917ecabcc |
|
MD5 | 35d633d7c189d17484038b1439dee4e6 |
|
BLAKE2-256 | 61581735a25bf433ed1c857f49f096484c8bd4b1a3b24df87e89fea7df87cfa5 |