Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,6 @@
from dotenv import load_dotenv


def main():
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
load_dotenv(".env")
execute_from_command_line(sys.argv)


if __name__ == "__main__":
main() #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
from dotenv import load_dotenv


def main():
try:
from django.core.management import execute_from_command_line
Expand Down