Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- web:
- build: .
- container_name: web
- command: python manage.py migrate
- command: python manage.py runserver 0.0.0.0:8000
- volumes:
- - ./src:/src
- ports:
- - "8000:8000"
- depends_on:
- - postgres
- postgres:
- image: postgres:latest
- container_name: postgres
- environment:
- POSTGRES_USER: my_user
- POSTGRES_PASSWORD: my_secret_pass!
- POSTGRES_DB: my_db
- ports:
- - "5432:5432"
- class Story(models.Model):
- title = models.CharField(max_length=255)
- slug = models.SlugField(max_length=255)
- author = models.ForeignKey(User, on_delete=models.CASCADE)
- description = models.TextField(blank=True, null=True)
- image = models.ImageField(upload_to="stories", null=True, blank=True)
- OperationalError: FATAL: the database system is in recovery mode
- DELETE FROM "votes_like" WHERE "votes_like"."story_id" IN (91)
- DELETE FROM "comments_comment" WHERE "comments_comment"."story_id" IN (91)
- DELETE FROM "stories_story" WHERE "stories_story"."id" IN (91)
- OperationalError: server closed the connection unexpectedly
- This probably means the server terminated abnormally before or while processing the request.
- server process was terminated by signal 11: Segmentation fault
Add Comment
Please, Sign In to add comment