python - Django - Using different models in different environments -


We have a demo application, which is at its root, a series of webpages with forms that our users In order to fill in. (We call a series of pages specifically on those pages "flow.")

We will white-label this app for a partner - partners would like to add some areas to their own new Add some webpage to the form, the result can be a new order in which the form is filled. (In addition to changes in current form / model or new form / model, a new "flow".)

To expand our existing, simple form-and-model structure to use differently What is the best way to form and model based on running instances of the application (for example an environment variable)?

  • To use each model and form in the app, apply something like get_user_model, which will look at the current environment
  • Store more common key-value so that we can implement the current implementation (I.e., the name of the data field is also part of the data)
  • A data model that tracks the "flow" of this particular environment and

< P> The approach boils down to three concepts:
  • Add dynamically fields to module sections
  • The system respects new fields
  • To work up To get load order correct
  • via EXTRA_MODEL_FIELDS

    With this dynamic field, this model has done a good job implementing field injection.

    Comments

    Popular posts from this blog

    java - Can't add JTree to JPanel of a JInternalFrame -

    javascript - data.match(var) not working it seems -

    javascript - How can I pause a jQuery .each() loop, while waiting for user input? -