mardi 8 août 2017

Django: Changing the index site? (home page)

The index site on my Django homepage stopped working because of a problem that will take a very long time to fix. The site can't be down for that long so I am trying to change the index site so that if you go to the primary url you will atleast end up on the website.

What I have done is change the urls.py file in the primary application, where I simply replaced the line

url(r'^', include('news.urls', namespace='news')),

to

url(r'^', include('events.urls', namespace='events')),

in the urlpatterns list, where news is the faulty page and events is the page that I want to be shown. However, after pushing this to live nothing changed, and for some reason my local Django development server is not working.

Did I do anything wrong, or is there anything else I have to do as well?

Thanks.

Aucun commentaire:

Enregistrer un commentaire