Thursday, August 28, 2014

Re: Constants values and best practices

Hi Julian,

I think there are a couple options.

The easiest would be to store the constants as Python. I would recommend using the choices field, as detailed by the documentation:

If you must store your constants as part of the database, and would like to keep the constants up to date across multiple databases/developers, you should look into data migrations. South provides them, as do the new migrations in Django 1.7 (I believe).

Hope that helps,

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment