mirror of https://github.com/zulip/zulip.git
Remove unused imports
(imported from commit 9f5c226708e44935e8d32c18ea7dd1ad2615d8d5)
This commit is contained in:
parent
b6203e7240
commit
80c6d09197
|
@ -1,5 +1,5 @@
|
|||
from django.conf import settings
|
||||
from django.conf.urls import patterns, include, url
|
||||
from django.conf.urls import patterns, url
|
||||
import os.path
|
||||
|
||||
# Uncomment the next two lines to enable the admin:
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import tornado.web
|
||||
import types
|
||||
|
||||
class TornadoAsyncException(Exception): pass
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from django.core.management.base import NoArgsCommand
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from zephyr.models import Zephyr, UserProfile, ZephyrClass, Recipient, Subscription
|
||||
from zephyr.models import Zephyr, UserProfile, ZephyrClass, Recipient
|
||||
from django.contrib.sessions.models import Session
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
|
|
|
@ -85,7 +85,7 @@ class Command(BaseCommand):
|
|||
print "Tornado server is running at http://%s:%s/" % (addr, port)
|
||||
print "Quit the server with %s." % quit_command
|
||||
|
||||
from tornado.web import FallbackHandler, StaticFileHandler
|
||||
from tornado.web import FallbackHandler
|
||||
django_app = wsgi.WSGIContainer(WSGIHandler())
|
||||
|
||||
try:
|
||||
|
@ -150,7 +150,7 @@ class AsyncDjangoHandler(tornado.web.RequestHandler, base.BaseHandler):
|
|||
return inner_func
|
||||
|
||||
def get(self):
|
||||
from tornado.wsgi import HTTPRequest, WSGIContainer
|
||||
from tornado.wsgi import WSGIContainer
|
||||
from django.core.handlers.wsgi import WSGIRequest, STATUS_CODE_TEXT
|
||||
import urllib
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ from zephyr.models import Zephyr, UserProfile, ZephyrClass, Recipient, Subscript
|
|||
filter_by_subscriptions, Realm
|
||||
|
||||
import datetime
|
||||
import os
|
||||
import simplejson
|
||||
import subprocess
|
||||
subprocess.call("zephyr/tests/generate-fixtures");
|
||||
|
|
|
@ -9,11 +9,10 @@ from django.utils.timezone import utc
|
|||
|
||||
from django.contrib.auth.models import User
|
||||
from zephyr.models import Zephyr, UserProfile, ZephyrClass, Subscription, \
|
||||
Recipient, filter_by_subscriptions, get_display_recipient, get_huddle, \
|
||||
Recipient, get_display_recipient, get_huddle, \
|
||||
create_user_profile, Realm, UserMessage, create_zephyr_class
|
||||
from zephyr.forms import RegistrationForm
|
||||
|
||||
import tornado.web
|
||||
from zephyr.decorator import asynchronous
|
||||
|
||||
import datetime
|
||||
|
|
Loading…
Reference in New Issue