Restructure of Static Files
This commit is contained in:
3
core/accounts/static/accounts/css/base.css
Normal file
3
core/accounts/static/accounts/css/base.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
* {
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
15
core/accounts/templates/accounts/base.html
Normal file
15
core/accounts/templates/accounts/base.html
Normal 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>
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
|
{% load static %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" href="{% static 'accounts/css/base.css' %}">
|
||||||
<title>Home</title>
|
<title>Home</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Login</title>
|
<title>Login</title>
|
||||||
<link rel="stylesheet" href="{% static 'css/login.css' %}">
|
<link rel="stylesheet" href="{% static 'accounts/css/login.css' %}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
|
|||||||
5
core/accounts/templates/accounts/register.html
Normal file
5
core/accounts/templates/accounts/register.html
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{% extends 'accounts/base.html' %}
|
||||||
|
{% block title %}Registrierung{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>Register</h1>
|
||||||
|
{% endblock %}
|
||||||
@@ -116,7 +116,7 @@ USE_TZ = True
|
|||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/5.1/howto/static-files/
|
# https://docs.djangoproject.com/en/5.1/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = 'static/'
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
||||||
|
|||||||
3
static/css/accounts-base.css
Normal file
3
static/css/accounts-base.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
* {
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user