Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singleton11/SDB
Simple Django Boilerplate
https://github.com/singleton11/SDB
boilerplate cookiecutter django simple
Last synced: 3 months ago
JSON representation
Simple Django Boilerplate
- Host: GitHub
- URL: https://github.com/singleton11/SDB
- Owner: singleton11
- License: mit
- Created: 2016-11-12T16:11:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-11T16:48:21.000Z (about 8 years ago)
- Last Synced: 2024-08-04T08:06:22.504Z (7 months ago)
- Topics: boilerplate, cookiecutter, django, simple
- Language: Python
- Size: 40 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
SDB (Simple Django Boilerplate)
===============================A minimal cookiecutter template to generate a very simple django 1.10 project.
To generate new django project:
.. code::
cookiecutter https://github.com/singleton11/SDB
Project will have the following directory structure:
.. code::
├── docker
│ └── nginx
│ ├── default.conf
│ └── Dockerfile
├── docker-compose.yml
├── Pipfile
├── README.rst
├── src
│ ├── apps
│ │ └── __init__.py
│ ├── config
│ │ ├── __init__.py
│ │ ├── settings
│ │ │ ├── common
│ │ │ │ ├── base.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── installed_apps.py
│ │ │ │ ├── localization.py
│ │ │ │ ├── middleware.py
│ │ │ │ ├── security.py
│ │ │ │ ├── staticfiles.py
│ │ │ │ └── templates.py
│ │ │ ├── __init__.py
│ │ │ └── local.py
│ │ ├── urls.py
│ │ └── wsgi.py
│ ├── core
│ │ ├── apps.py
│ │ └── __init__.py
│ └── manage.py
└── swagger
└── swagger.ymlThen to create virtualenv and install dependencies you have to run
.. code::
pipenv install
To activate virtualenv
.. code::
pipenv shell
Philosophy of the project is stay simple and easy to maintain
Now this boilerplate hasn't many useful things, but it will be added with trying to avoid to loose simplicity.
Changelog
#########2017-02-11
**********- Added core app
- Django app moved to ``src/``
- ``pip-tools`` replaced to ``pipenv``
- Split settings
- Added swagger
- Added ``factory-boy`` to dependencies
- Added ``django-cors-headers``2016-12-29
**********- ``SECRET_KEY`` moved in ``local.py`` because ``SECRET_KEY`` have to set up through environment variables in production
and purpose of this decision to make project be not able to start without environment variable with ``SECRET_KEY``
value provided
- Added post-generation hook to change ``SECRET_KEY``2016-12-28
**********- Removed redundant dependencies from common.in and local.in
- Removed docker-compose web service (because, there is better development in virtual environment)
- Removed coverage settings (because pycharm has bundled coverage tool)
- Fabric replaced by invoke
- Adjusted README.rst title '#' symbol length by project name length
- Added PyCharm configuration2016-11-28
**********- Project restructuring
- Added ``pip-tools`` support
- Added a few fab commands2016-11-12
**********- Added README
- Added MIT LICENSE