keimlink / django-project-package-template Goto Github PK
View Code? Open in Web Editor NEWDjango 2.x project template with a layout as a Python wheel.
Django 2.x project template with a layout as a Python wheel.
Hi @keimlink
Thanks for the project :) I learned a lot, and I really like it!
I know that I can just go and create my own flavor, but maybe it would be much more fun to discuss the approaches, and if you like, I don't mind adding a PR.
I would consider the template for the following purpose:
To bootstrap a simple and easily readable Django project based on best practices, avoiding patterns that some larger quantity of users would want to refactor afterwards.
I would consider the following:
Remove envparse
. My own reason is that it entangles development and production settings. I would much prefer to have settings.development
and settings.production
(possibly add settings.local
to the .gitignore
template). This way, settings become a lot easier to read and overwrite. The manage.py
script has the --settings
option, making it easy to switch between settings.
Move urls
and wsgi
up a level, for me they are not "configuration" any more than the whole project is then a configuration of sorts.
Rename conf
to settings.
Here is a pattern that is quite similar to what I mean:
I was once writing a project where we actually included the bootstrapping of settings.local
in our manage.py
, such that new users couldn't avoid having it created when it didn't exist and then seeing that it existed and contained their secrets.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.