Hi,

I have an issue where i am including contrib.auth into my URLs,
however, I get this error:

my url pattern:

(r'^accounts/', include('django.contrib.auth.views.login')),


Could this be an issue with my path, or python path?

Thanks for your help, as always, learning something new - it's easy to
run into blockers.

and here's my stack trace:

Environment:

Request Method: GET
Request URL: http://72.251.193.148/accounts
Django Version: 1.2 beta 1
Python Version: 2.6.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.admin',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'registration',
 'gather']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')


Traceback:
File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py"
in get_response
  80.                     response = middleware_method(request)
File "/usr/lib/python2.6/dist-packages/django/middleware/common.py" in
process_request
  58.                     _is_valid_path("%s/" % request.path_info,
urlconf)):
File "/usr/lib/python2.6/dist-packages/django/middleware/common.py" in
_is_valid_path
  143.         urlresolvers.resolve(path, urlconf)
File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
resolve
  307.     return get_resolver(urlconf).resolve(path)
File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
resolve
  222.                     sub_match = pattern.resolve(new_path)
File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
resolve
  220.             for pattern in self.url_patterns:
File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
_get_url_patterns
  249.         patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
_get_urlconf_module
  244.             self._urlconf_module =
import_module(self.urlconf_name)
File "/usr/lib/python2.6/dist-packages/django/utils/importlib.py" in
import_module
  35.     __import__(name)

Exception Type: ImportError at /accounts
Exception Value: No module named login

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to