This extension for Visual Studio Code enables easy management of Docker containers and Django migrations directly from the editor, streamlining your development workflow.
- Select a Docker container running a Django project.
- Generate Django migrations within the selected container.
- Apply Django migrations.
- View a list of available migrations.
- Roll back migrations.
Ensure Docker and Visual Studio Code are installed on your system to use this extension.
Install the extension through the Visual Studio Code Marketplace:
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the square icon on the sidebar or pressing
Ctrl+Shift+X
. - Search for "Docker Django Migrations Extension" and click Install.
- Select Docker Container: Click on the extension icon in the status bar and choose "Select Docker Container" from the menu.
- Make Migrations: Select "Make Migrations" to generate migrations based on changes in your Django models.
- Make Migrations and Migrate: Choose "Make Migrations and Migrate" to apply the generated migrations.
- View Migrations: To see a list of migrations, select "Show Migrations".
- Rollback Migrations: To roll back a migration, select "Rollback Migration" and specify the migration name.
If you have any questions, suggestions for improvement, or encounter any issues, please feel free to reach out through GitHub Issues.
This extension is distributed under the MIT License. See the LICENSE file in the source code for more detailed information.