Easy way to set up Django projects?

I just started using Django, and one thing that I find that I do is launching many new projects. I find this process rather tedious every time, even using manage.py startproject *. I am constantly changing settings in settings.py, like media_root and templates. Just a bit, I came from PHP and CodeIgniter. I have never used the CI directory. I changed it to meet my needs for a new project. When I need a new project, I would just copy this directory. manage.pyIt seems to generate files on the fly, so this approach is not possible. Does anyone else have any advice on this?

+3
source share
3 answers

There are several best practices in the Lincoln cycle, they suggest importing settings from another file. http://lincolnloop.com/django-best-practices/projects/modules/settings.html

In addition, you can check how to install this settings module from an external source, for example, git repo.

+1
source

I use Paver to automate the configuration of my Django.

I have a Bitbucket repository with my own bootstrap setup . In the end, I will do this general, but for now, this can give you sample code.

0
source

, . , , . , settings.py, , . , settings.py, . - .

Django - . , . , .

, . virtualenv:)

0
source

Source: https://habr.com/ru/post/1780336/


All Articles