{% include {% static "css/some.css" %} %} Idea

22 views
Skip to first unread message

Roberth Solis Martínez

unread,
Aug 6, 2016, 10:43:18 PM8/6/16
to Django users
Hello guys, some time ago I read that 90% of the time, the CPU waits for an I / O HDD, but django recommends using static files on another server, but if you include the styles and JavaScript in the <style> and <script> and RAM charge, the charge will be faster, because charge templates in RAM, using this configuration in production.py:

# This line load templates on the RAM Memory
TEMPLATES[0]['OPTIONS'].update({"loaders": loaders})
TEMPLATES[0].update({"APP_DIRS": False})

But i try some, it is ok, but my question is, Is posible open css from static?

Please see the pictures for more information
Captura de pantalla de 2016-08-06 20-39-54.png
Captura de pantalla de 2016-08-06 20-41-53.png
Reply all
Reply to author
Forward
0 new messages