An alternative to django admin
Project description
GAS
Generic Administration Sistem, an alternative to django admin with a set of generic views.
Instalation
-
Install
django-gas
package:pip install django-gas
-
Add
'gas'
toINSTALLED_APPS
-
Add
gas
urls to project'surls.py
:import gas.sites
urlpatterns = [ path('control-panel/', include(gas.sites.site.urls)), ]
-
Run
python manage.py migrate
Configuration
Project settings can customize the gas
control panel:
GAS_TITLE
: Name of the control panel.GAS_LOGO
: Icon for the control panel.GAS_MEDIA
: A django form's Media like dict with css and js files. Overrides default css and javascript.GAS_EXTRA_MEDIA
: A django form's Media like dict with css and js files. Extends current css and javascript instead of overriding.
The default values of those settings can be viewed in the
gas/gas_settings.py
file.
Integration
Create a submodule gas.config
in your django app.
-\ yourapp
\gas
__init__.py
config.py
admin.py
models.py
...
Edit this config.py
file to register your code into gas
. For examples look
at gas.gas.config
and gas.gas.users
modules.
Licenses
The license of the code is GPLv3, but in the gas/static/vendor
folder there
is some external code with different licenses.
Changelog
0.6
- Close button for messages
- 89a54bf Add locale files to package
- 5597d20 Add basque translations
0.5.1
- Fix typo
0.5
- Update spanish translations
- multipart/form-data by default
- New templatetag for pagination
0.4
- Helper function to use SplitDateTimeField for datetimes
- Update spanish translation
0.3
- Allow extending GAS media files
- Allow actions in every view
- Enhance support for inline formsets
- Add missing templates
- Add help_text to gas views
0.2
- Allow overriding base_form template controls
- Style login
- Fix migration
- Add spanish translation
- Add form.media to base_form.html
- Fix license in setup.cfg
0.1
Initial relase.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.