Commit b293ab0f authored by Jersey Dayao's avatar Jersey Dayao 🏀

feat: create forum page and include forum page url to widget url

parents ff9fd1e1 e300a8c0
No preview for this file type
No preview for this file type
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class HomepageConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'homepage'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="homepage")
]
app_name = "homepage"
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Welcome to Widget!")
...@@ -18,6 +18,10 @@ from django.urls import include, path ...@@ -18,6 +18,10 @@ from django.urls import include, path
urlpatterns = [ urlpatterns = [
path('assignments/', include('assignments.urls', namespace="assignments")), path('assignments/', include('assignments.urls', namespace="assignments")),
<<<<<<< HEAD
path("forum/", include('forum.urls', namespace="forum")), path("forum/", include('forum.urls', namespace="forum")),
=======
path("homepage/", include('homepage.urls', namespace="homepage")),
>>>>>>> e300a8c046c8972af41b6f32c723221b6d6ad0fa
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