ក្រុម រូបភាព ថតឯកសារ វ៉ែប
Recently Visited Groups | Help | Sign in
Google Groups Home
Problem with Reverse
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tambug@gmail.com  
View profile  
 More options Jul 5 2009, 10:44 am
From: "tam...@gmail.com" <tam...@gmail.com>
Date: Sat, 4 Jul 2009 20:44:12 -0700 (PDT)
Local: Sun, Jul 5 2009 10:44 am
Subject: Problem with Reverse
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? :-(
Thanks....


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karen Tracey  
View profile  
 More options Jul 6 2009, 12:21 am
From: Karen Tracey <kmtra...@gmail.com>
Date: Sun, 5 Jul 2009 13:21:33 -0400
Local: Mon, Jul 6 2009 12:21 am
Subject: Re: Problem with Reverse

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


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil  
View profile  
 More options Jul 6 2009, 6:32 pm
From: Phil <philipp.malashe...@gmail.com>
Date: Mon, 6 Jul 2009 04:32:26 -0700 (PDT)
Local: Mon, Jul 6 2009 6:32 pm
Subject: Re: Problem with Reverse
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:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rodrigue  
View profile  
 More options Jul 6 2009, 8:42 pm
From: Rodrigue <rodriguealca...@gmail.com>
Date: Mon, 6 Jul 2009 06:42:33 -0700 (PDT)
Local: Mon, Jul 6 2009 8:42 pm
Subject: Re: Problem with Reverse
Are there other urls defined in your file? If so, do the views they
reference exist already? Django tries to load all the views it finds
in all url files defined.

It seems to me that you may have a url mapped to a 'select' view but
that view does not exist.

On Jul 6, 12:32 pm, Phil <philipp.malashe...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google