Skip to content

Commit

Permalink
Always create DATADIR in manage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmohrin committed Jan 20, 2025
1 parent 890559e commit f32726c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/usr/bin/env python3

import os
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evap.settings")

from django.conf import settings
from django.core.management import execute_from_command_line

settings.DATADIR.mkdir(exist_ok=True)
execute_from_command_line(sys.argv)

0 comments on commit f32726c

Please sign in to comment.