I'm a bit unsure about how to incorporate CSS into my HTML. I have an app within my project that has its own template folder, and I would like to include the sample.css
file in my HTML.
I think it should be something like this:
<link rel="stylesheet" type="text/css" href="{% %}">
But I'm not exactly sure what needs to go between {% %}
Here is the current directory structure:
/proj
/app
/templates
sample.css
sample.html
And here are my template directories:
TEMPLATE_DIRS = (
os.path.join(BASE_DIR,'templates'),
os.path.join(BASE_DIR,'home/templates'),
os.path.join(BASE_DIR,'gallery/templates'),
os.path.join(BASE_DIR,'contact/templates'),
os.path.join(BASE_DIR,'aboutme/templates'),
)
If you need any additional information, please feel free to ask!
Updated directory structure:
/proj
/app
/static
/css
sample.css
/templates
sample.html