0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed #31066 -- Added a docstring to main() function in manage.py template.

This commit is contained in:
exploit19 2019-12-09 08:54:51 +02:00 committed by Mariusz Felisiak
parent 723fc7fcf6
commit d8ab2c9bba

View File

@ -5,6 +5,7 @@ import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings')
try:
from django.core.management import execute_from_command_line