Commit 05577332 authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI

[ui] Simplify import of urlparse

parent 82b3aa80
......@@ -29,11 +29,7 @@ import datetime
import hashlib
import random
import re
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
from urllib.parse import urlparse
from django.conf import settings
from django.contrib.auth.models import User
......
......@@ -27,6 +27,8 @@
import datetime
import logging
from urllib.parse import urlparse
from django.conf import settings
from django.contrib import messages
......@@ -52,13 +54,6 @@ from ..common.models import Shareable
from ..utils import mail
from .registration.forms import BlockedUserRevalidationForm
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
import logging
logger = logging.getLogger(__name__)
......
......@@ -25,9 +25,12 @@
# #
###############################################################################
from urllib.parse import urlparse
from django.conf import settings
from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from drf_yasg import openapi
from drf_yasg.views import get_schema_view
......@@ -36,13 +39,6 @@ from rest_framework import permissions
from .navigation import urls as navigation_urls
from .ui import urls as ui_urls
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
from django.contrib import admin
admin.autodiscover()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment