Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
brendanfausto_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
Brendan Fausto
brendanfausto_music
Commits
434f1e29
Commit
434f1e29
authored
Feb 16, 2023
by
Brendan Fausto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Homepage finished & integrated to the project
parent
878474b9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
3 deletions
+20
-3
settings.py
brendanfausto_music/brendanfausto_music/settings.py
+1
-0
urls.py
brendanfausto_music/brendanfausto_music/urls.py
+3
-2
urls.py
brendanfausto_music/homepage/urls.py
+11
-0
views.py
brendanfausto_music/homepage/views.py
+5
-1
No files found.
brendanfausto_music/brendanfausto_music/settings.py
View file @
434f1e29
...
...
@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'homepage'
]
MIDDLEWARE
=
[
...
...
brendanfausto_music/brendanfausto_music/urls.py
View file @
434f1e29
"""brendanfausto_music URL Configuration
"""brendanfausto_music URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.1/topics/http/urls/
...
...
@@ -18,4 +18,5 @@ from django.urls import path
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'homepage/'
,
include
(
'homepage.urls'
,
namespace
=
"homepage"
))
]
brendanfausto_music/homepage/urls.py
0 → 100644
View file @
434f1e29
# homepage/urls.py
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
)
]
app_name
=
'homepage'
\ No newline at end of file
brendanfausto_music/homepage/views.py
View file @
434f1e29
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
# Create your views here.
# appname/views.py
def
index
(
request
):
return
HttpResponse
(
'Welcome to Brendan
\'
s music library!'
)
\ No newline at end of file
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