Re: Error message when viewing admin? (ViewDoesNotExist at /admin/)
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\d+)/$', 'mysite.polls.views.detail'), (r'^polls/(?P\d+)/results/$', 'mysite.polls.views.results'), (r'^polls/(?P\d+)/vote/$', 'mysite.polls.views.vote'), ) On Oct 3, 12:34 pm, Greg <[EMAIL PROTECTED]> 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/admin/ > Exception Type: ViewDoesNotExist > Exception Value:Tried startsess in module mysite.rugs.views. Error > was: 'module' object has no attribute 'startsess' > Exception Location: c:\Python24\lib\site-packages\django\core > \urlresolvers.py in _get_callback, line 184 > Python Executable: c:\Python24\python.exe > Python Version: 2.4.4 > > // > > Template error > > In template c:\python24\lib\site-packages\django\contrib\admin > \templates\admin\base.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 > 20 > 21 > 22 {% block branding %}{% endblock %} > 23 > 24 {% if user.is_authenticated and user.is_staff %} > 25 > 26 {% trans 'Welcome,' %} {% if user.first_name %} > {{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %} strong>. > 27 {% block userlinks %} > 28 {% > trans 'Documentation' %} > 29 / {% > trans 'Change password' %} > 30 / {% trans > 'Log out' %} > 31 {% endblock %} > 32 > 33 {% endif %} > 34 {% block nav-global %}{% endblock %} > 35 > 36 > 37 {% block breadcrumbs %}{% > trans 'Home' %}{% if title %} {{ title|escape }}{% endif > %}{% 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-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 -~--~~~~--~~--~--~---
Re: Error message when viewing admin? (ViewDoesNotExist at /admin/)
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 <[EMAIL PROTECTED]> 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/admin/ > Exception Type: ViewDoesNotExist > Exception Value:Tried startsess in module mysite.rugs.views. Error > was: 'module' object has no attribute 'startsess' > Exception Location: c:\Python24\lib\site-packages\django\core > \urlresolvers.py in _get_callback, line 184 > Python Executable: c:\Python24\python.exe > Python Version: 2.4.4 > > // > > Template error > > In template c:\python24\lib\site-packages\django\contrib\admin > \templates\admin\base.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 > 20 > 21 > 22 {% block branding %}{% endblock %} > 23 > 24 {% if user.is_authenticated and user.is_staff %} > 25 > 26 {% trans 'Welcome,' %} {% if user.first_name %} > {{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %} strong>. > 27 {% block userlinks %} > 28 {% > trans 'Documentation' %} > 29 / {% > trans 'Change password' %} > 30 / {% trans > 'Log out' %} > 31 {% endblock %} > 32 > 33 {% endif %} > 34 {% block nav-global %}{% endblock %} > 35 > 36 > 37 {% block breadcrumbs %}{% > trans 'Home' %}{% if title %} {{ title|escape }}{% endif > %}{% 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-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 -~--~~~~--~~--~--~---
Error message when viewing admin? (ViewDoesNotExist at /admin/)
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/admin/ Exception Type: ViewDoesNotExist Exception Value:Tried startsess in module mysite.rugs.views. Error was: 'module' object has no attribute 'startsess' Exception Location: c:\Python24\lib\site-packages\django\core \urlresolvers.py in _get_callback, line 184 Python Executable: c:\Python24\python.exe Python Version: 2.4.4 // Template error In template c:\python24\lib\site-packages\django\contrib\admin \templates\admin\base.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 20 21 22 {% block branding %}{% endblock %} 23 24 {% if user.is_authenticated and user.is_staff %} 25 26 {% trans 'Welcome,' %} {% if user.first_name %} {{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}. 27 {% block userlinks %} 28 {% trans 'Documentation' %} 29 / {% trans 'Change password' %} 30 / {% trans 'Log out' %} 31 {% endblock %} 32 33 {% endif %} 34 {% block nav-global %}{% endblock %} 35 36 37 {% block breadcrumbs %}{% trans 'Home' %}{% if title %} {{ title|escape }}{% endif %}{% 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-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 -~--~~~~--~~--~--~---