Skip to main content

Coffee - Django Admin Tools

codecov Documentation Status

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:8008/coffee/form/?app_name=api&model_name=Category&pk=5 -->

   <form
      action="/coffee/form/submit/?app_name=api&amp;model_name=Category"
      method="POST"
      class="coffee-form"
   >
      <div class="coffee-form-item">
         <label class="coffee-form-item-label" for="name">name</label
         ><textarea
               value="Frozen"
               name="name"
               id="name"
               type="text"
               class="coffee-form-item-input"
         >Frozen</textarea>
      </div>
      <input
         name="csrfmiddlewaretoken"
         value="lWqQXylYRShwQcRxbYCyxrTTOMci1Pv3MJ4MMYEqkK9NM8LIdNsb99AGOigpWR4t"
         type="hidden"
      /><button type="submit" class="coffee-form-submit">Update</button>
   </form>

How to Use

The model form can be used for existing instances of data or be used to create new instances of data.

/coffee/form/?app_name=&model_name=&pk=
  • app_name: The name of your Django application, e.g. api
  • model_name: The name of your application model, e.g. ShoppingItem. Note, this property is case sensitive.
  • pk: Optional. The relevant primary key for your selected model.

Feedback

This project won't move very fast and I've built it mostly for my own projects, if you'd like to contribute, get in touch!

Metadata

Release files for django-coffee-tools 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-coffee-tools 0.1.14
File Size Uploaded Provenance
django-coffee-tools-0.1.14.tar.gz 25.6 kB Without provenance Details

Release files / django-coffee-tools-0.1.14.tar.gz

Download URL django-coffee-tools-0.1.14.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
89fd8e5673bf76b7beeb3262413936023e157ee4d32838000dbf8e1dbb1452e0
BLAKE2b-256 checksum
How to use checksums
4021eb7eccdf97a5f3c2892b2e86ffcace1962686ee9718e7f690f6e00a1f10a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Security for django-coffee-tools 0.1.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page