This is my problem now, have a Django project named ‘personal’ with an urls.py file like this:
# file personal/urls.py
from django.conf.urls.defaults import *
### SAB
urlpatterns = patterns('',
(r'^sab/', include('personal.sab.sab_urls')),
)
### STK
urlpatterns += patterns('',
(r'^stk/', include('personal.stk.stk_urls')),
)
### TEST
urlpatterns += patterns('',
(r'^test_app/', include('personal.test_app.test_app_urls')),
)
And the apps: sab, stk, and test_app with an urls file module like this:
# file personal/test_app/test_app_urls.py
### TEST urls.
from django.conf.urls.defaults import *
urlpatterns = patterns('personal.test_app',
(r'^view_1$', 'view_1'),
)
This is what I got in http://localhost/test_app/ -> 404 error screenshot
Why some urls modules work fine and other not?
The test_app_urls.py is loaded, but in the screenshot u can see how its look.
Any idea?
It doesn’t appear that you have a url defined for
http://localhost/test_app/only forhttp://localhost/test_app/view_1Something along the lines of the following should work (in test_app/urls.py):