diff --git a/beat/web/accounts/migrations/0011_check_all_accounts.py b/beat/web/accounts/migrations/0011_check_all_accounts.py
index 933e0641540473223851f8de4cf104dcb82e5fb8..ad6ec562c4fe149379d7203fd4a3e92fd90b80d6 100755
--- a/beat/web/accounts/migrations/0011_check_all_accounts.py
+++ b/beat/web/accounts/migrations/0011_check_all_accounts.py
@@ -39,7 +39,10 @@ from django.contrib.auth.models import User
 from datetime import datetime, timedelta
 import datetime
 import re
-from urlparse import urlparse
+try:
+    from urlparse import urlparse
+except ImportError:
+    from urllib.parse import urlparse
 
 import simplejson as json