mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
remove unecessary imports.
This commit is contained in:
parent
a77a166b31
commit
bea6e3b97f
@ -6,11 +6,8 @@
|
|||||||
from optparse import make_option
|
from optparse import make_option
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
import django
|
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils import translation
|
|
||||||
|
|
||||||
from gunicorn.app.djangoapp import DjangoApplicationCommand
|
from gunicorn.app.djangoapp import DjangoApplicationCommand
|
||||||
from gunicorn.config import make_settings
|
from gunicorn.config import make_settings
|
||||||
@ -75,8 +72,6 @@ class Command(BaseCommand):
|
|||||||
admin_media_path = options.pop('admin_media_path', '')
|
admin_media_path = options.pop('admin_media_path', '')
|
||||||
quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C'
|
quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C'
|
||||||
|
|
||||||
print "\nDjango version %s, using settings %r" % (django.get_version(),
|
|
||||||
settings.SETTINGS_MODULE)
|
|
||||||
print "Server is running"
|
print "Server is running"
|
||||||
print "Quit the server with %s." % quit_command
|
print "Quit the server with %s." % quit_command
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user