Commit 246c6845 authored by Michael Lopez's avatar Michael Lopez

made minor changes to the max_length; value now is 255, and added time zone

parent ff9dc2f4
from django.db import models from django.db import models
class Artist(models.Model): class Artist(models.Model):
artist_name = models.CharField(max_length=30) artist_name = models.CharField(max_length=255)
monthly_listeners = models.IntegerField() monthly_listeners = models.IntegerField()
birth_name = models.CharField(max_length=30) birth_name = models.CharField(max_length=255)
bio = models.TextField() bio = models.TextField(max_length=700)
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length=30) album_name = models.CharField(max_length=255)
artist = models.CharField(max_length=30) artist = models.CharField(max_length=255)
description = models.CharField(max_length=100) description = models.CharField(max_length=255)
release_date = models.DateField() release_date = models.DateField()
label = models.CharField(max_length=30) label = models.CharField(max_length=255)
song_count = models.IntegerField() song_count = models.IntegerField()
class Song(models.Model): class Song(models.Model):
song_title = models.CharField(max_length=30) song_title = models.CharField(max_length=255)
artist = models.CharField(max_length=30) artist = models.CharField(max_length=255)
album = models.CharField(max_length=30) album = models.CharField(max_length=255)
song_length = models.IntegerField() song_length = models.IntegerField()
music_video_flag = models.BooleanField() music_video_flag = models.BooleanField()
lyrics = models.TextField() lyrics = models.TextField()
...@@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-62s#zz%y2=fx97e!+d%isxjh1zd%41#f22*5az2$729w+ni17b ...@@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-62s#zz%y2=fx97e!+d%isxjh1zd%41#f22*5az2$729w+ni17b
# 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
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'www.mysite.com']
# Application definition # Application definition
...@@ -108,7 +108,7 @@ AUTH_PASSWORD_VALIDATORS = [ ...@@ -108,7 +108,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC' TIME_ZONE = 'Asia/Manila'
USE_I18N = True USE_I18N = True
......
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