Commit a57dba31 authored by Albert's avatar Albert

Revised site-wide url file with path to apps

parent 8bc85999
...@@ -9,11 +9,8 @@ https://docs.djangoproject.com/en/4.1/topics/settings/ ...@@ -9,11 +9,8 @@ https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/ https://docs.djangoproject.com/en/4.1/ref/settings/
""" """
import os
from pathlib import Path
from dotenv import load_dotenv
load_dotenv() from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'. # Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent
...@@ -40,6 +37,9 @@ INSTALLED_APPS = [ ...@@ -40,6 +37,9 @@ INSTALLED_APPS = [
"django.contrib.sessions", "django.contrib.sessions",
"django.contrib.messages", "django.contrib.messages",
"django.contrib.staticfiles", "django.contrib.staticfiles",
'homepage',
'about',
'contact',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -17,5 +17,9 @@ from django.contrib import admin ...@@ -17,5 +17,9 @@ from django.contrib import admin
from django.urls import path from django.urls import path
urlpatterns = [ urlpatterns = [
path("admin/", admin.site.urls), """path('', include('food.urls', namespace="food")),""""
path('homepage/', include('homepage.urls', namespace="homepage")),
path('about/', include('about.urls', namespace="about")),
path('contact/', include('contact.urls', namespace="contact")),
path('admin/', admin.site.urls),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment