I've hit a roadblock in my programming journey and I'm seeking help. As a newcomer to both programming and Django, I've been following a helpful tutorial up until part 4.
Everything was going well until I stumbled upon a new font online called Crimson Foam that I'd like to use for the Django "logo" in the top bar, instead of the Google font used in the tutorial.
The issue is, I'm unsure how to incorporate this font into my base.html file and what steps to take with my CSS files (I know they are required). Here's how my static files are organized:
-- static
|--fonts
| |--crimson_foam.ttf
|
|--css
|-- app2.css
|-- bootstrap files
I attempted the following setup:
templates/base.html
{% load static %}<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{% block title %}Django Boards{% endblock %}</title>
<link href="{% static 'fonts/crimson_foam.ttf' %}" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'css/app2.css' %}">
</head>
Rest of the html file
I experimented with two versions of the .css file:
static/css/app2.css
Version 1:
title {
color:#FAB4FF;
font-family: "Crimson foam"; #didnt know what to put there
}
Version 2:
.navbar_brand {
font-family: "Crimson foam", regular;
}
To be honest, I am feeling overwhelmed by the vast amount of information related to Django. While there are similar threads discussing this topic, they don't specifically address the HTML base file, which is where I'm struggling. Any assistance would be greatly appreciated!
Thank you all in advance for taking the time to read through this lengthy explanation!