File tree 3 files changed +35
-0
lines changed
3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 51
51
52
52
- name : Run black
53
53
run : poetry run black .
54
+
55
+ - name : Save workspace
56
+ uses : actions/upload-artifact@v2
57
+ with :
58
+ name : workspace
59
+ path : .venv
60
+
61
+ checks :
62
+ runs-on : ubuntu-latest
63
+ needs : linter
64
+
65
+ steps :
66
+ - name : Checkout code
67
+ uses : actions/checkout@v2
68
+
69
+ - name : Download workspace
70
+ uses : actions/download-artifact@v2
71
+ with :
72
+ name : workspace
73
+ path : .venv
74
+
75
+ - name : Set up Python
76
+ uses : actions/setup-python@v2
77
+ with :
78
+ python-version : " 3.12"
79
+
80
+ - name : Configure Poetry
81
+ run : |
82
+ poetry config virtualenvs.in-project true
83
+
84
+ - name : Collect static files
85
+ run : poetry run python manage.py collectstatic --noinput
Original file line number Diff line number Diff line change @@ -79,3 +79,4 @@ node_modules/
79
79
/env3 /
80
80
docker-compose.override.yml
81
81
/docs /docs /_build /*
82
+ /demo /staticfiles /
Original file line number Diff line number Diff line change 135
135
STATICFILES_DIRS = [
136
136
os .path .join (BASE_DIR , "static" ),
137
137
]
138
+ STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
139
+ STATIC_ROOT = os .path .join (BASE_DIR , "staticfiles" )
138
140
139
141
# Default primary key field type
140
142
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
You can’t perform that action at this time.
0 commit comments