Skip to content

quangvinh1225/django-drf-file-generator

 
 

Repository files navigation

Django DRF File Generator =======

image

image

image

image

image

image

image

image

image

image

Documentation Status

Documentation Status

Chat room


Documentation Status

Django DRF File Generator provides a safe way to generate automatically Django basic files like url.py, serializers.py, admin.py, views.py, to use with djangorestframework, the generated files will be based on your models.py

Documentation Status

Django DRF Gerador de Arquivos, fornece uma maneira segura para gerar automaticamente arquivos básicos do Django como url.py, serializers.py, admin.py, views.py, para usar com djangorestframework, os arquivos gerados serão baseados em seu arquivo models.py.

Documentation: http://django-drf-file-generator.readthedocs.org/

Installation

Easiest way to install this library is by using pip:

$ pip install django-drf-file-generator

Usage

Options:

-m path/my/models.py required parameter, path to models.py file

-a or --admin to create admin.py

-v or --views to create views.py

-u or --urls to create urls.py

-s or --serializers to create serializers.py

-A or --All to create urls.py, admin.py, views.py, serializers.py

-D or --clean warning!!! this option will remove gem_build directory and all files inside

-h or --help to show all options

Exemples:

$ python drf-gen -m path/my/models.py --views --serializers

$ python drf-gen -m path/my/models.py --clean

$ python drf-gen -m path/my/models.py --All

Requirements

  • Python 2.7, 3.4, pypy or pypy3
  • Django 1.8+ (there are plans to support older Django versions)
  • Django REST Framework 3.x

Authors

django-drf-file-generator was written by Alexandre Proença.

About

Django DRF File Generation provides a safe way to generate Django basic files like url.py, serializers.py, admin.py, views.py, based on your models.py

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%