Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import unicode_literals
- from django.db import models
- class DownloadedSongs(models.Model):
- song_name = models.CharField(max_length = 255)
- song_artist = models.CharField(max_length = 255)
- def __str__(self):
- return self.song_name + ' - ' + self.song_artist
- import dj_database_url
- DATABASES['default'] = dj_database_url.config()
- Exception Type: ProgrammingError at /download/
- Exception Value: relation "Download_downloadedsongs" does not exist
- LINE 1: INSERT INTO "Download_downloadedsongs" ("song_name", "song_a...
- beautifulsoup4==4.4.1
- cssselect==0.9.1
- dj-database-url==0.4.1
- dj-static==0.0.6
- Django==1.9
- django-toolbelt==0.0.1
- gunicorn==19.6.0
- lxml==3.6.0
- psycopg2==2.6.1
- requests==2.10.0
- static3==0.7.0
- heroku run python manage.py makemigrations
- heroku run python manage.py migrate
Add Comment
Please, Sign In to add comment