Hi,

thanks for your responses. Damn, but learning something new. Is there
something existing like a "proxy" in django which deliver the browser
only one css (quasi a mixture of all css-files)?

bengoshi

On 7/2/19 2:34 PM, Jani Tiainen wrote:
> Hi.
>
> It's your browser not Django. Django just emits HTML that is parsed by
> your browser.
>
>
> ti 2. heinäk. 2019 klo 15.14 Kai Kobschätzki
> <[email protected] <mailto:[email protected]>>
> kirjoitti:
>
>     Hi:
>
>     I tried to load bootstrap and an own css-file. But in which order
>     does django load it?
>
>     I have tried in my base.html:
>
>     <!DOCTYPE html>
>     <html>
>     {% load static %}
>     <head>
>
>
>         <link rel='stylesheet' href="{% static 'bootstrap/css/site.css' %}">
>         <link rel="stylesheet" href="{% static
>     'bootstrap/css/bootstrap.min.css' %}">
>     <link rel="stylesheet" href="{% static 'css/base.css' %}">
>
>         <title>{% block title %}gyousei{% endblock title %}</title>
>
>
>     </head> ... and the log is writing: [02/Jul/2019 11:54:38] "GET /
>     HTTP/1.1" 200 6259 [02/Jul/2019 11:54:38] "GET
>     /static/css/base.css HTTP/1.1" 304 0 [02/Jul/2019 11:54:38] "GET
>     /static/bootstrap/css/site.css HTTP/1.1" 404 1690 [02/Jul/2019
>     11:54:38] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 404
>     1702 [02/Jul/2019 11:54:38] "GET /static/bootstrap/js/popper.js
>     HTTP/1.1" 404 1690 [02/Jul/2019 11:54:38] "GET
>     /static/bootstrap/js/popper.js HTTP/1.1" 404 1690 and if I write
>     <!DOCTYPE html>
>     <html>
>     {% load static %}
>     <head>
>
>     <link rel="stylesheet" href="{% static 'css/base.css' %}">
>
>         <link rel='stylesheet' href="{% static 'bootstrap/css/site.css' %}">
>         <link rel="stylesheet" href="{% static
>     'bootstrap/css/bootstrap.min.css' %}">
>
>
>         <title>{% block title %}gyousei{% endblock title %}</title>
>
>
>     </head> ...
>     the log writes
>
>     [02/Jul/2019 11:54:11] "GET /static/css/base.css HTTP/1.1" 304 0
>     [02/Jul/2019 11:54:11] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 
> 404 1702
>     [02/Jul/2019 11:54:11] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 
> 1690
>     [02/Jul/2019 11:54:11] "GET /static/bootstrap/css/site.css HTTP/1.1" 404 
> 1690
>
>     If I understand it correct in both cases django loads my base.css first 
> so bootstrap overwrites it.
>     How can I change this?
>
>     Thanks for your response,
>
>     bengoshi
>
>     -- 
>     herz-jesu-jugend.de <http://herz-jesu-jugend.de>
>
>     -- 
>     You received this message because you are subscribed to the Google
>     Groups "Django users" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to [email protected]
>     <mailto:[email protected]>.
>     To post to this group, send email to [email protected]
>     <mailto:[email protected]>.
>     Visit this group at https://groups.google.com/group/django-users.
>     To view this discussion on the web visit
>     
> https://groups.google.com/d/msgid/django-users/d6be7f83-ca64-cd9d-b72e-2b9a4aa093cb%40herz-jesu-jugend.de
>     
> <https://groups.google.com/d/msgid/django-users/d6be7f83-ca64-cd9d-b72e-2b9a4aa093cb%40herz-jesu-jugend.de?utm_medium=email&utm_source=footer>.
>     For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHn91ocYA%3Da%2BeZgEis76XXvcs0XqT69U5mXXPAV2W4aJ2mNLew%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHn91ocYA%3Da%2BeZgEis76XXvcs0XqT69U5mXXPAV2W4aJ2mNLew%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2635d533-dde5-97e9-46a5-64b0104c15f4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to