Commit dcd39534 authored by John Tamano's avatar John Tamano

Merge branch 'Forum' into 'master'

Forum

See merge request JohnTamano/widget_group22!1
parents b24b25b9 577e74ee
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class ForumConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'forum'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index')
]
app_name='forum'
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def index(request):
return HttpResponse('This is the forum! This is where people talk')
......@@ -29,7 +29,7 @@ DEBUG = True
ALLOWED_HOSTS = []
# Comment mine
# Application definition
INSTALLED_APPS = [
......@@ -40,6 +40,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'homepage',
'forum'
]
MIDDLEWARE = [
......
......@@ -18,5 +18,6 @@ from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path('homepage/', include('homepage.urls', namespace="homepage"))
#path('', include('homepage.urls', namespace="homepage")),
path('forum/',include('forum.urls',namespace="forum"))
]
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