K
K
Kulrikin2017-06-02 16:48:08
Django
Kulrikin, 2017-06-02 16:48:08

Font not changing when deployed to heroku?

Hello! I am new to programming. I'm making a blog using django, the blog has a title, I want to change the font for it. I downloaded the font and installed it in static / fonts in the css file

@font-face {
    font-family: "AkademieAlte";
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/AkademieAlte.ttf") format('truetype');
}

h1 a {
      color: #29ff07;
      font-family: 'AkademieAlte';

When I run python3 manage.py runserver
, everything works, but as soon as I deploy to heroku, nothing changes there.
Question: What am I doing wrong, is it somehow related to django or is it heroku?
Has anyone experienced this or something similar?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-06-02
@KhulKost

https://devcenter.heroku.com/articles/django-assets

A
Alexander Penshin, 2017-06-02
@apenshin

python manage.py collectstatic ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question