We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aabe09 commit e429603Copy full SHA for e429603
src/project_name/settings.py
@@ -22,12 +22,8 @@
22
import os
23
import ast
24
25
-try:
26
- from urllib.parse import urlparse, urlunparse
27
- from urllib.request import urlopen, Request
28
-except ImportError:
29
- from urllib2 import urlopen, Request
30
- from urlparse import urlparse, urlunparse
+from urllib.parse import urlparse, urlunparse
+from urllib.request import urlopen, Request
31
# Load more settings from a file called local_settings.py if it exists
32
try:
33
from {{ project_name }}.local_settings import *
0 commit comments