diff --git a/producthunt/settings.py b/producthunt/settings.py
index 4218558..742472b 100644
--- a/producthunt/settings.py
+++ b/producthunt/settings.py
@@ -37,6 +37,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'products.apps.ProductsConfig',
+ 'accounts.apps.AccountsConfig',
]
MIDDLEWARE = [
@@ -54,7 +56,7 @@ ROOT_URLCONF = 'producthunt.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [os.path.join(BASE_DIR, 'templates')]
+ 'DIRS': [os.path.join(BASE_DIR, 'templates'), os.path.join(BASE_DIR, 'producthunt/templates')]
,
'APP_DIRS': True,
'OPTIONS': {
diff --git a/producthunt/templates/base.html b/producthunt/templates/base.html
new file mode 100644
index 0000000..a14bb07
--- /dev/null
+++ b/producthunt/templates/base.html
@@ -0,0 +1,11 @@
+This is the Top
+
+
+
+{% block content %}
+
+{% endblock %}
+
+
+
+This is the Bottom
\ No newline at end of file
diff --git a/producthunt/urls.py b/producthunt/urls.py
index 34fba38..eb5c6d4 100644
--- a/producthunt/urls.py
+++ b/producthunt/urls.py
@@ -17,7 +17,9 @@ from django.contrib import admin
from django.urls import include, path
from django.conf import settings
from django.conf.urls.static import static
+from products import views
urlpatterns = [
path('admin/', admin.site.urls),
+ path('', views.home, name='home'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
diff --git a/products/templates/products/home.html b/products/templates/products/home.html
new file mode 100644
index 0000000..8e81099
--- /dev/null
+++ b/products/templates/products/home.html
@@ -0,0 +1,4 @@
+{% extends 'base.html' %}
+{% block content %}
+ HI
+{% endblock %}
diff --git a/products/views.py b/products/views.py
index 91ea44a..d6b02d4 100644
--- a/products/views.py
+++ b/products/views.py
@@ -1,3 +1,5 @@
from django.shortcuts import render
-# Create your views here.
+
+def home(request):
+ return render(request, 'products/home.html')