You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paige Maute edited this page Oct 13, 2021
·
9 revisions
How to add a webpage
Create the html file under templates. Project pages and other sub pages will be in certain folders. Ex: test.html
Create the views class under django_project -> views.py the views class template_name should have the exact same html file name. Sub pages will be in their own views.py like projects -> views.py
Create the path for the webpage in django_project -> urls.py then under urlpatterns add the path using the same exact name you used for the views class: