Browse Source

Load env before main

pull/2/head
PCoder 10 months ago
parent
commit
b4a21ae7e7
  1. 7
      manage.py

7
manage.py

@ -5,7 +5,6 @@ import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gmba_django.settings.development')
@ -24,9 +23,9 @@ def main():
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()
dotenv.load_dotenv(
os.path.join(os.path.dirname(__file__), '.env')
)
if __name__ == '__main__':
main()

Loading…
Cancel
Save