Commit b175ed56 authored by Nate Brevin A. Que's avatar Nate Brevin A. Que

Implemented Contact Me/Us page for the music library.

parent 9d7d3175
Pipeline #2636 canceled with stages
......@@ -39,6 +39,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'homepage',
'about',
'contact',
]
MIDDLEWARE = [
......
......@@ -20,4 +20,5 @@ 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")),
]
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
def index(request):
return HttpResponse("""<H1>Contact Me</H1>
Name: Nate Brevin A. Que <br>
Contact No.: 09120120012 <br>
Email: sample012@gmail.com <br>
Facebook: www.facebook.com/dummyacct012""")
\ 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