diff --git a/django_code/django_code/settings.py b/django_code/django_code/settings.py index b0774c1..d4a47a7 100644 --- a/django_code/django_code/settings.py +++ b/django_code/django_code/settings.py @@ -56,7 +56,7 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', #'DIRS': ["/code/django_code/templates","/code/django_code/dashboard/templates/"], - 'DIRS': [BASE_DIR / "templates","django_code/dashboard/templates/"], + 'DIRS': [BASE_DIR / "templates","django_code/dashboard/templates/","django_code/stash_management/templates"], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/django_code/django_code/urls.py b/django_code/django_code/urls.py index 130977b..a55cbbc 100644 --- a/django_code/django_code/urls.py +++ b/django_code/django_code/urls.py @@ -24,6 +24,7 @@ from dashboard import apps as dashboardapp from dashboard import views as dashboardview from kubernetes_connection import apps as kubernetes_connection from stash_management import apps as stashapp +from stash_management import views as stashview urlpatterns = [ # path('admin/', admin.site.urls), @@ -59,6 +60,7 @@ urlpatterns = [ path('kubernetes_connection/scale_down//', kubernetes_connection.scale_down), ################## kubernetes_connection##### + path('stash/', stashview.home), path('stash/hello/', stashapp.hello), path('stash/form/', stashapp.form), path('stash/fapello/', stashapp.fapello), diff --git a/django_code/stash_management/apps.py b/django_code/stash_management/apps.py index 997190c..89d40a5 100644 --- a/django_code/stash_management/apps.py +++ b/django_code/stash_management/apps.py @@ -65,7 +65,7 @@ def increment_and_download(minimum_increment,maximum_increment,url,url_suffix,na print("\n downloading for "+name+" "+url+"XXX"+url_suffix) for increment in range(minimum_increment,maximum_increment): - print("increment : "+str(increment)+"/"+str(maximum_increment) + print("increment : "+str(increment)+"/"+str(maximum_increment)) if len(str(increment)) == 3: increment_generated ='0' + str(increment) elif len(str(increment)) == 2: diff --git a/django_code/dashboard/templates/fapello_form.html b/django_code/stash_management/templates/fapello_form.html similarity index 100% rename from django_code/dashboard/templates/fapello_form.html rename to django_code/stash_management/templates/fapello_form.html diff --git a/django_code/stash_management/templates/listing.html b/django_code/stash_management/templates/listing.html new file mode 100644 index 0000000..a30518c --- /dev/null +++ b/django_code/stash_management/templates/listing.html @@ -0,0 +1,11085 @@ + + + + + + + + Stash listing + + + + + + + + + + + + + +
+
+
+

Shop in style

+

With this shop hompeage template

+
+
+
+ +
+
+
+
+
+ + ... + +
+
+ +
Fancy Product
+ + $40.00 - $80.00 +
+
+ + +
+
+
+
+ +
Sale
+ + ... + +
+
+ +
Special Item
+ +
+
+
+
+
+
+
+ + $20.00 + $18.00 +
+
+ + +
+
+
+
+ +
Sale
+ + ... + +
+
+ +
Sale Item
+ + $50.00 + $25.00 +
+
+ + +
+
+
+
+ + ... + +
+
+ +
Popular Item
+ +
+
+
+
+
+
+
+ + $40.00 +
+
+ + +
+
+
+
+ +
Sale
+ + ... + +
+
+ +
Sale Item
+ + $50.00 + $25.00 +
+
+ + +
+
+
+
+ + ... + +
+
+ +
Fancy Product
+ + $120.00 - $280.00 +
+
+ + +
+
+
+
+ +
Sale
+ + ... + +
+
+ +
Special Item
+ +
+
+
+
+
+
+
+ + $20.00 + $18.00 +
+
+ + +
+
+
+
+ + ... + +
+
+ +
Popular Item
+ +
+
+
+
+
+
+
+ + $40.00 +
+
+ + +
+
+
+
+
+ +
+

Copyright © Your Website 2023

+
+ + + + + + \ No newline at end of file diff --git a/django_code/dashboard/templates/stash_form.html b/django_code/stash_management/templates/stash_form.html similarity index 100% rename from django_code/dashboard/templates/stash_form.html rename to django_code/stash_management/templates/stash_form.html diff --git a/django_code/stash_management/views.py b/django_code/stash_management/views.py index dcf84f6..6425e25 100644 --- a/django_code/stash_management/views.py +++ b/django_code/stash_management/views.py @@ -5,4 +5,8 @@ from django.http import HttpResponse from django.shortcuts import render def hello(request): - return HttpResponse('

Hello Django!

') + return HttpResponse('

Hello stash!

') + + +def home(request): + return render(request, 'listing.html')