I probably should of tried it first. Your url setup works fine for me.
Kieran
On Dec 21, 5:10 pm, Kieran Brownlees wrote:
> My guess would be the root url never ends without a '/' - ie to match
> the root url you need a '/' somewhere.
>
> Try making the home_view regex r'^/$'
>
> Kieran
>
> On D
My guess would be the root url never ends without a '/' - ie to match
the root url you need a '/' somewhere.
Try making the home_view regex r'^/$'
Kieran
On Dec 21, 5:05 pm, Kegan Gan wrote:
> Anyone can shed some light to the matter?
>
> * Bring this post to the front.
>
> On Dec 18, 1:21 am,
Anyone can shed some light to the matter?
* Bring this post to the front.
On Dec 18, 1:21 am, Kegan Gan 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 = pat
In my root urls.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 th
4 matches
Mail list logo