Skip to content

Commit

Permalink
Set DJANGO_CONFIGURATION in manage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Jun 1, 2023
1 parent 084277e commit cb09ede
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions django/src/manage.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#!/usr/bin/env python

import os
import sys

if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rdwatch.server.settings')
import configurations.importer

from django.core.management import execute_from_command_line


from django.core.management import execute_from_command_line
def main() -> None:
os.environ['DJANGO_SETTINGS_MODULE'] = 'rdwatch.server.settings'
os.environ.setdefault('DJANGO_CONFIGURATION', 'DevelopmentConfiguration')
configurations.importer.install(check_options=True)

execute_from_command_line(sys.argv)


if __name__ == '__main__':
main()

0 comments on commit cb09ede

Please sign in to comment.