Guest User

Untitled

a guest
Nov 30th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. web:
  5. build: .
  6. container_name: web
  7. command: python manage.py migrate
  8. command: python manage.py runserver 0.0.0.0:8000
  9. volumes:
  10. - ./src:/src
  11. ports:
  12. - "8000:8000"
  13. depends_on:
  14. - postgres
  15. postgres:
  16. image: postgres:latest
  17. container_name: postgres
  18. environment:
  19. POSTGRES_USER: my_user
  20. POSTGRES_PASSWORD: my_secret_pass!
  21. POSTGRES_DB: my_db
  22. ports:
  23. - "5432:5432"
  24.  
  25. class Story(models.Model):
  26. title = models.CharField(max_length=255)
  27. slug = models.SlugField(max_length=255)
  28. author = models.ForeignKey(User, on_delete=models.CASCADE)
  29. description = models.TextField(blank=True, null=True)
  30. image = models.ImageField(upload_to="stories", null=True, blank=True)
  31.  
  32. OperationalError: FATAL: the database system is in recovery mode
  33.  
  34. DELETE FROM "votes_like" WHERE "votes_like"."story_id" IN (91)
  35. DELETE FROM "comments_comment" WHERE "comments_comment"."story_id" IN (91)
  36. DELETE FROM "stories_story" WHERE "stories_story"."id" IN (91)
  37.  
  38. OperationalError: server closed the connection unexpectedly
  39. This probably means the server terminated abnormally before or while processing the request.
  40.  
  41. server process was terminated by signal 11: Segmentation fault
Add Comment
Please, Sign In to add comment