keramat
keramat

Reputation: 4543

Changing database structure of Django in server

When we work with Django in local environment, we change the structure of the Data Base using Command Prompt through migration. But for using Django in server, i don't now how can i apply such changes? How can i type commands to change Data Base structure? Is it a good way to upload site files every time that i do some change again.

Upvotes: 1

Views: 225

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 600059

The whole point of migrations is that you run them on both your local database and in production, to keep them in sync.

Upvotes: 1

Related Questions