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
...@@ -3,4 +3,4 @@ from django.http import HttpResponse ...@@ -3,4 +3,4 @@ from django.http import HttpResponse
def index(request): def index(request):
return HttpResponse("""<H1>About Me</H1> return HttpResponse("""<H1>About Me</H1>
I'm not much of a music lover, but I was exposed to multiple pop songs, which eventually became my music taste.""") I'm not much of a music lover, but I was exposed to multiple pop songs, which eventually became my music taste.""")
\ No newline at end of file \ No newline at end of file
...@@ -39,6 +39,7 @@ INSTALLED_APPS = [ ...@@ -39,6 +39,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'homepage', 'homepage',
'about', 'about',
'contact',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -20,4 +20,5 @@ urlpatterns = [ ...@@ -20,4 +20,5 @@ 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('about/', include('about.urls', namespace="about")), 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