2👍
✅
There’s a fairly simple way around this using just django, without having to touch apache.
Rename your urls.py
to something else, e.g. site_urls.py
Then create a new urls.py which includes that
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^django/demoInstall/', include('site_urls.py')),
)
This will ensure that all the url reversing continues to work, too.
0👍
That should be:
PythonOption django.root /django/demoInstall
Ie., must match sub URL in Location directive.
You shouldn’t be using that prefix in urls.py.
- [Answered ]-How do I configure django-money to output GBP in British format?
- [Answered ]-Django – Models Façade
- [Answered ]-Django: forms.ModelChoiceField based on pk of calling view
Source:stackexchange.com