Restructure of Static Files

This commit is contained in:
jvs
2025-01-24 16:35:40 +01:00
parent 7448c853fc
commit e906a7f6de
8 changed files with 30 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
* {
background-color: red;
}

View File

@@ -0,0 +1,4 @@
/*This is the Stylesheet for the Login Screen*/
body {
background-color: #da1f3d;
}

View File

@@ -0,0 +1,15 @@
{% load static %}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{% static 'accounts/css/base.css' %}">
<link rel="stylesheet" href="{% block stylesheet_path %}{% endblock %}">
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>

View File

@@ -1,8 +1,10 @@
{% load static %}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{% static 'accounts/css/base.css' %}">
<title>Home</title>
</head>
<body>

View File

@@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="stylesheet" href="{% static 'css/login.css' %}">
<link rel="stylesheet" href="{% static 'accounts/css/login.css' %}">
</head>
<body>
<div class="login-container">

View File

@@ -0,0 +1,5 @@
{% extends 'accounts/base.html' %}
{% block title %}Registrierung{% endblock %}
{% block content %}
<h1>Register</h1>
{% endblock %}

View File

@@ -116,7 +116,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = 'static/'
STATIC_URL = '/static/'
# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field