Commit 57cba7a0 authored by Gab De Jesus's avatar Gab De Jesus

Added static files css

parent 5d0c3bca
......@@ -122,3 +122,11 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [
# look for static files in rootdir
os.path.join(BASE_DIR, 'static'),
]
# Tells django where to put static files after collectstatic
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
\ No newline at end of file
No preview for this file type
table {
font-family: arial,
sans-serif;
border-collapse: collapse;
width: 100%;
}
td,
th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
\ No newline at end of file
{% load static %}
<!DOCTYPE html>
<html>
<head>
<title>Academe</title>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">
</head>
<body>
<h1><center>Academe</center></h1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment