List Info

Thread: Error message when viewing admin? (ViewDoesNotExist at /admin/)




Error message when viewing admin? (ViewDoesNotExist at /admin/)
country flaguser name
United States
2007-10-03 11:34:31
Hello,
Whenever I login to my admin view the very first thing I see
if the
following error.  It also happens occasionally when I'm
going through
my admin pages.

ViewDoesNotExist at /admin/
Tried startsess in module mysite.rugs.views. Error was:
'module'
object has no attribute 'startsess'
Request Method: 	GET
Request URL: 	http://127.0.0.1:8000/ad
min/
Exception Type: 	ViewDoesNotExist
Exception Value: 	Tried startsess in module
mysite.rugs.views. Error
was: 'module' object has no attribute 'startsess'
Exception Location:
	c:Python24libsite-packagesdjangocore
urlresolvers.py in _get_callback, line 184
Python Executable: 	c:Python24python.exe
Python Version: 	2.4.4

////////////////////////////////////////////////////////////
//////////////////

Template error

In template
c:python24libsite-packagesdjangocontribadmin
templatesadminbase.html, error at line 28
Caught an exception while rendering: Tried startsess in
module
mysite.rugs.views. Error was: 'module' object has no
attribute
'startsess'
18 	{% if not is_popup %}
19 	<!-- Header -->
20 	<div id="header">
21 	<div id="branding">
22 	{% block branding %}{% endblock %}
23 	</div>
24 	{% if user.is_authenticated and user.is_staff %}
25 	<div id="user-tools">
26 	{% trans 'Welcome,' %} <strong>{% if
user.first_name %}
{{ user.first_name|escape }}{% else %}{{ user.username }}{%
endif %}</
strong>.
27 	{% block userlinks %}
28 	<a href="{% url
django.contrib.admin.views.doc.doc_index %}">{%
trans 'Documentation' %}</a>
29 	/ <a href="{% url
django.contrib.auth.views.password_change %}">{%
trans 'Change password' %}</a>
30 	/ <a href="{% url
django.contrib.auth.views.logout %}">{% trans
'Log out' %}</a>
31 	{% endblock %}
32 	</div>
33 	{% endif %}
34 	{% block nav-global %}{% endblock %}
35 	</div>
36 	<!-- END Header -->
37 	{% block breadcrumbs %}<div
class="breadcrumbs"><a
href="/">{%
trans 'Home' %}</a>{% if title %} › {{ title|escape
}}{% endif
%}</div>{% endblock %}
38 	{% endif %}

//////////////////////////////////////////////////////////

Line 28 is highlighted in the above code.  This code is in
red '{% url
django.contrib.admin.views.doc.doc_index %}' from line 28

Thanks for any help

lp


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Error message when viewing admin? (ViewDoesNotExist at /admin/)
country flaguser name
United States
2007-10-03 12:47:47
Did you have a view named "startsess" that you
subsequently deleted?
Admin is looking for it but not finding it.  You may need to
remove it
from django_content_type.  Try dropping that table from your
database
and running python manage.py syncdb.

On Oct 3, 12:34 pm, Greg <gms3...hotmail.com> wrote:
> Hello,
> Whenever I login to my admin view the very first thing
I see if the
> following error.  It also happens occasionally when I'm
going through
> my admin pages.
>
> ViewDoesNotExist at /admin/
> Tried startsess in module mysite.rugs.views. Error was:
'module'
> object has no attribute 'startsess'
> Request Method:         GET
> Request URL:    http://127.0.0.1:8000/ad
min/
> Exception Type:         ViewDoesNotExist
> Exception Value:        Tried startsess in module
mysite.rugs.views. Error
> was: 'module' object has no attribute 'startsess'
> Exception Location:    
c:Python24libsite-packagesdjangocore
> urlresolvers.py in _get_callback, line 184
> Python Executable:      c:Python24python.exe
> Python Version:         2.4.4
>
>
////////////////////////////////////////////////////////////
//////////////////
>
> Template error
>
> In template
c:python24libsite-packagesdjangocontribadmin
> templatesadminbase.html, error at line 28
> Caught an exception while rendering: Tried startsess in
module
> mysite.rugs.views. Error was: 'module' object has no
attribute
> 'startsess'
> 18      {% if not is_popup %}
> 19      <!-- Header -->
> 20      <div id="header">
> 21      <div id="branding">
> 22      {% block branding %}{% endblock %}
> 23      </div>
> 24      {% if user.is_authenticated and user.is_staff
%}
> 25      <div id="user-tools">
> 26      {% trans 'Welcome,' %} <strong>{% if
user.first_name %}
> {{ user.first_name|escape }}{% else %}{{ user.username
}}{% endif %}</
> strong>.
> 27      {% block userlinks %}
> 28      <a href="{% url
django.contrib.admin.views.doc.doc_index %}">{%
> trans 'Documentation' %}</a>
> 29      / <a href="{% url
django.contrib.auth.views.password_change %}">{%
> trans 'Change password' %}</a>
> 30      / <a href="{% url
django.contrib.auth.views.logout %}">{% trans
> 'Log out' %}</a>
> 31      {% endblock %}
> 32      </div>
> 33      {% endif %}
> 34      {% block nav-global %}{% endblock %}
> 35      </div>
> 36      <!-- END Header -->
> 37      {% block breadcrumbs %}<div
class="breadcrumbs"><a
href="/">{%
> trans 'Home' %}</a>{% if title %} › {{
title|escape }}{% endif
> %}</div>{% endblock %}
> 38      {% endif %}
>
>
//////////////////////////////////////////////////////////
>
> Line 28 is highlighted in the above code.  This code is
in red '{% url
> django.contrib.admin.views.doc.doc_index %}' from line
28
>
> Thanks for any help


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Error message when viewing admin? (ViewDoesNotExist at /admin/)
country flaguser name
United States
2007-10-23 13:32:02
The same thing happens to me.  I was going through the
Tutorial to
make the Poll application.  The admin url was working fine. 
When I
added in the patterns for the poll app, I get the same error
you did.
If I comment out the admin line, the poll lines work fine. 
If I
comment out the poll lines, the admin line works fine. 
Where yours
says 'startsess', mine says 'vote'.  I imagine it is because
it is the
last line for all of the polls patterns:

from django.conf.urls.defaults import *

urlpatterns = patterns('',
  (r'^admin/', include('django.contrib.admin.urls')),
  (r'^polls/$', 'index'),
  (r'^polls/(?P<poll_id>d+)/$',
'mysite.polls.views.detail'),
  (r'^polls/(?P<poll_id>d+)/results/$',
'mysite.polls.views.results'),
  (r'^polls/(?P<poll_id>d+)/vote/$',
'mysite.polls.views.vote'),
)



On Oct 3, 12:34 pm, Greg <gms3...hotmail.com> wrote:
> Hello,
> Whenever I login to myadminview the very first thing I
see if the
> following error.  It also happens occasionally when I'm
going through
> myadminpages.
>
> ViewDoesNotExist at /admin/
> Tried startsess in module mysite.rugs.views. Error was:
'module'
> object has no attribute 'startsess'
> Request Method:         GET
> RequestURL:    http://127.0.0.1:8000/ad
min/
> Exception Type:         ViewDoesNotExist
> Exception Value:        Tried startsess in module
mysite.rugs.views. Error
> was: 'module' object has no attribute 'startsess'
> Exception Location:    
c:Python24libsite-packagesdjangocore
> urlresolvers.py in _get_callback, line 184
> Python Executable:      c:Python24python.exe
> Python Version:         2.4.4
>
>
////////////////////////////////////////////////////////////
//////////////////
>
> Template error
>
> In template
c:python24libsite-packagesdjangocontribadmin
> templatesadminbase.html, error at line 28
> Caught an exception while rendering: Tried startsess in
module
> mysite.rugs.views. Error was: 'module' object has no
attribute
> 'startsess'
> 18      {% if not is_popup %}
> 19      <!-- Header -->
> 20      <div id="header">
> 21      <div id="branding">
> 22      {% block branding %}{% endblock %}
> 23      </div>
> 24      {% if user.is_authenticated and user.is_staff
%}
> 25      <div id="user-tools">
> 26      {% trans 'Welcome,' %} <strong>{% if
user.first_name %}
> {{ user.first_name|escape }}{% else %}{{ user.username
}}{% endif %}</
> strong>.
> 27      {% block userlinks %}
> 28      <a
href="{%urldjango.contrib.admin.views.doc.doc_index
%}">{%
> trans 'Documentation' %}</a>
> 29      / <a
href="{%urldjango.contrib.auth.views.password_change
%}">{%
> trans 'Change password' %}</a>
> 30      / <a
href="{%urldjango.contrib.auth.views.logout
%}">{% trans
> 'Log out' %}</a>
> 31      {% endblock %}
> 32      </div>
> 33      {% endif %}
> 34      {% block nav-global %}{% endblock %}
> 35      </div>
> 36      <!-- END Header -->
> 37      {% block breadcrumbs %}<div
class="breadcrumbs"><a
href="/">{%
> trans 'Home' %}</a>{% if title %} › {{
title|escape }}{% endif
> %}</div>{% endblock %}
> 38      {% endif %}
>
>
//////////////////////////////////////////////////////////
>
> Line 28 is highlighted in the above code.  This code is
in red '{%url
> django.contrib.admin.views.doc.doc_index %}' from line
28
>
> Thanks for any help


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )