Skip to content

Commit 1d0e4fd

Browse files
committed
Slight refactor of custom JS
- Move under the pythonsd/ directory where the template that uses it lives - Remove copying static files in package.json. Not needed after moving the main.js - Remove logging when debug false (can't get errors otherwise)
1 parent c6f9909 commit 1d0e4fd

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

config/settings/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,11 @@
174174
"console-verbose": {
175175
"level": "DEBUG",
176176
"class": "logging.StreamHandler",
177-
"filters": ["require_debug_true"],
178177
"formatter": "verbose",
179178
},
180179
"console": {
181180
"level": "DEBUG",
182181
"class": "logging.StreamHandler",
183-
"filters": ["require_debug_true"],
184182
"formatter": "succinct",
185183
},
186184
"django.server": {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.2.0",
44
"description": "San Diego Python Website - sandiegopython.org",
55
"scripts": {
6-
"dist": "cp ./assets/src/main.js ./assets/dist/ && tailwindcss -i ./assets/src/input.css -o ./assets/dist/main.css --minify",
7-
"build": "cp ./assets/src/main.js ./assets/dist/ && tailwindcss -i ./assets/src/input.css -o ./assets/dist/main.css",
8-
"watch": "cp ./assets/src/main.js ./assets/dist/ && tailwindcss -i ./assets/src/input.css -o ./assets/dist/main.css --watch"
6+
"dist": "tailwindcss -i ./assets/src/input.css -o ./assets/dist/main.css --minify",
7+
"build": "tailwindcss -i ./assets/src/input.css -o ./assets/dist/main.css",
8+
"watch": "tailwindcss -i ./assets/src/input.css -o ./assets/dist/main.css --watch"
99
},
1010
"repository": {
1111
"type": "git",

pythonsd/templates/pythonsd/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
</footer>
108108

109109
<script src="{% static 'htmx.min.js' %}"></script>
110-
<script src="{% static 'main.js' %}"></script>
110+
<script src="{% static 'js/main.js' %}"></script>
111111

112112
</body>
113113
</html>

0 commit comments

Comments
 (0)