# 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](https://github.com/TimeNovaData/django_app_modelo).
## Installation
```shell
pip install django-full-crud
```
Add the following in settings.py:
```python
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:
```json
{
"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:
---
```shell
python manage.py full_crud nome_app NomeModel
```
The full_crud runs on the specified model.
---
```shell
python manage.py full_crud nome_app
```
The full_crud runs ont the specified app.
---
```shell
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:
```json
{
"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
}
```
Raw data
{
"_id": null,
"home_page": "https://github.com/flaviotech/django-full-crud/",
"name": "django-full-crud",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Django,CRUD",
"author": "Fl\u00e1vio Silva",
"author_email": "flavio.nogueira.profissional@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/49/e9/8c8fe9f63b3c5148f171e2c360e9bf76d86cb4be1aa42b94c91498e2fac1/django_full_crud-0.3.tar.gz",
"platform": null,
"description": "# Django full crud!\nThis package is for you to create a fully automatic CRUD of your models.\n\n## Dependencies\nDjango\nBuild your apps using this [app template](https://github.com/TimeNovaData/django_app_modelo).\n\n## Installation\n```shell\npip install django-full-crud\n```\n\nAdd the following in settings.py:\n```python\nINSTALLED_APPS = [\n ...\n 'django_full_crud',\n ...\n]\n```\n\n## Features\n- Creation the admin file.\n- Creation the form file.\n- Creation the templates (delete, detail, form and list).\n- Creation the serializer.\n- Creation the views (create, delete, detail, list and update).\n- Creation the viewsets.\n- Creation the init files.\n\n## Recommendations\nDo not make your init files with strings, the package will not find your models.\nMake a single file for each class, and import them in the init file.\n\n## Getting start\nCreate a .vscode file at the root of your project, then add a file called \"django_full_crud.json\". \n\nAdd the following to it:\n```json\n{\n \"project_name\": \"name_of_your_project\"\n}\n```\n\nAfter that in need to create your models and add them to init.py.\nThe following commands can be run in the terminal:\n\n---\n```shell\npython manage.py full_crud nome_app NomeModel\n```\nThe full_crud runs on the specified model.\n\n---\n```shell\npython manage.py full_crud nome_app\n```\nThe full_crud runs ont the specified app.\n\n---\n```shell\npython manage.py full_crud\n```\nThe full_crud runs on the project.\n\n## Extra configs of django_full_crud.json\nYou can make extra settings, saying what you want to be generated.\nBy default the values are true, but you can change them in the django_full_crud.json file:\n\n```json\n{\n \"project_name\": \"name_of_your_project\",\n \"make_admins\": false,\n \"make_admins_init\": false,\n // \n \"make_forms\": false,\n \"make_forms_init\": false,\n // \n \"make_serializers\": false,\n \"make_serializers_init\": false,\n // \n \"make_templates\": false,\n // \n \"make_views\": false,\n \"make_views_init\": false,\n // \n \"make_viewsets\": false,\n \"make_viewsets_init\": false\n}\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Django Full CRUD",
"version": "0.3",
"project_urls": {
"GitHub": "https://github.com/flaviotech/django-full-crud/",
"Homepage": "https://github.com/flaviotech/django-full-crud/"
},
"split_keywords": [
"django",
"crud"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "49e98c8fe9f63b3c5148f171e2c360e9bf76d86cb4be1aa42b94c91498e2fac1",
"md5": "c7fa8b5d7a8faf899599625f030865bc",
"sha256": "95ae7a77966ac49d92171e4994d6a04c609efbd225ae729694d29faa3f03ba32"
},
"downloads": -1,
"filename": "django_full_crud-0.3.tar.gz",
"has_sig": false,
"md5_digest": "c7fa8b5d7a8faf899599625f030865bc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 15940,
"upload_time": "2023-10-29T20:19:47",
"upload_time_iso_8601": "2023-10-29T20:19:47.089133Z",
"url": "https://files.pythonhosted.org/packages/49/e9/8c8fe9f63b3c5148f171e2c360e9bf76d86cb4be1aa42b94c91498e2fac1/django_full_crud-0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-29 20:19:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "flaviotech",
"github_project": "django-full-crud",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-full-crud"
}