On Mar 3, 5:00 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> > Terminal says:
> > [03/Mar/2008 16:16:27] "GET /addorder/results HTTP/1.1" 200 898
>
> This means you're not hitting the redirect line. The HTTP status code
> for a redirect is 302, whereas this is showing a 200 response, which i
Take a look at your url patterns. Your first one is:
(r'^addorder/', add_order),
so 'addorder/results' is going to match to your first url pattern (so
would 'addorder/mydogspot' for that matter). The view to be executed
will be add_order.
Cheers
-Brian
On Mar 3, 2:27 pm, bobhaugen <[EMAIL PR
On Mar 3, 4:50 pm, Evert Rol <[EMAIL PROTECTED]> wrote:
> Not 100% sure, but try adding a $ at the end of your regexes, to
> indicate there's nothing after the url.
That was the secret! Thanks alot.
--~--~-~--~~~---~--~~
You received this message because you are s
On Mon, 2008-03-03 at 14:27 -0800, bobhaugen wrote:
> Yet another n00b problem...I'm sure I got another stupid mistake in
> here, but can't see it. Tried many variations.
>
> I cut this down to a simple example that reproduces the problem (the
> real thing is a lot more complex), and only inclu
>
>
> # urls.py
>
> urlpatterns = patterns('',
>(r'^addorder/', add_order),
>(r'^addorder/results/', results),
> )
Not 100% sure, but try adding a $ at the end of your regexes, to
indicate there's nothing after the url. Django now finds the
r'^addorder/' also for the url 'orders/resul
5 matches
Mail list logo