Докеризация # Conflicts: # app/apps/events/views/views_events.py # app/apps/gto/migrations/0027_auto_20250721_2141.py # app/apps/gto/migrations/0028_alter_modeltypeicons_model.py # app/apps/gto/models/model_gto_external_system.py # app/apps/management/templates/gto_icons.html # app/apps/management/templates/icon_add.html # app/apps/management/templates/icons/remove_icon.html # app/apps/management/views/views_general.py # app/apps/management/views/views_geoproc.py # app/apps/management/views/views_gto.py # app/apps/management/views/views_pla.py # app/apps/management/views/views_seismicproc.py # app/apps/management/views/views_wklocation.py # app/mfssogr/urls.py # apps/management/templates/gto/gto_icons.html # apps/management/templates/gto/icon_add.html # apps/management/templates/gto_icons.html # apps/management/templates/icon_add.html
mfssogr
МФСБ ОГР
Переменные
- POSTGRES_HOST - хост базы данных
- POSTGRES_DB - имя базы данных
- POSTGRES_USER - пользователь базы данных
- POSTGRES_PASSWORD - пароль пользователя базы данных
- POSTGRES_PORT - порт базы данных
- TEST_CIRCUIT - Тестовый контур:
- 1: True
- 0: False
Использование
После проведения миграций создать суперпользователя из стандартной команды джанго:
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
github
…or create a new repository on the command line
echo "# mfss" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Sabron/mfssogr.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin https://github.com/Sabron/mfss.git
git branch -M main
git push -u origin main
tar -cvf userpic.tar.gz /home/hronos/hronos_school//att/USERPIC - Архивирование tar -cvf userpic.tar.gz /home/hronos/hronos_school/static/att/USERPIC - Архивирование
git config --global credential.helper store
Это делается командой git remote add, но делать её можно только на существующем репозитории, так что вам понадобится ещё и git init.
Потом вам понадобится получить из репозитория коммиты командой git fetch и сделать git reset чтобы вносить свои изменения не с нуля,
а начиная с головы репозитория.
git init
git remote add origin https://github.com/Sabron/mfss.git
git fetch origin
git reset --mixed origin/main
git add .
git commit -m "комментарий к коммиту"
git push -u origin main
URL репозитория можно получить нажав на ту самую кнопку Clone в интерфейсе github.
Установка GDAL
- Необходимо скачать установочный файл
Далее по установке:
- Расширенная установка -> Далее -> Далее
- Необходимо запомнить каталог, куда устанавливаются библиотеки
- Прожимаем далее, до окна выбора пакетов к установке. Нам нужны следующие библиотеки:
- gdal
- geos
- proj
- Прожимаем далее и устанавливаем библиотеки
- После установки добавьте в PATH пути к бинарным файлам OSGeo4W (обычно
C:\OSGeo4W\bin). - Создайте новые переменные Добавьте следующие переменные (если их нет):
Переменная Значение GDAL_DATA C:\OSGeo4W\share\gdal PROJ_LIB C:\OSGeo4W\share\proj GEOS_LIBRARY_PATH C:\OSGeo4W\bin\geos_c.dll GDAL_LIBRARY_PATH C:\OSGeo4W\bin\gdal308.dll (версия может отличаться)
Обновление времени всех объектов для отладки
from django.utils import timezone
from apps.gto.models.model_equipment import Equipment
from apps.workerslocation.models.workers_locations import WorkersLocation
Equipment.objects.update(time=timezone.now())
WorkersLocation.objects.update(update_time=timezone.now())
Description
Languages
JavaScript
71.1%
CSS
18.7%
HTML
7.1%
Python
3.1%