Anyone can shed some light to the matter?

* Bring this post to the front.

On Dec 18, 1:21 am, Kegan Gan <ke...@kegan.info> wrote:
> In myrooturls.py I have the following:
>
> urlpatterns = patterns('',
>     (r'^', include('story.urls')),
> )
>
> In my story app, I have the following urls.py:
>
> urlpatterns = patterns('',
>    url(r'^$', home_view, name='story-home'),
>    url(r'^create/$', home_view, name='story-create'),
> )
>
> Running on the localhost:8000, the 'story-create'urlcorrectly return
> 200 OK.
>
> But the 'story-home'urlreturn a302FOUND. For example, using curl:
>
> $ curl -Ihttp://localhost:8000/
> HTTP/1.0302FOUND
> Date: Thu, 17 Dec 2009 15:52:54 GMT
> Server: WSGIServer/0.1 Python/2.6.4
> Content-Type: text/html; charset=utf-8
> Location:http://localhost:8000/
>
> Why is it returning302FOUND? How can I fix this?

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.


Reply via email to