apache - Making Django Application localhost/appname Browsable through localhost -


my django application running on port 80 apache server , django, can browse typing hxxp://localhost/myapp want directly browse using hxxp://localhost. should configure browse directly using localhost instead of typing localhost/myapp

xx=tt

all urls of app in main urls.py or apps urls.py files.

just edit main urls.py file from:

urlpatterns = patterns('',     url(r'^admin/', include(admin.site.urls)),     url(r'^myapp/', include('myapp.urls')), ) 

to

urlpatterns = patterns('',     url(r'^admin/', include(admin.site.urls)),     url(r'^', include('myapp.urls')), ) 

you have handle urls in myapp urls.py then...

alan


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -