Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Заменить sqlite на postgres. #176

Open
3 tasks
NiKuma0 opened this issue Sep 16, 2023 · 1 comment · May be fixed by #179
Open
3 tasks

Заменить sqlite на postgres. #176

NiKuma0 opened this issue Sep 16, 2023 · 1 comment · May be fixed by #179
Assignees

Comments

@NiKuma0
Copy link
Member

NiKuma0 commented Sep 16, 2023

Why?

Для продакшена лучше использовать postgres.

How To Do?

  1. Добавить в docker-compose.yml контейнер с postgres-ом.
  2. Добавить переменные для подключения к БД (логин, пароль, хост и т.п.)
  3. Вписать новую БД файл настроек - sobitie_drf/sobitie_drf/settings.py

Создадим ПР, но мержить не будет, пока не доделаем еще пару задач с интеграцией:

  • Создать docker-pg.yml
  • Обновить README.md.
  • Разделить сеттинги на dev и prod.

Эти задачи для других ПР-ов.

@andreibo87
Copy link
Contributor

Можно мне? я без таски сижу как раз)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants