Giter VIP home page Giter VIP logo

django-youtube's People

Contributors

bitdeli-chef avatar dependabot[bot] avatar laplacesdemon avatar natea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-youtube's Issues

fetch_feed_by_username giving error: 'YouTubeVideoEntry' object has no attribute 'video_id'

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?

title and description in form not working properly

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.

No module named defaults after install

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

  1.             resolver_match = resolver.resolve(request.path_info)
    
    File "/home/ri/studio/env/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
  2.         for pattern in self.url_patterns:
    
    File "/home/ri/studio/env/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns
  3.     patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    
    File "/home/ri/studio/env/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module
  4.         self._urlconf_module = import_module(self.urlconf_name)
    
    File "/usr/lib/python2.7/importlib/init.py" in import_module
  5. **import**(name)
    
    File "/home/ri/studio/Audiotube/audiotube/urls.py" in
  6. (r'^youtube/', include('django_youtube.urls')),
    
    File "/home/ri/studio/env/local/lib/python2.7/site-packages/django/conf/urls/init.py" in include
  7.     urlconf_module = import_module(urlconf_module)
    
    File "/usr/lib/python2.7/importlib/init.py" in import_module
  8. **import**(name)
    
    File "/home/ri/studio/env/local/lib/python2.7/site-packages/django_youtube/urls.py" in
  9. from django.conf.urls.defaults import patterns, url, include

Exception Type: ImportError at /
Exception Value: No module named defaults

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.