Commit 4aac7ad0 authored by Bianca Aguilar's avatar Bianca Aguilar

Trying to debug why the homepage module can't be found

parent aa830e94
SECRET_KEY='django-insecure-*(qier^-o5=az!3k%zs$y+!c1k6on)oi3%)_jiy(%h=34u=*1@' SECRET_KEY='django-insecure-*(qier^-o5=az!3k%zs$y+!c1k6on)oi3%)_jiy(%h=34u=*1@'
STATIC_ROOT='static/' STATIC_ROOT='static/'
DJANGO_SETTINGS_MODULE='widget_group_23.settings.production'
\ No newline at end of file
from django.urls import path from django.urls import path
from . import views from .views import index
urlpatterns = [ urlpatterns = [
path('', views.index, name='index'), path('', index, name='index'),
] ]
app_name = "homepage"
\ No newline at end of file
...@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/ ...@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
from pathlib import Path from pathlib import Path
from dotenv import load_dotenv from dotenv import load_dotenv
import os
load_dotenv() load_dotenv()
...@@ -40,6 +41,7 @@ INSTALLED_APPS = [ ...@@ -40,6 +41,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'homepage',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -17,6 +17,6 @@ from django.contrib import admin ...@@ -17,6 +17,6 @@ from django.contrib import admin
from django.urls import include, path from django.urls import include, path
urlpatterns = [ urlpatterns = [
path('homepage/, include(homepage.urls)'), path('homepage/', include('homepage.urls', namespace="homepage")),
path('admin/', admin.site.urls), 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