Chris,

You led me down the right track, the problem being my registration app
was in two paths at the same time, I guess there was some craziness
going on with the errors. Thanks for your time. I hate being new at
Django, I want to be seasoned.

Thanks,
Patrick
On Jul 7, 9:45 am, Chris Lawlor <lawlor.ch...@gmail.com> wrote:
> The 'from gather import login, logout' line at the bottom of the stack
> trace looks pretty suspicious. Could you post the code to 'gather' and
> explain how your files are laid out?
>
> On Jul 7, 12:51 am, reduxdj <patricklemi...@gmail.com> wrote:
>
> > Thanks, It looks like still have this nagging n00b issue, the problem
> > seems to be with the way things configured, none of my templates for
> > my installed apps are working correctly,
> > for instance, my django admin isn't running out of the box, i always
> > get the error no module named LOGIN, as below:
>
> > Environment:
>
> > Request Method: GET
> > Request URL:http://72.251.193.148/admin/
> > 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']
> > Installed Middleware:
> > ('django.middleware.common.CommonMiddleware',
> >  'django.contrib.sessions.middleware.SessionMiddleware',
> >  'django.contrib.auth.middleware.AuthenticationMiddleware')
>
> > Template error:
> > In template /usr/lib/python2.6/dist-packages/django/contrib/admin/
> > templates/admin/base.html, error at line 31
> >    Caught ImportError while rendering: cannot import name login
> >    21 :     <!-- Header -->
>
> >    22 :     <div id="header">
>
> >    23 :         <div id="branding">
>
> >    24 :         {% block branding %}{% endblock %}
>
> >    25 :         </div>
>
> >    26 :         {% if user.is_active and user.is_staff %}
>
> >    27 :         <div id="user-tools">
>
> >    28 :             {% trans 'Welcome,' %}
>
> >    29 :             <strong>{% filter force_escape %}{% firstof
> > user.first_name user.username %}{% endfilter %}</strong>.
>
> >    30 :             {% block userlinks %}
>
> >    31 :                  {% url django-admindocs-docroot as docsroot
> > %}
>
> >    32 :                 {% if docsroot %}
>
> >    33 :                     <a href="{{ docsroot }}">{% trans
> > 'Documentation' %}</a> /
>
> >    34 :                 {% endif %}
>
> >    35 :                 {% url admin:password_change as
> > password_change_url %}
>
> >    36 :                 {% if password_change_url %}
>
> >    37 :                     <a href="{{ password_change_url }}">
>
> >    38 :                 {% else %}
>
> >    39 :                     <a href="{{ root_path }}password_change/">
>
> >    40 :                 {% endif %}
>
> >    41 :                 {% trans 'Change password' %}</a> /
>
> > Traceback:
> > File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py"
> > in get_response
> >   100.                     response = callback(request,
> > *callback_args, **callback_kwargs)
> > File "/usr/lib/python2.6/dist-packages/django/contrib/admin/sites.py"
> > in wrapper
> >   211.                 return self.admin_view(view, cacheable)(*args,
> > **kwargs)
> > File "/usr/lib/python2.6/dist-packages/django/utils/decorators.py" in
> > _wrapped_view
> >   74.                     response = view_func(request, *args,
> > **kwargs)
> > File "/usr/lib/python2.6/dist-packages/django/views/decorators/
> > cache.py" in _wrapped_view_func
> >   69.         response = view_func(request, *args, **kwargs)
> > File "/usr/lib/python2.6/dist-packages/django/contrib/admin/sites.py"
> > in inner
> >   194.             return view(request, *args, **kwargs)
> > File "/usr/lib/python2.6/dist-packages/django/views/decorators/
> > cache.py" in _wrapped_view_func
> >   69.         response = view_func(request, *args, **kwargs)
> > File "/usr/lib/python2.6/dist-packages/django/contrib/admin/sites.py"
> > in index
> >   400.             context_instance=context_instance
> > File "/usr/lib/python2.6/dist-packages/django/shortcuts/__init__.py"
> > in render_to_response
> >   20.     return HttpResponse(loader.render_to_string(*args,
> > **kwargs), **httpresponse_kwargs)
> > File "/usr/lib/python2.6/dist-packages/django/template/loader.py" in
> > render_to_string
> >   186.     return t.render(context_instance)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > render
> >   173.             return self._render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > _render
> >   167.         return self.nodelist.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > render
> >   796.                 bits.append(self.render_node(node, context))
> > File "/usr/lib/python2.6/dist-packages/django/template/debug.py" in
> > render_node
> >   72.             result = node.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/loader_tags.py"
> > in render
> >   125.         return compiled_parent._render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > _render
> >   167.         return self.nodelist.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > render
> >   796.                 bits.append(self.render_node(node, context))
> > File "/usr/lib/python2.6/dist-packages/django/template/debug.py" in
> > render_node
> >   72.             result = node.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/loader_tags.py"
> > in render
> >   125.         return compiled_parent._render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > _render
> >   167.         return self.nodelist.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > render
> >   796.                 bits.append(self.render_node(node, context))
> > File "/usr/lib/python2.6/dist-packages/django/template/debug.py" in
> > render_node
> >   72.             result = node.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/defaulttags.py"
> > in render
> >   252.             return self.nodelist_true.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > render
> >   796.                 bits.append(self.render_node(node, context))
> > File "/usr/lib/python2.6/dist-packages/django/template/debug.py" in
> > render_node
> >   72.             result = node.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/defaulttags.py"
> > in render
> >   252.             return self.nodelist_true.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > render
> >   796.                 bits.append(self.render_node(node, context))
> > File "/usr/lib/python2.6/dist-packages/django/template/debug.py" in
> > render_node
> >   72.             result = node.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/loader_tags.py"
> > in render
> >   62.             result = block.nodelist.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/__init__.py" in
> > render
> >   796.                 bits.append(self.render_node(node, context))
> > File "/usr/lib/python2.6/dist-packages/django/template/debug.py" in
> > render_node
> >   72.             result = node.render(context)
> > File "/usr/lib/python2.6/dist-packages/django/template/defaulttags.py"
> > in render
> >   367.             url = reverse(self.view_name, args=args,
> > kwargs=kwargs, current_app=context.current_app)
> > File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
> > reverse
> >   356.             *args, **kwargs)))
> > File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
> > reverse
> >   277.         possibilities = self.reverse_dict.getlist(lookup_view)
> > File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
> > _get_reverse_dict
> >   199.             self._populate()
> > File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
> > _populate
> >   179.                     for name in pattern.reverse_dict:
> > File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
> > _get_reverse_dict
> >   199.             self._populate()
> > File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py" in
> > _populate
> >   168.         for pattern in reversed(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)
> > File "/django/projects/huntgather/registration/urls.py" in <module>
> >   14. from gather import login,logout
>
> > Exception Type: TemplateSyntaxError at /admin/
> > Exception Value: Caught ImportError while rendering: cannot import
> > name login
>
> > On Jul 6, 9:24 am, Chris Lawlor <lawlor.ch...@gmail.com> wrote:> You 
> > probably don't want to reference the login view to /accounts. You
> > > probably mean to do this:
>
> > > (r'^accounts/', include ('django.contrib.auth.urls'),
>
> > > That will map /accounts/login to django.contrib.views.login, /accounts/
> > > logout to django.contrib.views.logout, etc.
>
> > > In general, when using an app, you'll add a line to your base URLConf
> > > that includes that app's urls module.
>
> > > On Jul 6, 9:04 am, Tom Evans <tevans...@googlemail.com> wrote:
>
> > > > On Tue, Jul 6, 2010 at 2:00 PM,reduxdj<patricklemi...@gmail.com> wrote:
> > > > > Hi,
>
> > > > > I have an issue where i am including
>
> ...
>
> read more »

-- 
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