diff --git a/.gitignore b/.gitignore
index a1a3cebcf..2c89adcad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -103,7 +103,6 @@ venv.bak/
# mypy
.mypy_cache/
-
.DS_Store
-*.DS_Store
-.DS_Store
+.idea/*.xml
+.idea/*.iml
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 000000000..94a25f7f4
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app.py b/app.py
new file mode 100644
index 000000000..4874d3ab5
--- /dev/null
+++ b/app.py
@@ -0,0 +1,23 @@
+from flask import Flask
+# from flask import Blueprint,render_template
+from views import dashboard, site, files, soft
+
+app = Flask(__name__)
+app.debug = True
+
+DEFAULT_MODULES = (
+ (dashboard, "/"),
+ (site, "/site"),
+ (files, "/files"),
+ (soft, "/soft")
+)
+
+def setting_modules(app, modules):
+ for module, url_prefix in modules:
+ app.register_blueprint(module, url_prefix=url_prefix)
+
+setting_modules(app, DEFAULT_MODULES)
+
+
+if __name__ == "__main__":
+ app.run()
\ No newline at end of file
diff --git a/main.py b/main.py
index cf6e2b174..8395014ea 100644
--- a/main.py
+++ b/main.py
@@ -4,22 +4,22 @@ from flask import Flask
from flask import Blueprint,render_template
from views import dashboard,site,files,soft
-app = Flask(__name__)
-app.debug = True
+# app = Flask(__name__)
+# app.debug = True
+#
+# DEFAULT_MODULES = (
+# (dashboard, "/"),
+# (site, "/site"),
+# (files, "/files"),
+# (soft, "/soft"),
+# )
+#
+# def setting_modules(app, modules):
+# for module, url_prefix in modules:
+# app.register_blueprint(module, url_prefix=url_prefix)
+#
+# setting_modules(app, DEFAULT_MODULES)
-DEFAULT_MODULES = (
- (dashboard, "/"),
- (site, "/site"),
- (files, "/files"),
- (soft, "/soft"),
-)
-
-def setting_modules(app, modules):
- for module, url_prefix in modules:
- app.register_blueprint(module, url_prefix=url_prefix)
-
-setting_modules(app, DEFAULT_MODULES)
-
-
-if __name__ == "__main__":
- app.run()
+#
+# if __name__ == "__main__":
+# app.run()
diff --git a/start.sh b/start.sh
index b86586600..e0232300e 100755
--- a/start.sh
+++ b/start.sh
@@ -1,6 +1,6 @@
#!/bin/sh
DEBUG=True
-gunicorn -b 127.0.0.1:7200 main:app
+gunicorn -b 127.0.0.1:7200 app:app
#open "http://127.0.0.1:7200"
\ No newline at end of file
diff --git a/templates/default/soft.html b/templates/default/soft.html
index 7db8379bf..c3317cda1 100755
--- a/templates/default/soft.html
+++ b/templates/default/soft.html
@@ -1,4 +1,4 @@
-$def with (data)
+
diff --git a/views/__init__.py b/views/__init__.py
index 8cd2bb2bc..e4a8e6dc6 100644
--- a/views/__init__.py
+++ b/views/__init__.py
@@ -1,4 +1,7 @@
+
+
from dashboard import *
from site import *
from files import *
+from soft import *
diff --git a/views/soft.py b/views/soft.py
index 8a5e10238..b927cea55 100644
--- a/views/soft.py
+++ b/views/soft.py
@@ -1,11 +1,10 @@
# coding:utf-8
-from flask import Flask
-from flask import Blueprint,render_template
-
+from flask import Blueprint, render_template
soft = Blueprint('soft', __name__, template_folder='templates')
+
@soft.route("/")
-def index():
- return render_template('default/soft.html')
\ No newline at end of file
+def index ():
+ return render_template('default/soft.html')