I have my urls.py split into two files:
Project-level urls.py:
from myapp.urls import MYAPP_URLS
urlpatterns = patterns('',
(...)
)
urlpatterns += MYAPP_URLS
Then on my app-level urls.py:
MYAPP_URLS = patterns('',
('^my_profile/$', my_profile),
('^submit/$', submit),
)
Now the problem is the following: I want to make it so all my app URLs are put in a sub-URL.
That is:
mysite.com/my_profile
mysite.com/submit
Become:
mysite.com/suburl/my_profile
mysite.com/suburl/submit
I already refactored the app URLs into its own file (and separated them from the main urls.py as you can see above) in order to facilitate this, but I have no idea what the next step is now.
Can somebody help ?
Thank you
In your project urls file:
More information here.