Skip to main content

Entries is a helper Django app with CRUD functions based on htmx.

Project description

Entries

Overview

Entries is a Django app that has basic create-read-update-delete (CRUD) functionality for an Entry model with title, excerpt,content and author fields. The base template makes use of light css and javascript.

CSS

  1. starter.css stylesheet
  2. pylon 0.1.1 for <hstack> and <vstack> layouts

JS

  1. htmx 1.6.1 for html-over-the-wire functionality
  2. hyperscript 0.9 for client-side reactivity
  3. simplemde a simple markdown editor

Quickstart

Install in your virtual environment:

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

Include package in main project settings file:

# in project_folder/settings.py
INSTALLED_APPS = [
    ...,
    'crispy_forms',  # add crispy_forms at least > v1.13, if not yet added
    'entries' # this is the new django-entries folder
]

# in project_folder/urls.py
from django.urls import path, include # new
urlpatterns = [
    ...,
    path('entry/', include('entries.urls')) # new
]

Add to database:

.venv> python manage.py migrate # adds the `Entry` model to the database.

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.8.tar.gz (45.0 kB view hashes)

Uploaded Source

Built Distribution

django_entries-0.1.8-py3-none-any.whl (51.1 kB view hashes)

Uploaded Python 3

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