Commit 15cf8def authored by EJ Mejilla's avatar EJ Mejilla

Created the about app which links to the about/ page

parent c4049c23
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.
# about/urls.py
from django.urls import path
from .views import self_info
urlpatterns = [
path('', self_info, name='self_info'),
]
app_name = "about"
from django.shortcuts import render
from django.http import HttpResponse
def self_info(request):
return HttpResponse('''Hello! My name is EJ and I am a second
year student taking computer science. While
I pretty much listen to anything under the sun,
I am also a violinist so I have a certain
affinity towards classical music.''')
......@@ -40,7 +40,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'homepage'
'homepage',
'about'
]
MIDDLEWARE = [
......
......@@ -19,5 +19,6 @@ from django.urls import include, path
urlpatterns = [
path('', include('homepage.urls', namespace="homepage")),
path('homepage/', include('homepage.urls', namespace="homepage")),
path('about/', include('about.urls', namespace="about")),
path('admin/', admin.site.urls),
]
# <appname>/urls.py
# homepage/urls.py
from django.urls import path
from .views import welcome_message
......
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