Python web application with Django - Bootstrap and Crispy only work if you have internet connection

Asked

Viewed 122 times

0

My application uses these two frameworks Boostratp and Crispy, when I am connected on the internet, everything works perfectly, but when disconnecting the internet the site loses all style.

Making a comparison with Java, I use Jquery, Bootstrap... making direct reference to the . js and . css sites and do not need to be connected to make use of these features, would have some way to do the same in Django?

Below are the lines used in the template:

{% load bootstrap3 %}
{% load crispy_forms_tags %}

From now on I thank you for your help.

  • It’s probably some error in your code, which is making some external request. I use Django in a project 100% offline and never had such a problem.

  • Django does not do any external requests - this problem is clearly a matter of front-end frameworks that should have hardcoded Urls assuming that one will always be online. See the bootstrap and Crispy documetnation to see how to work offline.

  • I appreciate the answers, you are correct. I use Ubuntu on a virtual machine, I probably had some momentary problem. After removing the network cable from the notebook, I was able to run the stylized application without any problem.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.