瀏覽代碼

Updated change notification

1Mike21 1 年之前
父節點
當前提交
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})