diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bdaab25 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +env/ diff --git a/__pycache__/config.cpython-37.pyc b/__pycache__/config.cpython-37.pyc new file mode 100644 index 0000000..392a627 Binary files /dev/null and b/__pycache__/config.cpython-37.pyc differ diff --git a/__pycache__/wsgi.cpython-37.pyc b/__pycache__/wsgi.cpython-37.pyc new file mode 100644 index 0000000..9b46ecc Binary files /dev/null and b/__pycache__/wsgi.cpython-37.pyc differ diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..c1ae114 --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,12 @@ +from flask import Flask + +app = Flask(__name__) + +if app.config["ENV"] == "production": + app.config.from_object("config.ProductionConfig") +else: + app.config.from_object("config.DevelopmentConfig") + + +from app import views + diff --git a/app/__pycache__/__init__.cpython-37.pyc b/app/__pycache__/__init__.cpython-37.pyc new file mode 100644 index 0000000..8b981d2 Binary files /dev/null and b/app/__pycache__/__init__.cpython-37.pyc differ diff --git a/app/__pycache__/views.cpython-37.pyc b/app/__pycache__/views.cpython-37.pyc new file mode 100644 index 0000000..fc740f1 Binary files /dev/null and b/app/__pycache__/views.cpython-37.pyc differ diff --git a/app/static/css/style.css b/app/static/css/style.css new file mode 100644 index 0000000..600ed84 --- /dev/null +++ b/app/static/css/style.css @@ -0,0 +1,3 @@ +body { + background-color: #F1F1F1; +} diff --git a/app/static/img/flask.png b/app/static/img/flask.png new file mode 100644 index 0000000..521f665 Binary files /dev/null and b/app/static/img/flask.png differ diff --git a/app/static/js/app.js b/app/static/js/app.js new file mode 100644 index 0000000..e69de29 diff --git a/app/static/upload/.txt b/app/static/upload/.txt new file mode 100644 index 0000000..e69de29 diff --git a/app/templates/public/about.html b/app/templates/public/about.html new file mode 100644 index 0000000..cad1441 --- /dev/null +++ b/app/templates/public/about.html @@ -0,0 +1,9 @@ +{% extends "public/templates/public_template.html" %} + +{% block title %}ABOUT FROM TEMPLATE{% endblock %} + +{% block main %} + +
{{ book['author'] }}
+{{ book['publisher'] }}
+{{ book['year'] }}
+{{ book['extention'] }}
+ +{% endfor %} + + +{% endblock %} diff --git a/app/templates/public/request_form.html b/app/templates/public/request_form.html new file mode 100644 index 0000000..0e5d500 --- /dev/null +++ b/app/templates/public/request_form.html @@ -0,0 +1,28 @@ +{% extends "public/templates/public_template.html" %} + +{% block title %}Upload book{% endblock %} + +{% block main %} + +