Skip to main content

A tool for automatic Django form generation

Project description

DjPyForms

Description

DjPyForms is an automatic form generation tool for Django projects. It simplifies the creation of forms based on Django class models, taking into account field types and relationships.

Installation

To install DjPyForms, simply run the following command:

pip install DjPyForms

Usage

After installation, you can use DjPyForms directly from the Django command line. Here are some command examples:

Generate a Form for Public Part

To generate a form based on a Django model for the public part:

python manage.py createform ModelName --app AppName

Replace ModelName with the name of your Django model and AppName with the name of the application containing the model.

Generate a Form for Administration

To generate a form intended to be used in the Django admin interface:

python manage.py createform ModelName --app AppName --for-admin

This command will add the model to Django's administration.

Advanced Options

  • To generate an HTML form instead of a Django form:

    python manage.py createform ModelName --app AppName --type html
    
  • To specify a custom file extension for the HTML form:

    python manage.py createform ModelName --app AppName --type html --ext xml
    

Features

  • Automatic generation of Django or HTML forms from models.
  • Updating views.py and urls.py files.
  • Support for forms for both public and admin parts.
  • Checking the existence of existing forms with an option to replace.
  • Customizable parameters for form generation.

Contribution

Contributions to the project are welcome. Please review the contribution guidelines before submitting a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

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

DjPyForms-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

DjPyForms-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file DjPyForms-0.1.0.tar.gz.

File metadata

  • Download URL: DjPyForms-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for DjPyForms-0.1.0.tar.gz
Algorithm Hash digest
SHA256 23bb606964dc0a0c2e144cdcec6dbaba91a877f2e64a0619dbeeada3d50e5457
MD5 67d1d3dbf67b3caa6600310fa80b3d9a
BLAKE2b-256 174c2f06a253d3bdbbf3cbe2a29fb51a4b140e64c7bce24a0b5f5a8db9fc6329

See more details on using hashes here.

File details

Details for the file DjPyForms-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: DjPyForms-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for DjPyForms-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 665cb28b991202d60f02773233ff88d5ad965e630550d37da3d803235f0beb39
MD5 19b3999b96268a07005b7f0b6e8a605f
BLAKE2b-256 2c36d74adf282d7c66301f73764d3a32048f67672981c06268029cdcaaa82e17

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