Django-CRM
Django-CRM copied to clipboard
1st poetry
I believe poetry (https://python-poetry.org/) is a much better solution at managing python dependencies as it prevents conflicts in sub-dependencies.
Rather than
pip install -r requirements.txt
you will need
poetry install
in order to set up the project.
I have renamed the setup.py to setup.py.obsolete as with poetry the pyproject.toml contains the relevant information and the setup.py is built automatically when the distro package is built: poetry build -f sdist
I tend also to use direnv and pyenv for which I have added and .envrc.example and .env.example (to be renamed without the .example and configured with the environment) and the .python-version to specify the python version(s) that we want to use for development.
I also introduced django-environ which I believe to be a more django friendly alternative to python-dotenv and trying to apply 12 factor best practices where environment variables define all that is needed for the configuration rather than having different settings file.
Hi @GigiusB This is awesome . I am new to poetry and pyenv. I will take few more days to understand and release along with the setup video that I am planning.
+1. has there been any update?