Skip to content

Disable migrations #1161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abhishek-compro opened this issue Mar 11, 2025 · 3 comments
Open

Disable migrations #1161

abhishek-compro opened this issue Mar 11, 2025 · 3 comments

Comments

@abhishek-compro
Copy link

When you supply None as a value for an app, Django will consider the app as an app without migrations regardless of an existing migrations submodule

Reference: https://docs.djangoproject.com/en/5.1/ref/settings/#migration-modules

@dantownsend
Copy link
Member

Hmm, interesting. So something like this:

APP_CONFIG = AppConfig(
    app_name="my_app",
    migrations_folder_path=None,
)

@Compro-Prasad
Copy link
Contributor

#1161 (comment)

Does it already work? Or is it a new thing?

@dantownsend
Copy link
Member

At the moment it looks like it always needs the migration folder - so we would have to add support for None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants