summaryrefslogtreecommitdiffstats
path: root/mgr/manage.py
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-02-08 10:50:05 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-02-08 10:53:49 +0800
commitbaee06d37420eaa391e24c027647104ddb7ae031 (patch)
treefca8a607b67a2b867944e91c290ca940c4b96377 /mgr/manage.py
parent60a0f1a3d830fd8f5c738be81935c24613283478 (diff)
Add code framework of gvnfm-vnfmgr
Change-Id: I84d954b61c26f38553b0fa5ce558c098ca5f7204 Issue-Id: GVNFM-23 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'mgr/manage.py')
-rw-r--r--mgr/manage.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/mgr/manage.py b/mgr/manage.py
new file mode 100644
index 0000000..6bb2139
--- /dev/null
+++ b/mgr/manage.py
@@ -0,0 +1,22 @@
+# Copyright 2017 ZTE Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mgr.settings")
+
+if __name__ == "__main__":
+ from django.core.management import execute_from_command_line
+ execute_from_command_line(sys.argv)