Changing

the urls.py  to
(r'^s/b$', status)
and
submit action to
action="/s/b" from action="."

I am able to get the URL: http://10.217.6.53/s/b?id=2. This is how i
was hoping to get the URL to look.

thanks,
Ravi.

On Apr 30, 2:58 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 30, 2008 at 5:19 PM, RaviKondamuru <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi,
>
> > The form submit has the URL in the format:http://10.217.6.53/s/b/?id=2.
> > The "/" before the ?id=2 in the URl seems to be incorrectly placed. It
> > works, but the syntax seems to be wrong. Is there a problem in my
> > urlconf?
>
> > (r'^s/b/$', status),
>
> > Is that "/" alright to have?
> > How do I get rid of it?
>
> Why do you think the syntax is wrong?
>
> There is a trailing slash in your urlconf, so that matches the url you show,
> and your status function will be called when that url is received for
> processing.  If you remove the trailing slash from your urlconf entry, you
> will also need to prevent it being included when this url is generated.
> You've given no context on how this url is being generated, so I don't know
> where you'd need to do that.
>
> But I don't know why you'd want to, since I don't know why you think the
> syntax as-is is wrong.  So far as I know it is perfectly valid.
>
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to