Reorder all imports

This commit is contained in:
2019-08-19 23:53:34 +02:00
parent 73fe51ba9c
commit 3e5b41de1d
103 changed files with 240 additions and 160 deletions

View File

@ -9,11 +9,11 @@ https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
import raven
from django.utils.translation import ugettext_lazy as _
from django.contrib.messages import constants as messages
from django.utils.translation import ugettext_lazy as _
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

View File

@ -1,17 +1,14 @@
from contextlib import contextmanager
import time
from contextlib import contextmanager
from django.contrib.auth.models import User
from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.expected_conditions import (
staleness_of,
visibility_of_element_located,
)
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support.expected_conditions import staleness_of
from selenium.webdriver.support.expected_conditions import visibility_of_element_located
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.wait import WebDriverWait
from apps.map.models import CaseStudy

View File

@ -1,4 +1,5 @@
from django.conf.urls import include, url
from django.conf.urls import include
from django.conf.urls import url
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin

View File

@ -1,6 +1,6 @@
from django.utils import translation
from django.views.i18n import set_language
from django.views.generic import View
from django.views.i18n import set_language
class LanguageDropdownView(View):

View File

@ -6,10 +6,10 @@ It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
from django.core.wsgi import get_wsgi_application
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ojusomap.settings")