Skip to content
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

Feature request: Add switches problematically #502

Open
sowinski opened this issue Apr 18, 2024 · 4 comments
Open

Feature request: Add switches problematically #502

sowinski opened this issue Apr 18, 2024 · 4 comments

Comments

@sowinski
Copy link

Hi,

it would be very nice if we would be able to define all switches in a config with there names, default value and notes.

That way, we would have in all our environments (dev / stage / prod) the same switches.

Currently I add them manually over the admin. Which is of course a nice feature but not a good solution for constancy.

What do you think about that?

@clintonb
Copy link
Collaborator

You can do that now with a data migration.

@sowinski
Copy link
Author

Is this documented somewhere? It do you have an exaple?

@clintonb
Copy link
Collaborator

It's not documented in this app, but here are the official Django docs: https://docs.djangoproject.com/en/5.0/topics/migrations/#data-migrations. use migrations.RunPython.

Feel free to open a pull request if you think others might benefit from documentation.

@clintonb
Copy link
Collaborator

Related to #50

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

2 participants