- Register a personal account
- View clinics and available vaccines
- Attach yourself to a specific clinic
- View and create your personal vaccination calendar
- Apply for clinic administration rights
git clone https://gitlab.crja72.ru/django_2023/projects/team5.git
python3 -m venv venv
source venv/bin/activate
To install dependencies for production mode:
pip3 install -r requirements/prod.txt
For development mode (includes production dependencies):
pip3 install -r requirements/dev.txt
For testing:
pip3 install -r requirements/test.txt
Create a .env file in the root directory of the project.
Fill it in using the example file .example_env, also located in the root directory.
The variable DJANGO_DEBUG should be set to False in production mode and True in development mode.
This setting affects how data is displayed on the pages.
All the following commands are executed from the directory
team5/vaccineplan.
To generate a secret key for the project, execute the following commands in the terminal:
python3 manage.py shell
from django.core.management.utils import get_random_secret_key
get_random_secret_key()
python3 manage.py migrate
python3 manage.py loaddata fixtures/cities.json
python3 manage.py loaddata fixtures/illnesses.json
python3 manage.py loaddata fixtures/vaccines.json
python3 manage.py createsuperuser
After executing the command, fill in all required fields in the console (username, email, password, etc.)
python3 manage.py runserver
- Зарегистрировать личный аккаунт
- Просмотреть поликлиники и имеющиеся вакцины в ней
- Прикрепиться к определённой поликлинике
- Просмотреть и составить личный календарь вакцинации
- Подать заявление на администрирование клиники
git clone https://gitlab.crja72.ru/django_2023/projects/team5.git
python3 -m venv venv
source venv/bin/activate
Установить зависимости для прод режима:
pip3 install -r requirements/prod.txt
Для дев режима (включает в себя установку продовых зависимостей):
pip3 install -r requirements/dev.txt
Для тестов:
pip3 install -r requirements/test.txt
Создайте в корневой директории проекта файл .env.
Заполните файл переменными окружения по примеру файла .example_env, расположенного также в корневой директории проекта.
Значение переменной DJANGO_DEBUG в прод режиме — False, в дев режиме — True.
От этого значения зависит отображение данных на страницах.
Все дальнейшие команды выполняются из директории
team5/vaccineplan.
Получить данные секретного ключа для проекта можно с помощью выполнения следующих команд в терминале:
python3 manage.py shell
from django.core.management.utils import get_random_secret_key
get_random_secret_key()
python3 manage.py migrate
python3 manage.py loaddata fixtures/cities.json
python3 manage.py loaddata fixtures/illnesses.json
python3 manage.py loaddata fixtures/vaccines.json
python3 manage.py createsuperuser
После выполнения команды заполните все нужные поля в консоли (юзернейм, почта, пароль и т.д.)
python3 manage.py runserver