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:

But first you need to import DjPyForms into your Django project Settings.py file:

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.2.tar.gz (6.9 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.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: DjPyForms-0.1.2.tar.gz
  • Upload date:
  • Size: 6.9 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.2.tar.gz
Algorithm Hash digest
SHA256 c6fd12420d68066c891117e2501581c62c78d91b61833062494d0e066a75c3e3
MD5 c452d6dbda3e9be8f0711f56d4952911
BLAKE2b-256 27c07817393181efa1e50ffb3d80b2ef237aeacdc9e1755fcb74a2aa78f70991

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DjPyForms-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2bb5e6303894157577882c461dcada36c67933389fcd8a5f05704f3a4bc5aedb
MD5 78231aecf370ca57a54ee773aa5bbf7b
BLAKE2b-256 f6b7da6937a817af52a4bd51c65abbe1bb551f79d766c42accce1bffefd506b9

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