Guest User

Untitled

a guest
Jun 30th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. from __future__ import unicode_literals
  2. from django.db import models
  3.  
  4.  
  5. class DownloadedSongs(models.Model):
  6. song_name = models.CharField(max_length = 255)
  7. song_artist = models.CharField(max_length = 255)
  8.  
  9. def __str__(self):
  10. return self.song_name + ' - ' + self.song_artist
  11.  
  12. import dj_database_url
  13. DATABASES['default'] = dj_database_url.config()
  14.  
  15. Exception Type: ProgrammingError at /download/
  16. Exception Value: relation "Download_downloadedsongs" does not exist
  17. LINE 1: INSERT INTO "Download_downloadedsongs" ("song_name", "song_a...
  18.  
  19. beautifulsoup4==4.4.1
  20. cssselect==0.9.1
  21. dj-database-url==0.4.1
  22. dj-static==0.0.6
  23. Django==1.9
  24. django-toolbelt==0.0.1
  25. gunicorn==19.6.0
  26. lxml==3.6.0
  27. psycopg2==2.6.1
  28. requests==2.10.0
  29. static3==0.7.0
  30.  
  31. heroku run python manage.py makemigrations
  32. heroku run python manage.py migrate
Add Comment
Please, Sign In to add comment