finished contact app

parent 24c518ea
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 = "Contact"
from django.shortcuts import render from django.http import HttpResponse
# Create your views here. # Create your views here.
def index(request):
return HttpResponse('If you would like to contact me: Email: john.amador@obf.ateneo.edu'
'#: 0956-123-45-67')
...@@ -39,6 +39,7 @@ INSTALLED_APPS = [ ...@@ -39,6 +39,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'Homepage', 'Homepage',
'About', 'About',
'Contact'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -20,4 +20,5 @@ urlpatterns = [ ...@@ -20,4 +20,5 @@ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('homepage/', include('Homepage.urls', namespace="Homepage")), path('homepage/', include('Homepage.urls', namespace="Homepage")),
path('about/', include('About.urls', namespace="About")), 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