Commit 0e2c0f4d authored by Ciella Francisco's avatar Ciella Francisco 😵

Created the event_management app, included dummy views, and configured urls

parent c266ea8e
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class EventManagementConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'event_management'
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 = "event_management"
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse('Hello World! This came from the index view.')
\ No newline at end of file
......@@ -42,6 +42,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'accounts',
'eventcatalog',
'event_management',
'bootstrap5',
]
......
......@@ -21,5 +21,6 @@ from django.views.generic.base import TemplateView
urlpatterns = [
path('admin/', admin.site.urls),
path("accounts/", include("accounts.urls"), name="accounts"),
path("event_management/", include("event_management.urls", namespace="event_management")),
path("", include("eventcatalog.urls"), name="index"),
]
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