diff --git a/README.md b/README.md index b3aa710..4f1733c 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,48 @@ -## Run server for Windows: +

ETL Group

-1 - create venv +## Описание +Сайт для логистической фирмы ETL Group. +Данный сайт состоит из трёх секций.На сайте присуствует бэкенд(Django) +Есть форма отправки данных пользователей на рассмотрение. + +### Используемые технологии +![HTML5](https://img.shields.io/badge/-HTML5-black?style=flat-square&logo=html5&logoColor=html) +![CSS3](https://img.shields.io/badge/-CSS3-black?style=flat-square&logo=css3&logoColor=css3) +![JavaScript](https://img.shields.io/badge/-JavaScript-black?style=flat-square&logo=javascript) +![Python](https://img.shields.io/badge/-Python-black?style=flat-square&logo=python) + +### Используемые плагины/библиотеки +![Particle](https://img.shields.io/badge/-PARTICLES-black?style=flat-square&logo=particles&logoColor=particles) +![InputMask](https://img.shields.io/badge/-InputMask-black?style=flat-square&logo=inputmask&logoColor=inputmask) +![JQuery](https://img.shields.io/badge/-JQuery-black?style=flat-square&logo=jquery&logoColor=jquery) +![Toastr](https://img.shields.io/badge/-Toastr-black?style=flat-square&logo=toastr&logoColor=toastr) + +### Запуск проекта для Windows + +1-Запустить проект в PyCharm + +2 - Создать виртуальное окружение (venv). IDE предложит сама. ``` python -m venv ./venv ``` -2 - activate venv +3 - Активировать (venv) ``` venv\Scripts\activate.bat ``` -3 - install requirements.txt +4 - Установить все зависимости и плагины из requirements.txt ``` pip install -r requirements.txt ``` -4 - create .env file +5 - Создать .env файл ``` copy example.env .env ``` -5 - migrate +6 - Сделать миграции ``` python manage.py makemigrations python manage.py migrate ``` -6 - runserver +7 - Запустить сервер ``` python manage.py runserver ``` \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 3e9b51e..1992487 100644 --- a/templates/index.html +++ b/templates/index.html @@ -47,8 +47,13 @@

- {{ contact.phone }} - Call us + {% if contact.phone %} + {{ contact.phone }} + Call us + {% else %} + +123456789 + Call us + {% endif %}
@@ -183,7 +188,7 @@