I have a problem with the landing styles. I do not know what happened, because the earlier work.
Files using the site, I have in the "static". Files which are used, for example, django admin panel - in the "staticfiles"
My settings.py file, on the part of the static files:
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/
TEMPLATE_DIRS = (
join (base_dir, 'templates'),
)
STATICFILES_DIRS = (
join (base_dir, 'static')
)
STATIC_URL = '/static/'
STATIC_ROOT = (
join (base_dir, 'staticfiles')
)
HTML code, base.html. This is my main page:
<!DOCTYPE html>
<html>
<head>
<title>Test site</title>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/css/main.css">
</head>
<body>
<div class="container">
{% block nav %}
<div class="header">
<ul class="nav nav-pills pull-right">
<li {% if request.path == '/' %} class="active" {% endif %}>
<a href="/">Home</a>
</li>
{% if user.is_authenticated %}
<li{% if request.path == '/elist/'%} class="active" {%endif%}>
<a href="{% url 'emaillist' %}">E-mail list</a>
</li>
{% endif %}
<li{% if request.path == '/contact/' %} class="active" {% endif %}>
<a href="{% url 'contact1' %}">Contact</a>
</li>
</ul>
<h3 class="text-muted"><a href="/">Name site</a></h3>
</div>
{% endblock %}
{% block header %}
<div class="jumbotron">
<h1>Soon we go!</h1>
<p class="lead">Landing page.</p>
</div>
{% endblock %}
{% block content %}{% endblock %}
{% block footer %}{% endblock %}
</div>
</body>
</html>