diff --git a/.gitignore b/.gitignore index 33977e65f19499705a452bf15eec87aeb7bfa642..01ea2267c2454d84bcf65e836ec222f85dc96d4a 100644 --- a/.gitignore +++ b/.gitignore @@ -98,6 +98,7 @@ fabric.properties ### Python ### # Byte-compiled / optimized / DLL files __pycache__/ +/**/__pycache__/ *.py[cod] *$py.class diff --git a/backend/.idea/backend.iml b/backend/.idea/backend.iml index 6711606311e2664bd835f92b5c114681d2e284f5..60b905ad954195fc9a1a2e694678c9bd01d14550 100644 --- a/backend/.idea/backend.iml +++ b/backend/.idea/backend.iml @@ -2,7 +2,7 @@ - + diff --git a/backend/.idea/misc.xml b/backend/.idea/misc.xml index ce0bd4060a9507e1bcc5fc73ca263bdce41cdc7e..8670ffc3ea40d9ff4422d7e64afd4a9c5c5ed386 100644 --- a/backend/.idea/misc.xml +++ b/backend/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/backend/app/app.py b/backend/app/app.py index 058888432c750eb84f6708a6d35bc87198a6cfa5..3342dfca3682e323d62d98df262edc257b1f7321 100644 --- a/backend/app/app.py +++ b/backend/app/app.py @@ -74,9 +74,9 @@ def load_modules(dir, ext='.py', names=[], fn=None): print('exception while loading %s, detail: %s' % (module_path, ex)) # load models -load_modules(app.config.root_path + '/models/', ext='__model.py') +load_modules(app.config.root_path + '/models/', ext='_model.py') -app.db.create_all() +#app.db.create_all() # load apis load_modules(app.config.root_path + '/api/{0}/'.format(APP_CONFIG['api_version']), ext='_api.py')