[staticfiles] phase in proper support
This commit is contained in:
parent
f88e440836
commit
c07c0e0b63
27 changed files with 10 additions and 7 deletions
|
@ -139,7 +139,8 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static") ]
|
||||
STATICFILES_DIRS = [ ]
|
||||
STATIC_ROOT = "/home/app/app/static"
|
||||
|
||||
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="{% static '/bootstrap/css/bootstrap.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static '/css/sticky-footer-navbar.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'ipv6ula/bootstrap/css/bootstrap.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'ipv6ula/css/sticky-footer-navbar.css' %}">
|
||||
|
||||
<title>The IPv6 ULA registry by ungleich.ch</title>
|
||||
</head>
|
||||
|
@ -45,9 +45,9 @@
|
|||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="{% static '/js/jquery.min.js' %}"></script>
|
||||
<script src="{% static '/js/popper.min.js' %}"></script>
|
||||
<script src="{% static '/bootstrap/js/bootstrap.min.js' %}"></script>
|
||||
<script src="{% static 'ipv6ula/js/jquery.min.js' %}"></script>
|
||||
<script src="{% static 'ipv6ula/js/popper.min.js' %}"></script>
|
||||
<script src="{% static 'ipv6ula/bootstrap/js/bootstrap.min.js' %}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -15,6 +15,8 @@ Including another URLconf
|
|||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
rom django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
|
||||
from ipv6ula import views
|
||||
|
||||
|
@ -24,4 +26,4 @@ urlpatterns = [
|
|||
path('login/', views.LoginView.as_view(), name='login'),
|
||||
path('logout/', views.logout_view, name='logout'),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
|
Loading…
Reference in a new issue