Skip to content

Commit

Permalink
update index.html and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SoinRoma committed Feb 20, 2022
1 parent 49f78cc commit 3c46ab8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 10 deletions.
35 changes: 28 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,48 @@
## Run server for Windows:
<h1 align="center">ETL Group</h1>

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
```
11 changes: 8 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@
</p>
</div>
<div class="header-phone">
<a class="phone-number" href="tel: {{ contact.phone }}">{{ contact.phone }}</a>
<a class="phone-text" href="tel: {{ contact.phone }}">Call us</a>
{% if contact.phone %}
<a class="phone-number" href="tel: {{ contact.phone }}">{{ contact.phone }}</a>
<a class="phone-text" href="tel: {{ contact.phone }}">Call us</a>
{% else %}
<a class="phone-number" href="tel: +123456789">+123456789</a>
<a class="phone-text" href="tel: +123456789">Call us</a>
{% endif %}
</div>
</nav>
</header>
Expand Down Expand Up @@ -183,7 +188,7 @@ <h3 class="span loader">
<script>

$("#phone").inputmask({
"mask": "+1 (ddd) ddd-dddd"
"mask": "+1 (ddd) ddd-dddd"
});

$("#feedbackCreateForm").submit(function (event) {
Expand Down

0 comments on commit 3c46ab8

Please sign in to comment.