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
Post a Comment