A set of utilities/mini-frameworks for building CRUD apps with Django
Project description
qnc_crud
WORK IN PROGRESS
A rather opinionated framework to help create multi-page CRUD/form-heavy web apps. Comes with a collection of django and js utilities which can also be used in a more flexible way, without opting-in to the entire framework.
Intended to be installed as an "app" in a django project, but also useful in other web projects just for the js files.
No Full-Page Form Submissions
You should never use standard form submission (which loads a new page). Meaningless entries end up in browser history, page state is lost, file inputs are cleared if there are form errors. The list of issues is long.
ajax_all_forms.js automatically makes all of your forms submit via ajax, and executes the code returned by your server.
set_form_errors.js provides useful helper utilities for generating form error messages.
Automatic Page Invalidation
reload_if_necessary.js will cause pages to reload automatically, if any form has been POSTED by the user (same browsing session) at some time after the page was initially rendered
This means the user can navigate back in history (after logging in/out, manipulating data, etc.), and the page will reload. Also, the user can make changes in one window, and those changes will be reflected in another window as soon as the user focuses that window.
Form Pages Removed From History
Edit Forms Go Back
Add Forms Replace Location
Automatic Back Button
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 qnc_crud-2.1.0.tar.gz
.
File metadata
- Download URL: qnc_crud-2.1.0.tar.gz
- Upload date:
- Size: 54.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7741502ab129b5fb5fd3982ccfba15cbbeffa5be6e3b0f9fb37fb94da527bc83 |
|
MD5 | 326dd870771e45432319a0cd18a4ce0b |
|
BLAKE2b-256 | 9ad7baf9c1865eeaf3bda652b0ab220142d87e4d6ae054bed27a7b3b65b065ba |
File details
Details for the file qnc_crud-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: qnc_crud-2.1.0-py3-none-any.whl
- Upload date:
- Size: 66.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a71b95db62cee0b66ba06adc1897490d6f514161d00b35dc0cdbd25bc3e29d43 |
|
MD5 | b3468dff2f606053521381f4e8d5b5a9 |
|
BLAKE2b-256 | c29607241a143b4471bf9551ffe0f5bff3d92e1d7bcf8657329ca7a621c455dc |