|
@@ -12,7 +12,7 @@ def upload(request):
|
|
name_system = request.POST['namesystem']
|
|
name_system = request.POST['namesystem']
|
|
settings.NAME_SYSTEM = name_system
|
|
settings.NAME_SYSTEM = name_system
|
|
handle_uploaded_file(request.FILES['logo'])
|
|
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")
|
|
return HttpResponseRedirect("/admin")
|
|
else:
|
|
else:
|
|
form = LogoForm()
|
|
form = LogoForm()
|
|
@@ -77,7 +77,7 @@ a{{
|
|
'''
|
|
'''
|
|
with open("design_template/static/design_template/colors.css", 'r+', encoding='utf-8') as file:
|
|
with open("design_template/static/design_template/colors.css", 'r+', encoding='utf-8') as file:
|
|
file.write(css)
|
|
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:
|
|
else:
|
|
form = ColorsForm()
|
|
form = ColorsForm()
|
|
return render(request,"admin/change_colors.html", {'form':form})
|
|
return render(request,"admin/change_colors.html", {'form':form})
|