Adding a favicon to template on Django
up vote
0
down vote
favorite
I want to put a favicon in the base.html in my Django project, but it doesn't seems to work. It doesn't display any errors in the browser console, but I don't get the "GET" message in python manage.py runserver
console.
<link rel="icon" href="{% static 'assets/img/favicon.ico' %}"/>
Other static files such as JS and CSS are working just fine.
Here is my directory print: 1
And my python shell print: 2
html django django-templates favicon
add a comment |
up vote
0
down vote
favorite
I want to put a favicon in the base.html in my Django project, but it doesn't seems to work. It doesn't display any errors in the browser console, but I don't get the "GET" message in python manage.py runserver
console.
<link rel="icon" href="{% static 'assets/img/favicon.ico' %}"/>
Other static files such as JS and CSS are working just fine.
Here is my directory print: 1
And my python shell print: 2
html django django-templates favicon
please check this: stackoverflow.com/questions/21938028/…
– Tegito123
Nov 12 at 16:35
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to put a favicon in the base.html in my Django project, but it doesn't seems to work. It doesn't display any errors in the browser console, but I don't get the "GET" message in python manage.py runserver
console.
<link rel="icon" href="{% static 'assets/img/favicon.ico' %}"/>
Other static files such as JS and CSS are working just fine.
Here is my directory print: 1
And my python shell print: 2
html django django-templates favicon
I want to put a favicon in the base.html in my Django project, but it doesn't seems to work. It doesn't display any errors in the browser console, but I don't get the "GET" message in python manage.py runserver
console.
<link rel="icon" href="{% static 'assets/img/favicon.ico' %}"/>
Other static files such as JS and CSS are working just fine.
Here is my directory print: 1
And my python shell print: 2
html django django-templates favicon
html django django-templates favicon
asked Nov 12 at 16:21
Bárbara Este
86
86
please check this: stackoverflow.com/questions/21938028/…
– Tegito123
Nov 12 at 16:35
add a comment |
please check this: stackoverflow.com/questions/21938028/…
– Tegito123
Nov 12 at 16:35
please check this: stackoverflow.com/questions/21938028/…
– Tegito123
Nov 12 at 16:35
please check this: stackoverflow.com/questions/21938028/…
– Tegito123
Nov 12 at 16:35
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can check the configuration in settings.py
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
And in your templates, put this line on the to top:
{% load staticfiles %}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can check the configuration in settings.py
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
And in your templates, put this line on the to top:
{% load staticfiles %}
add a comment |
up vote
0
down vote
You can check the configuration in settings.py
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
And in your templates, put this line on the to top:
{% load staticfiles %}
add a comment |
up vote
0
down vote
up vote
0
down vote
You can check the configuration in settings.py
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
And in your templates, put this line on the to top:
{% load staticfiles %}
You can check the configuration in settings.py
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
And in your templates, put this line on the to top:
{% load staticfiles %}
answered 2 days ago
Carlos Herrera
663
663
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266196%2fadding-a-favicon-to-template-on-django%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
please check this: stackoverflow.com/questions/21938028/…
– Tegito123
Nov 12 at 16:35