Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alliyah_marcelo_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
Alliyah Ericka Therese E. Marcelo
alliyah_marcelo_music
Commits
9da0f5b3
Commit
9da0f5b3
authored
Feb 13, 2023
by
Alliyah Marcelo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finalized editing.
parent
12cde62f
Pipeline
#2747
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
models.cpython-39.pyc
..._marcelo_music/Homepage/__pycache__/models.cpython-39.pyc
+0
-0
models.py
alliyah_marcelo_music/Homepage/models.py
+29
-0
views.py
alliyah_marcelo_music/about/views.py
+1
-1
db.sqlite3
alliyah_marcelo_music/db.sqlite3
+0
-0
No files found.
alliyah_marcelo_music/Homepage/__pycache__/models.cpython-39.pyc
View file @
9da0f5b3
No preview for this file type
alliyah_marcelo_music/Homepage/models.py
View file @
9da0f5b3
from
django.db
import
models
from
django.db
import
models
# Create your models here.
# Create your models here.
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
50
)
monthly_listeners
=
models
.
IntegerField
()
class
Album
(
models
.
Model
):
album_name
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'album_artist'
)
description
=
models
.
CharField
(
max_length
=
1000
)
release_date
=
models
.
CharField
(
max_length
=
50
)
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'song_artist'
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
,
related_name
=
'song_album'
)
song_length
=
models
.
IntegerField
()
alliyah_marcelo_music/about/views.py
View file @
9da0f5b3
...
@@ -3,4 +3,4 @@ from django.http import HttpResponse
...
@@ -3,4 +3,4 @@ from django.http import HttpResponse
# Create your views here.
# Create your views here.
def
index
(
request
):
def
index
(
request
):
return
HttpResponse
(
"Hi! I'm Alliyah. I like listening to a variety of music genres, but I usually listen to pop, indie, and rock the most."
)
return
HttpResponse
(
"Hi! I'm Alliyah and I like listening to music. My top genres are: pop, indie, and rock."
)
\ No newline at end of file
\ No newline at end of file
alliyah_marcelo_music/db.sqlite3
View file @
9da0f5b3
No preview for this file type
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