Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
continuous deployment django database
Using the App platform for a Wagtail(django) project, I struggle to continuously deploy my database.
My project’s code is updated upon deployment. I can then enter the data from my server.
Yet, the DB component isn’t updated.
My emote DB can run the project with either sqlite3 or postgres.
While sqlite is simpler for local considerations, I switched to postgres for a continuous deployment.
I added a Db postgres component. But it doesn’t display the deployment modifications. Idem, after I run ‘python manage.py migrate’ command in my server console.
I found plenty of information but no script that is guaranteed to work and is up-to-date.
I’d highly appreciated if you can you advise on the best practice, a barebones example that I can follow step-by-step that would set me on my way.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×