Commit d0b87aab authored by rachbit's avatar rachbit

Added new app: contact and updated URLs

parent df22cd7e
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class ContactConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'contact'
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'),
]
# This might be needed, depending on your Django version
app_name = "rachpurisima_music"
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('contact')
......@@ -44,6 +44,7 @@ INSTALLED_APPS = [
'homepage',
'about',
'contact',
]
MIDDLEWARE = [
......
......@@ -20,4 +20,5 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('homepage', include('homepage.urls', namespace='homepage')),
path('about', include('about.urls', namespace='about')),
path('contact', include('contact.urls', namespace='contact')),
]
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