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.1.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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: DjPyForms-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c95bd2716f431b3453f913e0a6388c77292003cc3cc1c4bd189a7c22129982fc
MD5 16f19c60588da3a6e6108a310e3f46e1
BLAKE2b-256 c2e81544ed53bbdda7c1254b7c7fa06858fd22e651454d1f503283c21b7f0fa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DjPyForms-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85b606376f98776641fc73680818addc9237d7447669582c4acab01e8cfd3994
MD5 0f7f181778b24b47156e2e38f186cdc3
BLAKE2b-256 a1c93363da8bc73081a400e644db65a8fc770d05b5148b8e22c05a000a046f6c

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