fix static files
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
from rad.settings import REMOTE_URL
|
||||
from django.db.models.fields.files import ImageField
|
||||
from django.db.models.fields.related import ForeignKey
|
||||
@@ -259,6 +260,9 @@ class Long(models.Model):
|
||||
|
||||
self.question_json_id += 1
|
||||
|
||||
# Make sure path exists (we should probably just do this once on startup)
|
||||
Path(path).parents[0].mkdir(parents=True, exist_ok=True)
|
||||
|
||||
with open(path, "w+") as f:
|
||||
|
||||
print("start writing file")
|
||||
|
||||
@@ -305,6 +305,10 @@ DEBUG_CONTAINER = False
|
||||
|
||||
CONTACT_EMAIL = "plh-tr.radiology-academy@nhs.net"
|
||||
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(BASE_DIR, "rad", "static"), # That's it!!
|
||||
)
|
||||
|
||||
try:
|
||||
from .settings_local import *
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user