Skip to content

Commit 25c7b45

Browse files
committed
I HAVE TO USE VANILLA CSS, God give me strenght
1 parent b94656f commit 25c7b45

5 files changed

Lines changed: 6 additions & 31 deletions

File tree

config/settings.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@
4646
"database",
4747
"backendapi",
4848
"rest_framework",
49-
"tailwind",
5049
"theme",
51-
"django_browser_reload",
52-
"crispy_forms",
53-
"crispy_tailwind",
5450
]
5551

5652
MIDDLEWARE = [
@@ -61,7 +57,6 @@
6157
"django.contrib.auth.middleware.AuthenticationMiddleware",
6258
"django.contrib.messages.middleware.MessageMiddleware",
6359
"django.middleware.clickjacking.XFrameOptionsMiddleware",
64-
"django_browser_reload.middleware.BrowserReloadMiddleware",
6560

6661
]
6762

@@ -145,13 +140,4 @@
145140

146141
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
147142

148-
INTERNAL_IPS = [
149-
"127.0.0.1",
150-
]
151-
TAILWIND_APP_NAME = 'theme'
152-
153-
NPM_BIN_PATH = os.getenv("NPM_BIN_PATH")
154-
155-
CRISPY_ALLOWED_TEMPLATE_PACKS = "tailwind"
156143

157-
CRISPY_TEMPLATE_PACK = "tailwind"

config/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@
2626
path("api/", include(backendapi.urls)),
2727
path("",views.base_view, name="base"),
2828
path("Registration",views.registration_view, name="registration"),
29-
path("__reload__/", include("django_browser_reload.urls")),
3029
]

requirements.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ django-urlconfchecks==0.11.0 # TODO: Add to CI
33
daphne==4.1.2
44
psycopg2-binary==2.9.10
55
djangorestframework==3.15.2
6-
django-tailwind>=3.6.0
7-
django-browser-reload==1.13.0
8-
crispy-tailwind==0.5.0
96

107

theme/templates/base.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
{% load tailwind_tags %}
2-
31
<!DOCTYPE html>
42
<html lang="en">
53
<head>
64
<title>Django Tailwind</title>
75
<meta charset="UTF-8">
86
<meta name="viewport" content="width=device-width, initial-scale=1.0">
97
<meta http-equiv="X-UA-Compatible" content="ie=edge">
10-
{% tailwind_css %}
118
</head>
129

13-
<body class="bg-gray-50 font-serif leading-normal tracking-normal">
14-
<div class="container mx-auto">
10+
<body>
11+
<div>
1512
{% block content %}
1613
{% endblock %}
1714
</div>

theme/templates/registration.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
{% extends "base.html" %}
2-
{% load tailwind_filters %}
32

43

54
{% block title %}registration{% endblock %}
65

76
{% block content %}
8-
<div class="max-w-md mx-auto bg-white shadow-lg rounded-lg p-8 mt-10">
9-
<h1 class="text-2xl font-semibold text-gray-800 mb-6">Registration Form</h1>
10-
11-
<form method="POST" class="space-y-6">
7+
<div>
8+
<form>
129
{% csrf_token %}
1310

1411
<!-- Render Crispy Form -->
15-
{{ form|crispy }}
12+
{{ form.as_p }}
1613

1714
<!-- Submit Button -->
18-
<button type="submit"
19-
class="w-full bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-lg shadow-md">
15+
<Button>
2016
Register
2117
</button>
2218
</form>

0 commit comments

Comments
 (0)