I have a django application hosted on pyhtonanywhere. The app is located at username.pythonanywhere.com/MyApp . I would like to put a static html page in username.pythonanywhere.com . Is it possible? Essentially this will serve as an index linking to /MyApp , /MyApp2 and other future applications.
I can not find any information on how to do this, but I assume that I need to change mysite/mysite/urls.py , since going to the root currently gives me 404 with messages about what could not be found match in urls.
urlpatterns = [ url(r'^/$', ???), url(r'^admin/', include(admin.site.urls)), url(r'^MyApp/', indluce('MyApp.urls')). ]
The previous one is my best guess (the bad one I know). This should (fix me if I'm wrong) matches the root URL, but I have no idea how to say βhey django, just look for the static fileβ or where this static html should live, or how to tell django where it is lives.
Try not to chop off my head. I am new to django.
PS I am using django 1.8 in virtualenv on PA
python html django static pythonanywhere
thedarklord47
source share