Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jmamador_music
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John Michael T. Amador
jmamador_music
Commits
302a4191
Commit
302a4191
authored
Feb 13, 2023
by
John Michael T. Amador
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finished the about app
parent
931d020e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
urls.py
jmamador_music/About/urls.py
+9
-0
views.py
jmamador_music/About/views.py
+6
-1
settings.py
jmamador_music/jmamador_music/settings.py
+1
-1
urls.py
jmamador_music/jmamador_music/urls.py
+1
-0
No files found.
jmamador_music/About/urls.py
0 → 100644
View file @
302a4191
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
),
]
# This might be needed, depending on your Django version
app_name
=
"About"
jmamador_music/About/views.py
View file @
302a4191
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
# Create your views here.
# Create your views here.
def
index
(
request
):
return
HttpResponse
(
'Hello! I am John Michael T. Amador,'
' you can call me JM. I listen to all types of music'
'but I have been listening to a lot of K-Pop recently.'
)
jmamador_music/jmamador_music/settings.py
View file @
302a4191
...
@@ -38,7 +38,7 @@ INSTALLED_APPS = [
...
@@ -38,7 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'django.contrib.staticfiles'
,
'Homepage'
,
'Homepage'
,
'About'
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
...
jmamador_music/jmamador_music/urls.py
View file @
302a4191
...
@@ -19,4 +19,5 @@ from django.urls import path, include
...
@@ -19,4 +19,5 @@ from django.urls import path, include
urlpatterns
=
[
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"
)),
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment