Commit 3eeceb07 authored by EJ Mejilla's avatar EJ Mejilla

Created the contact app which links to the contact page

parent 15cf8def
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.
# about/urls.py
from django.urls import path
from .views import contact_info
urlpatterns = [
path('', contact_info, name='contact_info'),
]
app_name = "contact"
from django.shortcuts import render
from django.http import HttpResponse
def contact_info(request):
return HttpResponse('''You can reach me via any of the following:<br>
Contact Number: (01)234-567-8901<br>
Email: ejmejilla@notreal.com''')
......@@ -20,5 +20,6 @@ urlpatterns = [
path('', include('homepage.urls', namespace="homepage")),
path('homepage/', include('homepage.urls', namespace="homepage")),
path('about/', include('about.urls', namespace="about")),
path('contact/', include('contact.urls', namespace="contact")),
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