Contexts for Django Admin homepage
Project description
django-admin-contexts
Display only a set of apps and models in the Django Admin homepage, based on the chosen context. This is useful when you have a lot of apps and models and you want to focus on a specific set of them.
Installation
Via pip
command:
pip install django-admin-contexts
...or you can clone the repo and install it using pip
too:
git clone git://github.com/matagus/django-admin-contexts.git
cd django-admin-contexts
pip install -e .
then add django_admin_contexts
to your settings.py
before django.contrib.admin
:
INSTALLED_APPS = (
# ...
"django_admin_contexts",
# ...
"django.contrib.admin",
# ...
)
then run the migrations:
python manage.py migrate
Usage
Browse to the Django Admin and create some contexts in the "Django Admin Contexts" section, associating them with one or more models.
Then, you can see the contexts in the Django Admin homepage.
Contributing
Contributions are welcome! ❤️
Please read Contributing.md for detailed instructions on how to help.
Running Tests
hatch run test:test
will run the tests in every Python + Django versions combination.
hatch run test.py3.12-5.0:test will run them for python 3.12 and Django 5.0. Please see possible combinations using
hatch env show` ("test" matrix).
License
django-admin-contexts
is released under an BSD License - see the LICENSE
file for more information.
Acknowledgements
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.
Source Distribution
Built Distribution
File details
Details for the file django_admin_contexts-0.2.0.tar.gz
.
File metadata
- Download URL: django_admin_contexts-0.2.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7bd2e2cf4f62555aed2f07b2e05c0e58f2f29ca9fe90719f9f71aa6b298447b |
|
MD5 | 257f14fc702bc806378a8cbb74c1bae0 |
|
BLAKE2b-256 | 7be019d08f1c509ce7ff03b9d1ce4b5c60fa32851a89edc0f04ec95dff77b275 |
File details
Details for the file django_admin_contexts-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: django_admin_contexts-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87497c098686f557eeac6ebfa6c7c41684887e9965e975f848f30eb39c56fef8 |
|
MD5 | 36e89ac10f2260088fe96892f59b9e81 |
|
BLAKE2b-256 | 52b6848b23d10290fd4b16f18bb103bfa7e95f85893266c89d3f4880144944d7 |