Friday, August 24, 2012

Re: Why is my groundwork in django show up in 404 page?

Hi there,

I have never worked with groundwork before, but it seems like you need the newly created app URLs in your urls.py file. Something like this at the end of your urls.py file may work.

urlpatterns += patterns('bookapp.views',
    url(r'^book/list/$', 'VIEW_NAME', name='list'),
)


On 24 August 2012 14:30, Sergiy Khohlov <skhohlov@gmail.com> wrote:
you does not have enabled this in urls.py ....

2012/8/24 txshon <txshon@gmail.com>:
> I follow the installation steps online about groundwork
>
> I use the command to setup groundwork for my project
>
>   python manage.py groundwork bookapp Book
>
> However, I go to the page
>
> http://127.0.0.1:8000/bookapp/book/list/
>
> it show up 404 error
>
> this is the information on that page
>
> Page not found (404)Request Method:GETRequest
> URL:http://127.0.0.1:8000/bookapp/book/list/
> Using the URLconf defined in BOOKMS.urls, Django tried these URL patterns,
> in this order:
>
> ^admin/doc/
> ^admin/
>
> The current URL, bookapp/book/list/, didn't match any of these.
>
> Please help... Thank you
>
> @txshon
>
> --
> 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
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment