Sistema de anuncios por medio de usuarios para la administracion de los mismos
- install the package using "pip install git+git://github.com/ahmadiga/django-generator.git" or "pip install django-generator"
- Add "django_generator" to your INSTALLED_APPS setting.
Basically this package contains two django management commands:
- Generate_app : which creates a scaffold a new app following django-starterkit Guidelines
- Generate_views : which generate code for basic CRUD operations for every model in the app models including urls,admins,templates and crispy forms.
- Install the package using the steps above
- Run
python manage.py generate_app <APP NAME>
- Add your django models in
<APP NAME>/models.py
- Run
python manage.py generate_views <APP NAME>
- You will find all new codes as commented lines of codes inside there specified files
- Uncomment what is needed and delete what is not.
- Import any missing libraries.