Commit e46bcd0c authored by Brendan Fausto's avatar Brendan Fausto

Contact finished & integrated to the project

parent 434f1e29
......@@ -43,7 +43,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'homepage'
'homepage',
'contact'
]
MIDDLEWARE = [
......
......@@ -18,5 +18,6 @@ from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('homepage/', include('homepage.urls', namespace="homepage"))
path('homepage/', include('homepage.urls', namespace="homepage")),
path('contact/', include('contact.urls', namespace="contact"))
]
# contact/urls.py
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index')
]
app_name = 'contact'
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
# appname/views.py
def index(request):
return HttpResponse('Contact me thru email at blabla@random.com, or thru my phone number 09xx-xxx-xxxx')
\ 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