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 <[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 <!-- 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-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 -~----------~----~----~----~------~----~------~--~---