Skip to content

Commit

Permalink
manage.py: try to warn that this is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dwaynebailey committed Jul 7, 2017
1 parent d12db17 commit a4fd355
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@

import os
import sys

from django.core.management import execute_from_command_line
import warnings

from pootle import syspath_override # noqa
from pootle.core.log import cmd_log

from django.core.management import execute_from_command_line


if __name__ == "__main__":
from pootle.core.log import cmd_log
warnings.warn("Deprecated use 'pootle' command instead", DeprecationWarning)
cmd_log(*sys.argv)
os.environ['DJANGO_SETTINGS_MODULE'] = 'pootle.settings'
execute_from_command_line()

0 comments on commit a4fd355

Please sign in to comment.