6 июня 2023
Всем привет , пытался подключить css Стили к дажанго и вот такую ошибку я получаю на сайте
Refused to apply style from '7B&%20static%20'main/templates_css/main.css'%20&%7D' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
В чем может быть проблема ?
T V
T V T V T Q V K Q V K
# создание магазина
def fill_store():
items = [
('Healing potion', 50, 0, 0, 50),
('Attack potion', 100, 10, 0, 0),
('Defense potion', 100, 0, 10, 0),
('HP potion', 100, 0, 0, 10),
]
cursor.executemany("INSERT INTO items (name, price, attack, defense, hp) VALUES (?, ?, ?, ?, ?)", items)
conn.commit()
# обработчик команды /store
async def on_store(message: aiogram.types.Message):
items = get_store()
text = "Магазин:\n"
for item in items:
name, price, attack, defense, hp = item
text += f"{name} ({price} монет) - атака +{attack}, защита +{defense}, здоровье +{hp}\n"
await message.answer(text)
Ошибка:
name, price, attack, defense, hp = item
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 5)
как быть?
🍉 V D