Opinionated version of `startproject` with some popular third-party packages. Starter pack includes: whitenoise, django-environ, logging, GitHub Scripts to Rule Them All, basic Dockerfile and Makefile.
Project description
django-spinproject
Opinionated version of django-admin startproject
with some popular third-party packages. Starter pack includes:
whitenoise
for painless work with static files;settings.py
file withdjango-environ
support so you can define your databases and stuff with environment variables and.env
files;- Also, mostly pre-configured (but still optional) app and SQL logging;
- Also,
django-postgres-readonly
(in case you have R/O databases); - But otherwise, it's still your standard
settings.py
you used to see in every other project.
script/bootstrap
and other scripts to rule them all so your fellow developers and maintainers don't ask you how to run this thing. Current versions of these scripts optimized for use with poetry, but you can easily adapt them for any Python package manager;- A basic
Dockerfile
(andmake
targets for its common usage patterns); make lint
command for linting with flake8.
Requirements
- *nix system;
django-admin
installed and available from$PATH
.
Generated files will work fine in Django >= 2.0, not tested in earlier versions.
How to use
- Install the package:
pip install django-spinproject
django-spinproject <project name> <path>
Also, take a look at enhance-*
scripts (parameters are the same) if you only need to add one specific thing to existing project.
Planned features
(for requests, create an issue or drop me a line at m1kc@yandex.ru)
- .gitignore
- Always call the main module
main
- Gitlab CI config
make clean
- Replace django-postgres-readonly with in-place implementation
Changelog
Feb 20, 2020
- Makefile now includes an additional target,
lint
, for linting your project withflake8
. Give it a try:$ make lint
. - Dockerfile now works properly with most recent version of Poetry.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_spinproject-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7f5ce417a7b1128be73b497c2ac260034cae43fb4f53677ae07292e1b5505f |
|
MD5 | f59a0c49b64f722d2de1e3449f654b1b |
|
BLAKE2b-256 | 971bc49f0d970e495ebd8e02776407d2acb0ed06836e48e1023db8e7c364dc1f |