Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Type: ImportError at / Exception Value: cannot import name feed #3

Closed
arthurlutz opened this issue Mar 28, 2012 · 3 comments

Comments

@arthurlutz
Copy link
Contributor

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 1.4
Python Version: 2.7.2
Installed Applications:
('about',
'accounts',
'annotations',
'blogs',
'btb',
'comments',
'correspondence',
'moderation',
'profiles',
'subscriptions',
'scanning',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.humanize',
'django.contrib.admin',
'django.contrib.flatpages',
'django.contrib.messages',
'django.contrib.staticfiles',
'registration',
'djcelery',
'django_bcrypt',
'lettuce.django',
'compressor',
'sorl.thumbnail',
'notification',
'pagination',
'urlcrypt',
'south')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'pagination.middleware.PaginationMiddleware')

Traceback:
File "/home/arthur/local/btb/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                         request.path_info)
    
    File "/home/arthur/local/btb/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
  2.         for pattern in self.url_patterns:
    
    File "/home/arthur/local/btb/venv/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/arthur/local/btb/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module
  4.         self._urlconf_module = import_module(self.urlconf_name)
    
    File "/home/arthur/local/btb/venv/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  5. **import**(name)
    
    File "/home/arthur/local/btb/btb/scanblog/urls.py" in
  6. url(r'^notifications/', include('subscriptions.urls')),
    
    File "/home/arthur/local/btb/venv/local/lib/python2.7/site-packages/django/conf/urls/init.py" in include
  7.     urlconf_module = import_module(urlconf_module)
    
    File "/home/arthur/local/btb/venv/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  8. **import**(name)
    
    File "/home/arthur/local/btb/btb/scanblog/subscriptions/urls.py" in
  9. url(r'', include('notification.urls')),
    
    File "/home/arthur/local/btb/venv/local/lib/python2.7/site-packages/django/conf/urls/init.py" in include
  10.     urlconf_module = import_module(urlconf_module)
    
    File "/home/arthur/local/btb/venv/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  11. **import**(name)
    
    File "/home/arthur/local/btb/venv/src/django-notification/notification/urls.py" in
  12. from notification.views import notices, mark_all_seen, feed_for_user, single, notice_settings
    File "/home/arthur/local/btb/venv/src/django-notification/notification/views.py" in
  13. from django.contrib.syndication.views import feed

Exception Type: ImportError at /
Exception Value: cannot import name feed

@arthurlutz
Copy link
Contributor Author

renaming feed to Feed in /home/arthur/local/btb/venv/src/django-notification/notification/views.py seems to solve the problem, but I'm not sure this is the proper solution.

@yourcelf
Copy link
Owner

Hmm.. gonna look into this. I wonder if Django 1.4 is the issue? I haven't yet upgraded, and it just landed (we're still running 1.3.x). I'm traveling the next 3 days but will try to look into this early next week. Django 1.4 is definitely a high priority to shift to soon.

@yourcelf
Copy link
Owner

yourcelf commented Apr 3, 2012

Thanks, fixed in http://github.com/yourcelf/btb/commit/da4edd8877d937512580cc01c4b3b9c2a9b1b94f. Django 1.4 broke django-notification; we're now using our own fork of django-notification. With the virtualenv activated, run:

pip install -r requirements.txt --upgrade

in order to fetch the new django-notification.

@yourcelf yourcelf closed this as completed Apr 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants