- default .env file: .dev.env (in ./src);
- default database: Postgres;
- default requirements file: "requirements.txt";
- unit tests folders: "tests" folder in each app with "test_model.py" and "test_view.py";
- model managers: custom manager should be extra attributes; You can change it in settings.
-
core: project root app;
-
api: api application;
-
users
-
coordinates
-
locations
-
notifications
-
profiles
-
chat
-
reactions
- service: abstract_models, vk_api
- .flake8: linter settings
- mypy.ini: settings for checking typing configuration
".dev.env" file in ./src:
SECRET_KEY=secret_SECRET
DB_NAME=mosmpops_example
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres
We use flake8
.
flake8
We use mypy
mypy .
IMPORTANT! You should check your code by linter and type-checker before making pull-request.
pip install -r requirements.txt
cd src
python manage.py makemigrations
python manage.py migrate
python manage.py runserver