Commit c9191027 authored by John Riz Daniel Ramos's avatar John Riz Daniel Ramos

Contact Implementation

parent c166b10d
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.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('OBF Email: riz.ramos@obf.ateneo.edu<br/>Contact #: 09998731890<br/>Twitter: @daaandylion')
\ No newline at end of file
......@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'homepage',
'about',
'contact',
]
MIDDLEWARE = [
......
......@@ -14,10 +14,11 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path('homepage/', include('homepage.urls', namespace="homepage")),
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