-
Notifications
You must be signed in to change notification settings - Fork 11
Migrating an existing Django model
deby edited this page Oct 18, 2018
·
5 revisions
↑ Parent: Migrate from MagiCircles1 to MagiCircles2
-
Make sure you read the entire documentation for MagiModel and MagiModel utils to make sure you're aware of all the features.
-
Create the model in
${PROJECT}/models.py
. -
Go through each fields in the old model and ask yourself:
- Does it still make sense to have this field? Can we remove it?
- Is there a different, smarter way we can store this data?
- Is there anything in the MagiModel documentation that I could follow to improve this field?
-
Make sure you check all the boxes in the checklist at the end of MagiModel.
Try your best to follow everything MagiCircles offers, but don't worry about getting anything wrong or forgetting anything. The other developers will take the time to review everything and help, so it's totally fine!
→ Next: Production Environment
I. Introduction
II. Tutorials
III. References
- Files tree
- Default collections
- Default pages
- Website settings
- MagiCollection settings
- Abstract models
- Abstract collections
- MagiForm settings
- MagiFiltersForm settings
- Single pages settings
IV. Utils
-
MagiModel utils
- MagiModel images and files
- DateTime fields
- BaseAccount model
- Save choices values as integer rather than strings
- Store comma separated values
- Store dictionaries
- Store Markdown texts
- Translate fields values in multiple languages
- Store JSON
- More model field types
- Transform images before saving them
- Check choices at form level instead of model level
- Use an internal cache for foreign keys in models
- Customize views with MagiModel properties
- Events
- Form utils
- Python utils
- Templates utils
- Javascript utils
- Enable and disable existing collections and pages
- Translations
- Page titles and descriptions
- Characters
- Seasons
- Roles and permissions
- Allow your staff team to change configurations
- Custom users preferences and settings
- Background illustrations
- Activities tabs
- Corner popups
VI. More