Thanks a lot! That was it! Regards
On 3 Cze, 00:21, Karen Tracey <kmtra...@gmail.com> wrote: > On Tue, Jun 2, 2009 at 4:30 PM, SlafS <slaf...@gmail.com> wrote: > > > Hi! > > > Im trying to test my app with django test Client. > > When I try to do 'get' to the '/accounts/' which in my urls.py is > > equiv to generic login view I get DoesNotExists exception and a > > traceback. check it herehttp://dpaste.com/50688/. > > Can You tell me what am I doing wrong ? > > You've apparently got 'django.contrib.sites' listed in your INSTALLED_APPS > and you have set SITE_ID in your settings file to a value that has no match > in your Sites table. As mentioned here: > > http://docs.djangoproject.com/en/dev/ref/contrib/sites/#how-django-us... > > the auth app's login view, which the url you are testing is mapped to, > attempts get the current site name (if the sites app is installed) and pass > it as the variable site_name to the template. It's not finding a match when > it attempt to retrieve the currents (i.e. SITE_ID) site. > > > PS. when Im 'get'ing 'accounts/' I Get the "TypeError: 'NoneType' > > object is not iterable" > > I believe that's ticket #10834: > > http://code.djangoproject.com/ticket/10834 > > Karen --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---