I'm using Django 96.1 and am attempting to enable the user authentication system following the directions in the Django book and website documentation. I'm also using the 'login_required' decorator to restrict all my views, so typing in any valid address should redirect me to the login screen. Unfortunately, all I've been able to accomplish is to get the error 'ImportError: No module named login".
Here's the traceback: /var/lib/python-support/python2.4/django/core/handlers/base.py in get_response: 68. callback, callback_args, callback_kwargs = resolver.resolve(request.path) /var/lib/python-support/python2.4/django/core/urlresolvers.py in resolve: 162. sub_match = pattern.resolve(new_path) /var/lib/python-support/python2.4/django/core/urlresolvers.py in resolve: 160. for pattern in self.urlconf_module.urlpatterns: /var/lib/python-support/python2.4/django/core/urlresolvers.py in _get_urlconf_module: 177. self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) When I switch over to the admin interface and login, typing in an address for my webpage gets the same error, but it looks like it gets generated while trying to render my templates: In template ~/project/mitigation/templates/company_detail.html, error at line 9: Caught an exception while rendering: No module named login 9. {% for project in company.projects.all %} Traceback: /var/lib/python-support/python2.4/django/template/__init__.py in render_node 723. result = node.render(context) /var/lib/python-support/python2.4/django/template/defaulttags.py in render 122. nodelist.append(node.render(context)) /var/lib/python-support/python2.4/django/template/__init__.py in render 773. output = self.filter_expression.resolve(context) /var/lib/python-support/python2.4/django/template/__init__.py in resolve 563. obj = resolve_variable(self.var, context) /var/lib/python-support/python2.4/django/template/__init__.py in resolve_variable 656. current = current() /var/lib/python-support/python2.4/django/db/models/base.py in get_absolute_url 448. return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self) /var/lib/python-support/python2.4/django/db/models/__init__.py in inner 28. return reverse(bits[0], None, *bits[1:3]) /var/lib/python-support/python2.4/django/core/urlresolvers.py in reverse 241. return '/' + resolver.reverse(viewname, *args, **kwargs) /var/lib/python-support/python2.4/django/core/urlresolvers.py in reverse 212. return pattern.reverse_helper(lookup_view, *args, **kwargs) /var/lib/python-support/python2.4/django/core/urlresolvers.py in reverse_helper 223. sub_match = self.reverse(lookup_view, *args, **kwargs) /var/lib/python-support/python2.4/django/core/urlresolvers.py in reverse 209. for pattern in self.urlconf_module.urlpatterns: /var/lib/python-support/python2.4/django/core/urlresolvers.py in _get_urlconf_module 177. self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) This is a pretty big stumbling block to getting our website deployed, so any help would be greatly appreciated. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---