Commit 4dad54c0 authored by Angelo Alvarez's avatar Angelo Alvarez

Added App: About

parent 54874526
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AboutConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'About'
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 = 'About'
\ 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("I love indie, alternative and old songs. Usually, I have a diverse music taste and can almost listen to all niche genres. I think that as long as the music can make me feel something, I am willing to listen to it.")
\ No newline at end of file
......@@ -20,4 +20,5 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('homepage/', include('Homepage.urls', namespace='Homepage')),
path('contact/', include('Contact.urls', namespace='Contact')),
path('about/', include('About.urls', namespace='About')),
]
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