Skip to content

Commit

Permalink
fix manage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmohrin committed Nov 18, 2024
1 parent a379181 commit 4b3bef6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion evap/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
import os
import sys

if __name__ == "__main__":

def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evap.settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)


if __name__ == "__main__":
main()

Check warning on line 15 in evap/__main__.py

View check run for this annotation

Codecov / codecov/patch

evap/__main__.py#L15

Added line #L15 was not covered by tests
1 change: 0 additions & 1 deletion manage.py

This file was deleted.

5 changes: 5 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python3

from evap.__main__ import main

main()

0 comments on commit 4b3bef6

Please sign in to comment.