Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lancesantuyo_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
Lance Dominic B. Santuyo
lancesantuyo_music
Commits
a60cb8bf
Commit
a60cb8bf
authored
Feb 23, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formated files to better follow PEP8 guidelines.
parent
03c9c209
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
23 additions
and
13 deletions
+23
-13
urls.py
lancesantuyo_music/about/urls.py
+1
-1
views.py
lancesantuyo_music/about/views.py
+2
-1
urls.py
lancesantuyo_music/contact/urls.py
+1
-1
views.py
lancesantuyo_music/contact/views.py
+2
-1
admin.cpython-311.pyc
...esantuyo_music/homepage/__pycache__/admin.cpython-311.pyc
+0
-0
models.cpython-311.pyc
...santuyo_music/homepage/__pycache__/models.cpython-311.pyc
+0
-0
admin.py
lancesantuyo_music/homepage/admin.py
+10
-6
0001_initial.cpython-311.pyc
...epage/migrations/__pycache__/0001_initial.cpython-311.pyc
+0
-0
__init__.cpython-311.pyc
.../homepage/migrations/__pycache__/__init__.cpython-311.pyc
+0
-0
models.py
lancesantuyo_music/homepage/models.py
+5
-2
urls.py
lancesantuyo_music/homepage/urls.py
+1
-1
views.py
lancesantuyo_music/homepage/views.py
+1
-0
No files found.
lancesantuyo_music/about/urls.py
View file @
a60cb8bf
...
...
@@ -5,4 +5,4 @@ urlpatterns = [
path
(
''
,
index
,
name
=
'index'
),
]
app_name
=
"about"
\ No newline at end of file
app_name
=
"about"
lancesantuyo_music/about/views.py
View file @
a60cb8bf
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
def
index
(
request
):
return
HttpResponse
(
"Hi! I'm Lance, a second-year student in Ateneo de Manila
\
University. I really enjoy playing video games and running.
\
...
...
@@ -9,4 +10,4 @@ def index(request):
inclined towards one genre. Previously, I was into J-Pop,
\
before that, classical music, and before that, jazz music.
\
Currently, I can't stop listening to rap. It's incredibly
\
fun to discover new genres and styles of music!"
)
\ No newline at end of file
fun to discover new genres and styles of music!"
)
lancesantuyo_music/contact/urls.py
View file @
a60cb8bf
...
...
@@ -5,4 +5,4 @@ urlpatterns = [
path
(
''
,
index
,
name
=
'index'
),
]
app_name
=
"contact"
\ No newline at end of file
app_name
=
"contact"
lancesantuyo_music/contact/views.py
View file @
a60cb8bf
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
def
index
(
request
):
return
HttpResponse
(
"You may contact me through the email lance@santuyo
\
.com or the phone number 0912-345-6789"
)
\ No newline at end of file
.com or the phone number 0912-345-6789"
)
lancesantuyo_music/homepage/__pycache__/admin.cpython-311.pyc
View file @
a60cb8bf
No preview for this file type
lancesantuyo_music/homepage/__pycache__/models.cpython-311.pyc
View file @
a60cb8bf
No preview for this file type
lancesantuyo_music/homepage/admin.py
View file @
a60cb8bf
...
...
@@ -6,24 +6,28 @@ from django.contrib import admin
from
.models
import
Artist
,
Album
,
Song
class
ArtistAdmin
(
admin
.
ModelAdmin
):
model
=
Artist
search_fields
=
(
'artist_name'
,
'birth_name'
)
list_display
=
(
'artist_name'
,
'birth_name'
,
'monthly_listeners'
)
list_filter
=
(
'artist_name'
,
'birth_name'
)
model
=
Artist
search_fields
=
(
'artist_name'
,
'birth_name'
)
list_display
=
(
'artist_name'
,
'birth_name'
,
'monthly_listeners'
)
list_filter
=
(
'artist_name'
,
'birth_name'
)
class
AlbumAdmin
(
admin
.
ModelAdmin
):
model
=
Album
search_fields
=
(
'album_name'
,
'description'
,
'label'
)
list_display
=
(
'album_name'
,
'description'
,
'release_date'
,
'label'
,
'song_count'
)
list_filter
=
(
'album_name'
,)
class
SongAdmin
(
admin
.
ModelAdmin
):
model
=
Song
search_fields
=
(
'song_title'
,
'lyrics'
)
list_display
=
(
'song_title'
,
'song_length'
,
'lyrics'
,
'music_video'
)
list_filter
=
(
'song_title'
,)
admin
.
site
.
register
(
Artist
,
ArtistAdmin
)
admin
.
site
.
register
(
Album
,
AlbumAdmin
)
admin
.
site
.
register
(
Song
,
SongAdmin
)
\ No newline at end of file
admin
.
site
.
register
(
Song
,
SongAdmin
)
lancesantuyo_music/homepage/migrations/__pycache__/0001_initial.cpython-311.pyc
View file @
a60cb8bf
No preview for this file type
lancesantuyo_music/homepage/migrations/__pycache__/__init__.cpython-311.pyc
View file @
a60cb8bf
No preview for this file type
lancesantuyo_music/homepage/models.py
View file @
a60cb8bf
from
django.db
import
models
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
100
)
monthly_listeners
=
models
.
IntegerField
()
birth_name
=
models
.
CharField
(
max_length
=
100
)
bio
=
models
.
CharField
(
max_length
=
700
)
class
Album
(
models
.
Model
):
album_name
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
...
...
@@ -13,11 +15,12 @@ class Album(models.Model):
release_date
=
models
.
DateTimeField
()
label
=
models
.
CharField
(
max_length
=
100
)
song_count
=
models
.
IntegerField
()
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
song_length
=
models
.
IntegerField
()
music_video
=
models
.
BooleanField
()
lyrics
=
models
.
TextField
()
\ No newline at end of file
lyrics
=
models
.
TextField
()
lancesantuyo_music/homepage/urls.py
View file @
a60cb8bf
...
...
@@ -5,4 +5,4 @@ urlpatterns = [
path
(
''
,
index
,
name
=
'index'
),
]
app_name
=
"homepage"
\ No newline at end of file
app_name
=
"homepage"
lancesantuyo_music/homepage/views.py
View file @
a60cb8bf
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
def
index
(
request
):
return
HttpResponse
(
"Welcome to Lance's Music Library!"
)
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