diff --git a/uncloud_v3/app/templates/app/index.html b/uncloud_v3/app/templates/app/index.html new file mode 100644 index 0000000..2ada352 --- /dev/null +++ b/uncloud_v3/app/templates/app/index.html @@ -0,0 +1,12 @@ +

Welcome to uncloud

+ +

What is uncloud?

+ +At ungleich we have developed uncloud as an order system that allows +you to manage all your resources. + +

What can I do with uncloud?

+ + diff --git a/uncloud_v3/app/views.py b/uncloud_v3/app/views.py index f7dc32c..0478578 100644 --- a/uncloud_v3/app/views.py +++ b/uncloud_v3/app/views.py @@ -85,6 +85,8 @@ class ProductSelectView(CreateView): model = ProductOrder fields = ['product' ] +class IndexView(TemplateView): + template_name = "app/index.html" class Yearly(TemplateView): template_name = "app/config_product.html" diff --git a/uncloud_v3/uncloud/settings.py b/uncloud_v3/uncloud/settings.py index 19d9335..bc77e62 100644 --- a/uncloud_v3/uncloud/settings.py +++ b/uncloud_v3/uncloud/settings.py @@ -26,7 +26,7 @@ SECRET_KEY = os.environ['SECRET_KEY'] if 'SECRET_KEY' in os.environ else 'a bad # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['*'] # Application definition diff --git a/uncloud_v3/uncloud/urls.py b/uncloud_v3/uncloud/urls.py index 57a5f66..33b46b8 100644 --- a/uncloud_v3/uncloud/urls.py +++ b/uncloud_v3/uncloud/urls.py @@ -23,7 +23,8 @@ urlpatterns = [ path('order//', appviews.ProductOrderView.as_view(), name='product-order'), path('order/recurring///', appviews.ProductOrderView.as_view(), name='product-order-tf'), path('order/onetime//', appviews.ProductOneTimeOrderView.as_view(), name='product-order-onetime'), - path('product/', appviews.ProductListView.as_view()), - path('product//', appviews.ProductDetailView.as_view(), name='product-detail') + path('product/', appviews.ProductListView.as_view(), name='products'), + path('product//', appviews.ProductDetailView.as_view(), name='product-detail'), + path('', appviews.IndexView.as_view(), name='index'), ]