Question
your settings.py is set to True, (but it is not! it clearly reads: Debug = False)
I have my django installed properly with all the gunicorn, nginx and systemd collaborating with each other, I can see the Congratulations page you have successfully installed django etc. Yet, it says that my debug at settings.py file is set to True, which is not.
Also I have created a hello world page at views.py and urls.py and it says page not found. when I go mywebsite.com/home
I am inside my virtualenvironment because it is there where I installed everything, of course.
from django.http import HttpResponse
def home(request):
return HttpResponse(‘hello’)
and the urls.py
from django.contrib import admin
from django.urls import path
from myapp import views
urlpatterns = [
path('admin/’, admin.site.urls),
path('home/’,views.home, name='home’),
]
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Clean browser cache
i know about that and tested it under 4 different browsers, browsers that had never been to the site. no change.
Besides, even if I had been using a browser locked on its cache, that would not impede accessing a newly created page like /home