Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
sharmchua_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
Sharmaine Chua
sharmchua_music
Commits
788a1ea6
Commit
788a1ea6
authored
Feb 13, 2023
by
Sharmaine Chua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented the apps: homepage, about, contact
parent
450e91a2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
4 deletions
+35
-4
urls.py
sharmchua_music/about/urls.py
+7
-0
views.py
sharmchua_music/about/views.py
+3
-1
urls.py
sharmchua_music/contact/urls.py
+7
-0
views.py
sharmchua_music/contact/views.py
+3
-1
urls.py
sharmchua_music/homepage/urls.py
+7
-0
views.py
sharmchua_music/homepage/views.py
+4
-1
urls.py
sharmchua_music/sharmchua_music/urls.py
+4
-1
No files found.
sharmchua_music/about/urls.py
0 → 100644
View file @
788a1ea6
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
),
]
app_name
=
"about"
sharmchua_music/about/views.py
View file @
788a1ea6
from
django.shortcuts
import
render
# Create your views here.
from
django.http
import
HttpResponse
def
index
(
request
):
return
HttpResponse
(
'About Me!
\n
Hi! I am Sharmaine, a sophomore computer science student. I love listening to R&B or K-pop.
\n
Nice to meet you :)'
)
sharmchua_music/contact/urls.py
0 → 100644
View file @
788a1ea6
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
),
]
app_name
=
"contact"
sharmchua_music/contact/views.py
View file @
788a1ea6
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
# Create your views here.
def
index
(
request
):
return
HttpResponse
(
'Contact me here! Phone Number: 09123456789 Email: sharmaine.chua@obf.ateneo.edu'
)
sharmchua_music/homepage/urls.py
0 → 100644
View file @
788a1ea6
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
),
]
app_name
=
"homepage"
\ No newline at end of file
sharmchua_music/homepage/views.py
View file @
788a1ea6
from
django.shortcuts
import
render
# Create your views here.
from
django.http
import
HttpResponse
def
index
(
request
):
return
HttpResponse
(
"Welcome to Sharmaine's Music Library!"
)
sharmchua_music/sharmchua_music/urls.py
View file @
788a1ea6
...
...
@@ -14,8 +14,11 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
include
,
path
urlpatterns
=
[
path
(
'homepage/'
,
include
(
'homepage.urls'
,
namespace
=
"homepage"
)),
path
(
'about/'
,
include
(
'about.urls'
,
namespace
=
"about"
)),
path
(
'contact/'
,
include
(
'contact.urls'
,
namespace
=
"contact"
)),
path
(
'admin/'
,
admin
.
site
.
urls
),
]
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