Commit 9739a49f authored by Ciella's avatar Ciella

feat: added required information in the contact app

parent 944ec701
...@@ -42,6 +42,7 @@ INSTALLED_APPS = [ ...@@ -42,6 +42,7 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'about', 'about',
'contact',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -18,5 +18,6 @@ from django.urls import include, path ...@@ -18,5 +18,6 @@ from django.urls import include, path
urlpatterns = [ urlpatterns = [
path('about/', include('about.urls', namespace='about')), path('about/', include('about.urls', namespace='about')),
path('contact/', include('contact.urls', namespace='contact')),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
] ]
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = 'contact'
from django.shortcuts import render from django.shortcuts import render
from django.http import HttpResponse
# Create your views here. # Create your views here.
def index(request):
return HttpResponse('Here\'s my contact information!\nemail: ciella_maganda@gmall.com\nphone number: 09123456789')
\ No newline at end of file
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