Finishing the Project and cleaning of files

parent 38d93b77
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/myenv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
</module>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (danimuncal_music)" project-jdk-type="Python SDK" />
<component name="PyCharmProfessionalAdvertiser">
<option name="shown" value="true" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/danimuncal_music.iml" filepath="$PROJECT_DIR$/.idea/danimuncal_music.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
from django.contrib import admin
# Register your models here.
...@@ -19,8 +19,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent ...@@ -19,8 +19,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-@n5wb29#-@w84r1^a-@_u=8_9j$32xh9q#t90zz2wvk=ph7^ae'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
......
File added
# Generated by Django 4.1.6 on 2023-02-21 13:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
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=60)),
('monthly_listeners', models.IntegerField(default=0)),
('birth_name', models.CharField(max_length=60)),
('bio', models.CharField(max_length=700)),
],
),
migrations.CreateModel(
name='Song',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('song_name', models.CharField(max_length=60)),
('artist_song', models.CharField(max_length=60)),
('album_song', models.CharField(max_length=60)),
('song_length', models.IntegerField(default=0)),
('music_video', models.BooleanField(default=False, null=True)),
('lyrics', models.TextField(blank=True)),
],
),
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=60)),
('description', models.CharField(max_length=400)),
('release_date', models.DateTimeField(verbose_name='date released')),
('label', models.CharField(max_length=60)),
('song_count', models.IntegerField(default=0)),
('artist', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='album', to='homepage.artist')),
],
),
]
# Generated by Django 4.1.6 on 2023-02-21 13:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='song',
name='album_song',
),
migrations.RemoveField(
model_name='song',
name='artist_song',
),
migrations.AddField(
model_name='song',
name='album',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.album'),
),
migrations.AddField(
model_name='song',
name='artist',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.artist'),
),
migrations.AlterField(
model_name='album',
name='artist',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.artist'),
),
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(verbose_name='date released'),
),
]
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'danimuncal_music.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment