Thank you your response answers the "what do I do" as a response by calling the 404 view.
On Monday, September 22, 2014 10:25:11 PM UTC-4, robert brook wrote:
-- I also need to understand how the url will be coded so that an invalid url that does not match anything falls through the the last url in the urls.py file.
I have a project urls.py file and expect that anything that does not match waitlist will fall through to the 2nd url.
url(r'^waitlist/', include('waitlist.urls')),
url(r'^.*$', views.404_view),
If the project matches the value waitlist, the router will pull in the urls from the app.
Same question as above
The url my_domain.com/waitlist/
will pull in the index view as expected
Will the url my_domain.com/waitlist/abc4#jjj/
pull in the 404_view and be handled graceffully?
url(r'^$', views.index, name='index'),
url(r'^.*$', views.404_view),
Thanks again
On Monday, September 22, 2014 10:25:11 PM UTC-4, robert brook wrote:
How is a url conf written so that if none of the useful urls are matched it will pass through to some sort of wild card regular expressions so that the view / redirection can be performed gracefullyThanks
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/acbd5b3d-0aa8-4510-890c-0f6277345264%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment