4👍
✅
The problem was my second urlpattern was overriding the first pattern.
Instead of:
urlpatterns = patterns('',
it needed to be:
urlpatterns += patterns('',
0👍
The url regex is expecting an ending slash. Does the offending url end with a slash?
If you do have a PREPEND_SLASHES settings differing from your last projects, that might explain the error you’re seeing!
- [Django]-Unable to change validate field error message in Model serializer
- [Django]-How to copy an object from one model to another model
- [Django]-Django 1.4 defining user
- [Django]-A better django datetime filter at the admin panel
- [Django]-What is the equivalent for, SELECT * FROM table_name WHERE id IN (1,2,5,9) in Django
0👍
Your url is ok. You need to check two things:
- Is the urls.py included from the main urls.py?
- Is the application added to INSTALLED_APPLICATIONS in settings.py?
- [Django]-Translation in celery tasks
- [Django]-Django-like frameworks?
- [Django]-Getting data from an Excel sheet
- [Django]-Django jsonfields ValidationError: [u'Enter valid JSON'] upon upgrade from 1.7 to 1.9
Source:stackexchange.com