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")
|
||||
|
||||
Reference in New Issue
Block a user