使用cookiecutter-django-rest轻松、快速创建健壮的rest apis
来自: https://github.com/agconti/cookiecutter-django-rest
cookiecutter-django-rest
For creating REST apis for mobile and web applications.
Overview
This cookiecutter template takes care of the setup and configuration so you can focus on making your api awesome. Scaffolding a project takes seconds and it gives you authentication, user accounts, and the docs and tests to support them. After that, just add your own resources to the api and start shipping.
This project gives you a solid foundation for your api to mature by baking in things like asynchronous queueing, image optimization, and application monitoring.
Quick Start
Installcookiecutter:
pip install cookiecutter
Scaffold your project:
cookiecutter gh:agconti/cookiecutter-django-rest
Example of the result: https://github.com/agconti/piedpiper-web
Features
- Django 1.9+
- PostgreSQL
- Complete Django Rest Framework integration
- Configured for deploying to Heroku
- Asset storage viaS3
- Class based settings and safe environmental variable management via django-configurations
- Travis config
- Monitoring with New Relic
- Token authentication
- Docs with mkdocs
- Testing withdjango-nose and fixtures via factory-boy
- Caching with Redis viaDjango Redis
- Easy debugging with ipython and ipdb
- Style Enforcement via flake8
- Fabfile for easily setting up servers
Contributing
Want a new feature? Open an issue and let's chat! Find a bug? Submit a Pull Request!
This project adheres to the Contributor Code of Conduct .