Commit 9ad8834a authored by Bianca Aguilar's avatar Bianca Aguilar

Configuring settings and URLs

parent 5cc8355a
from django.contrib import admin
from django.urls import include, path
from django.urls import path
from .views import index
from . import views
urlpatterns = [
path('homepage/', include('homepage.urls', namespace="homepage")),
path('admin/', admin.site.urls),
path('', views.index, name='index'),
]
\ No newline at end of file
......@@ -11,6 +11,9 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
"""
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
......@@ -20,12 +23,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-*(qier^-o5=az!3k%zs$y+!c1k6on)oi3%)_jiy(%h=34u=*1@'
SECRET_KEY = os.getenv('django-insecure-*(qier^-o5=az!3k%zs$y+!c1k6on)oi3%)_jiy(%h=34u=*1@')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition
......
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