Skip to main content

Django Full CRUD

Project description

Django full crud!

This package is for you to create a fully automatic CRUD of your models.

Dependencies

Django Build your apps using this app template.

Installation

pip install django-full-crud

Add the following in settings.py:

INSTALLED_APPS = [
    ...
    'django_full_crud',
    ...
]

Features

  • Creation the admin file.
  • Creation the form file.
  • Creation the templates (delete, detail, form and list).
  • Creation the serializer.
  • Creation the views (create, delete, detail, list and update).
  • Creation the viewsets.
  • Creation the init files.

Recommendations

Do not make your init files with strings, the package will not find your models. Make a single file for each class, and import them in the init file.

Getting start

Create a .vscode file at the root of your project, then add a file called "django_full_crud.json".

Add the following to it:

{
    "project_name": "name_of_your_project"
}

After that in need to create your models and add them to init.py. The following commands can be run in the terminal:


python manage.py full_crud nome_app NomeModel

The full_crud runs on the specified model.


python manage.py full_crud nome_app

The full_crud runs ont the specified app.


python manage.py full_crud

The full_crud runs on the project.

Extra configs of django_full_crud.json

You can make extra settings, saying what you want to be generated. By default the values are true, but you can change them in the django_full_crud.json file:

{
    "project_name": "name_of_your_project",
    "make_admins": false,
    "make_admins_init": false,
    // 
    "make_forms": false,
    "make_forms_init": false,
    // 
    "make_serializers": false,
    "make_serializers_init": false,
    // 
    "make_templates": false,
    // 
    "make_views": false,
    "make_views_init": false,
    // 
    "make_viewsets": false,
    "make_viewsets_init": false
}

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

django_full_crud-0.2.9.tar.gz (35.9 kB view details)

Uploaded Source

File details

Details for the file django_full_crud-0.2.9.tar.gz.

File metadata

  • Download URL: django_full_crud-0.2.9.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for django_full_crud-0.2.9.tar.gz
Algorithm Hash digest
SHA256 3f5bd991d7773cdcc8fad9f1626a79e826de76bec89fe86c8cd07f8a0e54bee1
MD5 c254d78fc98aeeea0ab6677426da5d00
BLAKE2b-256 157705d0b702b6ab8e8c0a564b4755d843505a20de62ee18e96d12ddec71602e

See more details on using hashes here.

Supported by

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