laplacesdemon / django-youtube Goto Github PK
View Code? Open in Web Editor NEWYoutube API wrapper app for Django
License: BSD 3-Clause "New" or "Revised" License
Youtube API wrapper app for Django
License: BSD 3-Clause "New" or "Revised" License
Here's my effort:
def video_list(request, username=None):
# trying to lists all user uploaded videos in my channel
# If user is not authenticated and username is None, raise an error
if username is None and not request.user.is_authenticated():
from django.http import HttpResponse
return HttpResponse404
# loop through the videos of the user
api = Api()
api.authenticate()
videos = api.fetch_feed_by_username (username='mychannelname')
video_params = []
for video in videos.entry: # omitting entry gives error "...object not iterable"
video_params.append(_video_params(request, video.video_id))
return render_to_response(
"django_youtube/videos.html",
{"video_params": video_params},
context_instance=RequestContext(request)
)
what could I be doing wrong?
its take too much time to change url package ,Modelform's attribute which is necessary to define in django 1.6 or greater version.
Seems like a closing tag </iframe> is missing at https://github.com/laplacesdemon/django-youtube/blob/master/django_youtube/templates/django_youtube/video.html
This causes a problem when using videos.html then.
Hi,
Could you show an example where the upload form includes title and a description? I'm unable to add the title and the description from a POST through your api.upload method. It may be a bug related to google updating the api. Not sure.
Please help me with this.I already have authenticated using django-social-auth. I need to upload to user youtube account from there.
i follow the procedure to install the django-youtube but getting below error
Environment:
Request Method: GET
Request URL: http://localhost.com:8000/
Django Version: 1.7
Python Version: 2.7.6
Installed Applications:
('django.contrib.sites',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'dsp',
'frontend',
'ckeditor',
'social.apps.django_app.default',
'sorl.thumbnail',
'django_youtube')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "/home/ri/studio/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
resolver_match = resolver.resolve(request.path_info)
for pattern in self.url_patterns:
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
self._urlconf_module = import_module(self.urlconf_name)
**import**(name)
(r'^youtube/', include('django_youtube.urls')),
urlconf_module = import_module(urlconf_module)
**import**(name)
Exception Type: ImportError at /
Exception Value: No module named defaults
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.