This extension allows you to execute the makemigrations and migrate Django's commands of an application running inside a container without having to write commands in the terminal.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
This extension for Visual Studio Code enables easy management of Docker containers and Django migrations directly from the editor, streamlining your development workflow.
Features
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.
Getting Started
Ensure Docker and Visual Studio Code are installed on your system to use this extension.
Installation
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.
Usage
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.
Support
If you have any questions, suggestions for improvement, or encounter any issues, please feel free to reach out through GitHub Issues.
License
This extension is distributed under the MIT License. See the LICENSE file in the source code for more detailed information.