summaryrefslogtreecommitdiffstats
path: root/mgr
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-09 15:24:21 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-09 15:24:21 +0800
commit4890c89135496b25a90bd52f9a75d46ad9be8286 (patch)
treeb479d6d7048aa34645bfd6dbaf0e92666da9490e /mgr
parentbeb1525524a093821c2edda3e88c670a84abde82 (diff)
Fix vfc-vnfmgr settings
Change-Id: Idc21380cbb99329ee42b1196fdd4660e8b4beeff Issue-ID: VFC-670 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'mgr')
-rw-r--r--mgr/mgr/samples/urls.py3
-rw-r--r--mgr/mgr/settings.py4
-rw-r--r--mgr/mgr/vnfreg/urls.py4
3 files changed, 4 insertions, 7 deletions
diff --git a/mgr/mgr/samples/urls.py b/mgr/mgr/samples/urls.py
index 805ba33..e5e66d7 100644
--- a/mgr/mgr/samples/urls.py
+++ b/mgr/mgr/samples/urls.py
@@ -16,4 +16,5 @@ from django.conf.urls import url
from mgr.samples import views
urlpatterns = [
- url(r'^samples/$', views.SampleList.as_view()), ]
+ url(r'^samples/$', views.SampleList.as_view())
+]
diff --git a/mgr/mgr/settings.py b/mgr/mgr/settings.py
index 1845e8e..de959fe 100644
--- a/mgr/mgr/settings.py
+++ b/mgr/mgr/settings.py
@@ -70,9 +70,7 @@ REST_FRAMEWORK = {
'DEFAULT_PARSER_CLASSES': (
'rest_framework.parsers.JSONParser',
- 'rest_framework.parsers.MultiPartParser',
- # 'rest_framework.parsers.FormParser',
- # 'rest_framework.parsers.FileUploadParser',
+ # 'rest_framework.parsers.MultiPartParser',
)
}
diff --git a/mgr/mgr/vnfreg/urls.py b/mgr/mgr/vnfreg/urls.py
index 6203875..8deb955 100644
--- a/mgr/mgr/vnfreg/urls.py
+++ b/mgr/mgr/vnfreg/urls.py
@@ -13,13 +13,11 @@
# limitations under the License.
from django.conf.urls import url
+
from mgr.vnfreg import views
-from rest_framework.urlpatterns import format_suffix_patterns
urlpatterns = [
url(r'^api/vnfmgr/v1/vnfs$', views.vnfmgr_addvnf.as_view(), name='add_vnf'),
url(r'^api/vnfmgr/v1/vnfs/(?P<vnfInstId>[0-9a-zA-Z\-\_]+)$', views.access_vnf, name='access_vnf'),
url(r'^api/vnfmgr/v1/configuration$', views.vnf_config, name='vnf_config'),
]
-
-urlpatterns = format_suffix_patterns(urlpatterns)