Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ejmejilla_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
EJ Mejilla
ejmejilla_music
Commits
be8d2e7f
Commit
be8d2e7f
authored
Feb 20, 2023
by
EJ Mejilla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the README file for Lab 2.
parent
09fce4b3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
5 deletions
+71
-5
README.txt
README.txt
+4
-4
db.sqlite3
ejmejilla_music/db.sqlite3
+0
-0
admin.cpython-310.pyc
ejmejilla_music/homepage/__pycache__/admin.cpython-310.pyc
+0
-0
models.cpython-310.pyc
ejmejilla_music/homepage/__pycache__/models.cpython-310.pyc
+0
-0
admin.py
ejmejilla_music/homepage/admin.py
+20
-1
0001_initial.py
ejmejilla_music/homepage/migrations/0001_initial.py
+47
-0
0001_initial.cpython-310.pyc
...epage/migrations/__pycache__/0001_initial.cpython-310.pyc
+0
-0
No files found.
README.txt
View file @
be8d2e7f
Eduard James G. Mejilla, 213936, 2 BS CS-DGDD, CSCI 40 F
LAB 0
1: Song Library
LAB 0
2: Song Library v2
February 13, 2023
I hereby certify that I have truthfully complete
s
all the
tasks f this lab on my own.
I hereby certify that I have truthfully complete
d
all the
tasks
o
f this lab on my own.
Eduard James G. Mejilla, February
13
, 2023
Eduard James G. Mejilla, February
20
, 2023
ejmejilla_music/db.sqlite3
View file @
be8d2e7f
No preview for this file type
ejmejilla_music/homepage/__pycache__/admin.cpython-310.pyc
View file @
be8d2e7f
No preview for this file type
ejmejilla_music/homepage/__pycache__/models.cpython-310.pyc
View file @
be8d2e7f
No preview for this file type
ejmejilla_music/homepage/admin.py
View file @
be8d2e7f
from
django.contrib
import
admin
# Register your models here.
from
.models
import
Artist
,
Song
,
Album
class
ArtistAdmin
(
admin
.
ModelAdmin
):
model
=
Artist
list_display
=
(
'artist_name'
,
'monthly_listeners'
)
class
AlbumAdmin
(
admin
.
ModelAdmin
):
model
=
Album
list_display
=
(
'album_name'
,
'artist'
)
class
SongAdmin
(
admin
.
ModelAdmin
):
model
=
Song
list_display
=
(
'song_title'
,
'artist'
,
'album'
)
admin
.
site
.
register
(
Artist
,
ArtistAdmin
)
admin
.
site
.
register
(
Album
,
AlbumAdmin
)
admin
.
site
.
register
(
Song
,
SongAdmin
)
ejmejilla_music/homepage/migrations/0001_initial.py
0 → 100644
View file @
be8d2e7f
# Generated by Django 3.2 on 2023-02-13 12:52
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Album'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'album_name'
,
models
.
CharField
(
max_length
=
100
,
unique
=
True
)),
(
'description'
,
models
.
CharField
(
max_length
=
500
)),
(
'release_date'
,
models
.
DateField
()),
],
),
migrations
.
CreateModel
(
name
=
'Artist'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'artist_name'
,
models
.
CharField
(
max_length
=
100
,
unique
=
True
)),
(
'monthly_listeners'
,
models
.
IntegerField
()),
],
),
migrations
.
CreateModel
(
name
=
'Song'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'song_title'
,
models
.
CharField
(
max_length
=
100
,
unique
=
True
)),
(
'song_length'
,
models
.
IntegerField
()),
(
'album'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.album'
)),
(
'artist'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.artist'
)),
],
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'artist'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.artist'
),
),
]
ejmejilla_music/homepage/migrations/__pycache__/0001_initial.cpython-310.pyc
0 → 100644
View file @
be8d2e7f
File added
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