Веб-приложение, разработанное для проекта в университете. Основу составляет веб-фреймворк Flask с дополнениями в виде библиотек: flask-sqlalchemy, flask-sequrity, flask-admin и flask-mail. Также в проекте была использована библиотека wtforms для создания форм.
Веб-приложение умеет:
- Регистрировать заявку на ТО транспортного средства. (Можно подключить функцию отправки сообщения на зарегистрированный e-mail с указанным кодом отслеживания);
- Отслеживать статус и данные заявки по трек-коду.
Склонируйте git-репозиторий и установите зависимости.
git clone https://github.com/Dan1van/technical-inspection-website.git
pip install -r requirements.txt
Запустите файл technical-inspection-website/run.py и перейдите в браузере по адресу: http://127.0.0.1:5000/.
Чтобы зайти в админ панель, перейдите http://127.0.0.1:5000/admin.
И войдите в акаунт администратора:
Логин: admin@admin.com
Пароль: admin
Для того, чтобы работала функция отправки сообщения на email зарегистрированного в системе пользователя, требуется:
- Настроить config.py:
# !!!
# Uncomment it if you want to use Mail
# !!!
# MAIL_SERVER = 'localhost'
# MAIL_PORT = 25
# MAIL_USE_TLS = False
# MAIL_USE_SSL = True
# MAIL_USERNAME = 'example@example.com'
# MAIL_PASSWORD = '**************'
# MAIL_DEFAULT_SENDER = 'example@example.com'
- Раскомментировать функцию в файле views.py:
# !!!
# Uncomment it if you want to use Mail
# !!!
# track_number = application.unique_track_number
# send_application_registered_msg(name, email, track_number)
A web application developed for the university project. It's made using Flask web framework with such extensions as flask-sqlalchemy, flask-sequrity, flask-admin and flask-mail. Also, the project used the wtforms library to create forms.
Web application features:
- Register an application for vehicle maintenance. (You can connect the function of sending a message to a registered e-mail with the specified tracking code);
- Track the status and data of the application by the track code.
Clone the repository and install the requirements.
git clone https://github.com/Dan1van/technical-inspection-website.git
pip install -r requirements.txt
Run the technical-inspection-website/run.py file and navigate in your browser to http://127.0.0.1:5000/.
To enter the admin panel, go to http://127.0.0.1:5000/admin.
And log into your administrator account:
Login: admin@admin.com
Password: admin
If you want to turn on mailing function, you need:
- To configure file config.py:
# !!!
# Uncomment it if you want to use Mail
# !!!
# MAIL_SERVER = 'localhost'
# MAIL_PORT = 25
# MAIL_USE_TLS = False
# MAIL_USE_SSL = True
# MAIL_USERNAME = 'example@example.com'
# MAIL_PASSWORD = '**************'
# MAIL_DEFAULT_SENDER = 'example@example.com'
- Uncomment the function in views.py:
# !!!
# Uncomment it if you want to use Mail
# !!!
# track_number = application.unique_track_number
# send_application_registered_msg(name, email, track_number)