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
Show 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
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.
\
...
...
lancesantuyo_music/contact/urls.py
View file @
a60cb8bf
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"
)
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'
)
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
)
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
)
...
...
@@ -14,6 +16,7 @@ class Album(models.Model):
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
)
...
...
lancesantuyo_music/homepage/urls.py
View file @
a60cb8bf
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