A ready to use Django app that provides expandable Django admin tools and other quality of life tools
Project description
Coffee - Django Admin Tools
django-coffee-tools
provides a ready-to-use Django plugin which provides dynamic form generation for your Django models. These forms are intended to be integrated with your admin or management dashboard to allow easy management of your application's data.
Why Coffee?
Plug and play - waste less time making views to manage your application's data.
Quick Install
INSTALLED_APPS = [
# ...
"coffee",
]
urlpatterns = [
path("admin/", admin.site.urls),
path("coffee/", include("coffee.urls")),
path("api/", include("api.urls")),
]
Ready to Go!
Generate HTML which can be integrated into your frontend.
<!-- http://localhost:8000/coffee/form/?app_name=api&model_name=Category&pk=4 -->
<div class="Wrapper">
<div class="Header">
<form
method="POST"
action="/coffee/delete/4/?app_name=api&model_name=Category"
>
<input type="hidden" name="csrfmiddlewaretoken" nbvBvalue="XXX" /><button
type="submit"
>
Delete
</button>
</form>
</div>
<form
method="POST"
class="Form"
action="/coffee/form/submit/?app_name=api&model_name=Category"
>
<div class="FormItem">
<label for="id">id</label>
<input type="number" value="4" name="id" />
</div>
<div class="FormItem">
<label for="name">name</label>
<input type="text" value="Bakery" name="name" />
</div>
<div class="FormItem">
<button type="submit" class="FormButton">Submit</button>
</div>
<input type="hidden" name="csrfmiddlewaretoken" value="XXX" />
</form>
</div>
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
django-coffee-tools-0.1.1.tar.gz
(18.6 kB
view hashes)
Close
Hashes for django-coffee-tools-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41109c26f9a97545f487326ba5b4a7a40e629a849b4bedceefd8049f999fe507 |
|
MD5 | 1fbc82c86750ec15550154949d156acd |
|
BLAKE2b-256 | a89322ec52ad0f46b2abfda4b238742994a609865e76368791bb1e1af5ccf2d5 |