Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Neptune_Sy_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
Star Neptune R. Sy
Neptune_Sy_music
Commits
86b0e8e0
Commit
86b0e8e0
authored
Feb 16, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added the 'about' application
parent
e5374036
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
92 additions
and
3 deletions
+92
-3
settings.cpython-39.pyc
...usic/Neptune_Sy_music/__pycache__/settings.cpython-39.pyc
+0
-0
settings.py
Neptune_Sy_music/Neptune_Sy_music/settings.py
+1
-0
models.cpython-39.pyc
Neptune_Sy_music/about/__pycache__/models.cpython-39.pyc
+0
-0
0001_initial.py
Neptune_Sy_music/about/migrations/0001_initial.py
+23
-0
0002_subject.py
Neptune_Sy_music/about/migrations/0002_subject.py
+22
-0
0001_initial.cpython-39.pyc
.../about/migrations/__pycache__/0001_initial.cpython-39.pyc
+0
-0
0002_subject.cpython-39.pyc
.../about/migrations/__pycache__/0002_subject.cpython-39.pyc
+0
-0
__init__.cpython-39.pyc
...usic/about/migrations/__pycache__/__init__.cpython-39.pyc
+0
-0
models.py
Neptune_Sy_music/about/models.py
+32
-1
urls.py
Neptune_Sy_music/about/urls.py
+10
-0
views.py
Neptune_Sy_music/about/views.py
+4
-2
db.sqlite3
Neptune_Sy_music/db.sqlite3
+0
-0
No files found.
Neptune_Sy_music/Neptune_Sy_music/__pycache__/settings.cpython-39.pyc
View file @
86b0e8e0
No preview for this file type
Neptune_Sy_music/Neptune_Sy_music/settings.py
View file @
86b0e8e0
...
...
@@ -42,6 +42,7 @@ INSTALLED_APPS = [
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'homepage'
,
'about'
,
'contact'
,
]
...
...
Neptune_Sy_music/about/__pycache__/models.cpython-39.pyc
View file @
86b0e8e0
No preview for this file type
Neptune_Sy_music/about/migrations/0001_initial.py
0 → 100644
View file @
86b0e8e0
# Generated by Django 3.2 on 2023-02-16 15:35
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'IndexCard'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
)),
(
'section'
,
models
.
CharField
(
max_length
=
5
)),
(
'age'
,
models
.
IntegerField
()),
],
),
]
Neptune_Sy_music/about/migrations/0002_subject.py
0 → 100644
View file @
86b0e8e0
# Generated by Django 3.2 on 2023-02-16 15:45
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'about'
,
'0001_initial'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Subject'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
50
)),
(
'teacher_name'
,
models
.
CharField
(
max_length
=
50
)),
(
'units'
,
models
.
IntegerField
()),
],
),
]
Neptune_Sy_music/about/migrations/__pycache__/0001_initial.cpython-39.pyc
0 → 100644
View file @
86b0e8e0
File added
Neptune_Sy_music/about/migrations/__pycache__/0002_subject.cpython-39.pyc
0 → 100644
View file @
86b0e8e0
File added
Neptune_Sy_music/about/migrations/__pycache__/__init__.cpython-39.pyc
0 → 100644
View file @
86b0e8e0
File added
Neptune_Sy_music/about/models.py
View file @
86b0e8e0
# about/models.py
from
django.db
import
models
# Create your models here.
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
)
monthly_listeners
=
models
.
IntegerField
()
pass
class
Album
(
models
.
Model
):
album_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'song'
)
description
=
models
.
CharField
(
max_length
=
500
,
unique
=
True
)
release_date
=
models
.
DateField
()
pass
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
50
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'song'
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
,
)
song_length
=
models
.
TimeField
()
Neptune_Sy_music/about/urls.py
View file @
86b0e8e0
# about/urls.py
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
),
]
# This might be needed, depending on your Django version
app_name
=
"about"
\ No newline at end of file
Neptune_Sy_music/about/views.py
View file @
86b0e8e0
from
django.shortcuts
import
render
# contact/views.py
from
django.http
import
HttpResponse
# Create your views here.
def
index
(
request
):
return
HttpResponse
(
"About my song preferences"
)
\ No newline at end of file
Neptune_Sy_music/db.sqlite3
View file @
86b0e8e0
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