Commit 54874526 authored by Angelo Alvarez's avatar Angelo Alvarez

Added App: Contact

parent 8e823ecb
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'),
]
app_name = 'Contact'
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Contact me through email: this_is_alva@something.com, through phone: +63 007 2015 2023, or mail something to me at: 84-150 Hel, Poland")
\ No newline at end of file
...@@ -43,6 +43,7 @@ INSTALLED_APPS = [ ...@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'Homepage', 'Homepage',
'Contact',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -19,4 +19,5 @@ from django.urls import include, path ...@@ -19,4 +19,5 @@ from django.urls import include, path
urlpatterns = [ 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('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