Skip to main content

Entries is a helper Django app, CRUD.

Project description



Basic create-read-update-delete (CRUD) functionality for an Entry model.

The base template makes use of light css and javascript:

  1. starter.css stylesheet
  2. pylon 0.1.1 for <hstack> and <vstack> layouts
  3. htmx 1.6.1 for html-over-the-wire functionality, e.g. infinite scrolling
  4. hyperscript 0.9 for client-side reactivity
  5. simplemde a simple markdown editor


Install in your virtual environment:

.venv> pip3 install django-entries # poetry add django-entries

Include package in main project settings file:

# in project_folder/
INSTALLED_APPS = [..., "django_entries"]  # this is the new django-entries folder

# in project_folder/
from django.views.generic import TemplateView
from django.urls import path, include  # new

urlpatterns = [
    path("entry/", include("django_entries.urls")),  # new
        "", TemplateView.as_view(template_name="home.html")
    ),  # (optional: if fresh project install)

Add to database:

.venv> python migrate # adds the `Entry` model to the database.
.venv> python createsuperuser # (optional: if fresh project install)

Login to add:

.venv> `python runserver`
# Visit
# Assumes _entry_ as folder in config/
# The `Add entry` button is only visible to logged in users.
# Can login via admin using the superuser account
# Visit the list page again at to see the `Add entry` button.


.venv> pytest

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_entries-0.1.12.tar.gz (46.5 kB view hashes)

Uploaded source

Built Distribution

django_entries-0.1.12-py3-none-any.whl (51.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page