This lets you create models within the admin interface.
For editing models: pip install south
and add south
to INSTALLED_APPS
- Run
setup.py
or addadmin_models_editor
to your PYTHONPATH. - Add
admin_models_editor
toINSTALLED_APPS
in yoursettings.py
3. Add from admin_models_editor.admin_auto_register import autoregister
and
autoregister(INSTALLED_APPS)
to settings.py
4. Run python manage.py admin_models_editor_install_templates
or add
os.path.join(BASE_DIR, "../admin_models_editor/templates"),
to TEMPLATE_DIRS
to settings.py and add import os
and BASE_DIR = os.getcwd()
to settings.py
- Enable admin
- Add
url(r'^admin/create_model/', 'admin_models_editor.views.create_model'),
to urls.py
To enable simple mode, replaces Null & Blank checkboxes with one Required checkbox, add
ADMIN_MODELS_EDITOR_SIMPLE_MODE = True
to settings.py
Timothy Clemans <[email protected]>
- Validate the models so admins can't make the site unuseable
- Update the form based on changes to the code
- Change model name if model name changed in code DONE
- Change field names if field names changed in code DONE
- Remove field if field deleted from code
- Change field type if field type changed in code
- Make models editable
- Make a graphical interface, see http://gaesql.appspot.com/ and http://code.google.com/p/uml-to-django/