Эх сурвалжийг харах

Updated change notification

1Mike21 1 жил өмнө
parent
commit
4baae3597b
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      views.py

+ 2 - 2
views.py

@@ -12,7 +12,7 @@ def upload(request):
             name_system = request.POST['namesystem'] 
             settings.NAME_SYSTEM = name_system
             handle_uploaded_file(request.FILES['logo'])
-            messages.success(request, "The logo has been uploaded successfully. Please restart server")
+            messages.success(request, "The logo has been uploaded successfully. Please run command collectstatic")
             return HttpResponseRedirect("/admin") 
     else: 
         form = LogoForm() 
@@ -77,7 +77,7 @@ a{{
 '''
         with open("design_template/static/design_template/colors.css", 'r+', encoding='utf-8') as file:
           file.write(css)
-        messages.success(request, "The color change successfully. Please restart server")
+        messages.success(request, "The colors changed successfully. Please run command collectstatic")
     else:    
       form = ColorsForm()
     return render(request,"admin/change_colors.html", {'form':form})