Kaynağa Gözat

Upload files to ''

Небольшие изменения для корректной работы на альт линуксе
david berlinskiy 1 yıl önce
ebeveyn
işleme
3af0107597
2 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 0 3
      forms.py
  2. 1 0
      views.py

+ 0 - 3
forms.py

@@ -10,10 +10,7 @@ class ColorsForm(forms.Form):
         # Read the color codes from the CSS file and append additional colors
         f = str((open('design_template/static/design_template/colors.css', encoding='utf-8')).read())
         color_codes_list = re.findall(r'#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}', f)
-        color_codes_list.append('#821e27')
-        color_codes_list.append('#ffffff')
         colors = color_codes_list
-        
         super(ColorsForm, self).__init__(*args, **kwargs)
 
         # Create form fields with initial color values

+ 1 - 0
views.py

@@ -112,6 +112,7 @@ a:hover{{
   background-color: var(--btn-danger-hover);
   border-color: var(--btn-danger-hover);
 }}
+
 '''
             with open("design_template/static/design_template/colors.css", 'r+', encoding='utf-8') as file:
                 file.write(css)