Skip to content
Snippets Groups Projects
Commit a9d7e8a4 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

bugfix on re-saveng primer_file

parent 0da23082
No related branches found
No related tags found
No related merge requests found
......@@ -396,7 +396,7 @@ class SimulatorJob(models.Model):
def run_insillyclo(self, request):
if self.primers_file.name:
primers_file = pathlib.Path(self.primers_file.name)
primers_file = pathlib.Path(str(self.primers_file.file))
else:
primers_file = None
return insillyclo.simulator.compute_all(
......
......@@ -169,6 +169,9 @@ MEDIA_URL = config('MEDIA_URL', default='/media') + '/'
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
"OPTIONS": {
"allow_overwrite": True,
},
},
"staticfiles": {
"BACKEND": "djangoscss.storage.SassStaticFilesStorage",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment