Hi, agree with that - does it work if you go through the url first?
Cheers, Phil On Jul 6, 3:21 am, Karen Tracey <kmtra...@gmail.com> wrote: > On Sat, Jul 4, 2009 at 11:44 PM, tam...@gmail.com <tam...@gmail.com> wrote: > > > Hi, > > > I am trying to decouple my views.py with respect to my url.py but I > > have a problem. > > > -I do have a principal url.py which contains and include to a second > > url.py: > > urlpatterns = patterns('', > > (r'^users/', include('myapp.users.urls')) > > ..... > > > -Thus the second url.py contains: > > url(regex='^edit/(?P<username>\w+)/$', prefix='myapp.users', > > view='views.edit_user_profile', name='users_edit'), > > > -In my views.py (in signup function) I try to call: > > url = reverse('users_edit', kwargs={'username':user.username}) > > return HttpResponseRedirect(url) > > > -But instead of being correctly redirected I have got the following > > error: > > ViewDoesNotExist at /users/signup/ > > Tried select in module myapp.users.views. Error was: 'module' object > > has no attribute 'select' > > > Any hint? :-( > > Are you sure you are even getting to your signup view? From the error > message it does not sound like it -- you are getting ViewDoesNotExist for > /users/signup. What is the urlpattern for your signup view? It appears to > be referencing a view named 'select', which isn't being found. > > 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 -~----------~----~----~----~------~----~------~--~---