Commit 134df1c7 authored by Sharmaine Chua's avatar Sharmaine Chua

added the models to homepage.py and added apps to the installed apps

parent 788a1ea6
Pipeline #2755 failed with stages
# Generated by Django 4.1.6 on 2023-02-13 15:44
from django.db import migrations, models
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.TextField()),
('artist', models.TextField()),
('description', models.TextField()),
('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.TextField()),
('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.TextField()),
('artist', models.TextField()),
('album', models.TextField()),
('song_length', models.IntegerField()),
],
),
]
from django.db import models
# Create your models here.
class Artist(models.Model):
artist_name = models.TextField()
monthly_listeners = models.IntegerField()
class Album(models.Model):
album_name = models.TextField()
artist = models.TextField()
description = models.TextField()
release_date = models.DateField()
class Song(models.Model):
song_title = models.TextField()
artist = models.TextField()
album = models.TextField()
song_length = models.IntegerField()
......@@ -41,6 +41,9 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'homepage',
'about',
'contact',
]
MIDDLEWARE = [
......
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