Kazimierz Migdał
Kazimierz Migdał

Reputation: 65

Storing the Django project with the PostgreSQL database on GitHub

I changed the database from SQLite3 to PostgreSQL in my Django project. Is it possible to store my new database in the GitHub repository so that after cloning and running by the command

python manage.py runserver

the project has started with the whole database?

Upvotes: 1

Views: 889

Answers (1)

Ayush Pallav
Ayush Pallav

Reputation: 1057

You cannot save the database as such, you can instead create fixtures to be run. Whenever someone will clone the project, he/she can simple run those fixtures to populate the database.

Upvotes: 1

Related Questions