Django — TailwindCSS не загружает некоторые атрибутыCSS

Разбираемся в CSS
Ответить
Гость
 Django — TailwindCSS не загружает некоторые атрибуты

Сообщение Гость »


I'm having issues when it comes to using some attributes with Django and TailwindCSS. Let's take this table for example:

Report title Company Brand (if any) Go to report {% for report in reports %} {{ report.title }} {{ report.company }} {% if report.brand %} {{ report.brand }} {% else %} - {% endif %} Access {% endfor %} Gives the following:
Изображение


But when I try to change the bg-color from:

To:

The new color won't load. It gives:
Изображение


I don't understand why I'm getting nothing. In my configuration, following tasks are running:
  • The server is running with python manage.py runserver
  • TailwindCSS is running with python manage.py tailwind start
  • Livereload is running with python manage.py livereload

I also clear my cache with CMD+Shift+R.

I'm also having troubles with some margins and paddings that won't apply. I even bought the plugin Devtools for TailwindCSS. When I edit an attribute with Chrome inspector and this plugin, it's working. But when it's in my code, the new color won't load. Has this ever happened to you?

Update: Here is the complete code:

{% extends 'base.html' %} {% block content %} {% if nb_reports == 0 %} > No reports Get started by creating a new report.
New report {% else %} Create report
Find all your created reports below.
Report title Company Brand (if any) Go to report {% for report in reports %} {{ report.title }} {{ report.company }} {% if report.brand %} {{ report.brand }} {% else %} - {% endif %} Access {% endfor %} {% endif %} {% endblock %}

Источник: https://stackoverflow.com/questions/728 ... attributes
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «CSS»