From 450f633e79d7858c9c62159421f11548601252e4 Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 24 Feb 2020 10:07:43 +0300 Subject: [PATCH 1/2] fix computes url: remove redundant slash --- computes/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computes/urls.py b/computes/urls.py index 4bf95bc..350fc00 100644 --- a/computes/urls.py +++ b/computes/urls.py @@ -9,7 +9,7 @@ from instances.views import instances from nwfilters.views import nwfilter, nwfilters urlpatterns = [ - url(r'^/', computes, name='computes'), + url(r'^$', computes, name='computes'), url(r'^(?P[0-9]+)/$', overview, name='overview'), url(r'^(?P[0-9]+)/statistics$', compute_graph, name='compute_graph'), url(r'^(?P[0-9]+)/instances/$', instances, name='instances'), From fc8612c60478849a80323e55e6c0586769f7646d Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 24 Feb 2020 10:08:48 +0300 Subject: [PATCH 2/2] change os.environ set style which is new one. --- manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage.py b/manage.py index 50affd5..f29da8f 100755 --- a/manage.py +++ b/manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings") + os.environ["DJANGO_SETTINGS_MODULE"] = "webvirtcloud.settings" from django.core.management import execute_from_command_line