Skip to main content

Opionated tools for rapid development of enterprise CRUD portals

Project description

Rapid Django
============

A set of opionated tools for rapid development of enterprise CRUD portals.

Rapid Django generates CRUD pages and menus, based on a simple to use
registry of models, forms and views.

How to Use
==========

Add the 'rapid' application to your installed apps, and run a database migration.
Create a 'base.html' template that will be used by the CRUD generator. A minimum
template looks as following:

::
<DOCTYPE html>
<html>
<head>
<link href="link to bootstrap" rel="stylesheet">
<script src="link to jquery"></script>
</head>
<body>
{% load rapid_menu %}
{% menu request %}
{% block body %}{% endblock %}
<script src="link to the jquery-form plugin">
</body>
</html>

A menu will be generated in a unumbered list (UL) at the "menu" tag, and the
registered data will be placed at the "body" block.

After that, one must register actions. For that, the module "rapid.views" has three helper functions:
"register_model", "register_instance_form", and "register_simple_select".

Use "register_model" for creating default actions for listing, viewing, editing, addin, and optionally
removing objects of a model.

Use "register_instance_form" for creating custom actions where users submit a form, and act upon
instances of a model. The form may not be a ModelForm, but must implement the save() method.

Use "register_simple_select" for enabling the rapid select widget for all generated edit forms
with fields that select the registered model (that is, foreign key, one to one, and one to many
fields, besides reverse relationships).

The module "rapid.permissions" includes helper functions for managing user permissions on the
registered actions. Permmissions may be managed for entire models and for instances (but not
columns yet).

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

rapid-django-0.0.1a1.tar.gz (50.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rapid_django-0.0.1a1-py2-none-any.whl (71.3 kB view details)

Uploaded Python 2

File details

Details for the file rapid-django-0.0.1a1.tar.gz.

File metadata

File hashes

Hashes for rapid-django-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 6a99e111bc34445f8318ebe38763c40bf3d981f145d6d3dd3aea9553eab378e8
MD5 f232178645f874bedbf058731127e849
BLAKE2b-256 b96e1cb2fc876ca89241388fdf8c09f565b5e2a5e6cb2c4f946996ded62f7fed

See more details on using hashes here.

File details

Details for the file rapid_django-0.0.1a1-py2-none-any.whl.

File metadata

File hashes

Hashes for rapid_django-0.0.1a1-py2-none-any.whl
Algorithm Hash digest
SHA256 d0fbb873b7b68faa493299631c1a69cc6618f7dab6162b7cbc35ab607d32c17f
MD5 bea6eec5787d76ae6e945a303ba29601
BLAKE2b-256 cbf5ec1cafe9dc6c71bf816e19beffe81e01d6f444ba3ad7ca2e0b2aa6cf1e53

See more details on using hashes here.

Supported by

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