Moving import to top
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
This commit is contained in:
parent
091445e61f
commit
6c5a88e986
1 changed files with 1 additions and 1 deletions
|
@ -14,13 +14,13 @@ in hyperkitty DB from `http://<username>.id.fedoraproject.org/` to simple
|
||||||
import psycopg2
|
import psycopg2
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
import settings
|
||||||
|
|
||||||
SOCIALACCOUNT_TABLE = "socialaccount_socialaccount"
|
SOCIALACCOUNT_TABLE = "socialaccount_socialaccount"
|
||||||
OPENID_REGEX = r"http://(.+).id.fedoraproject.org/"
|
OPENID_REGEX = r"http://(.+).id.fedoraproject.org/"
|
||||||
|
|
||||||
# Read the database information from mailman config
|
# Read the database information from mailman config
|
||||||
sys.path.append('/etc/mailman3')
|
sys.path.append('/etc/mailman3')
|
||||||
import settings
|
|
||||||
database_settings = settings.DATABASES.get("default")
|
database_settings = settings.DATABASES.get("default")
|
||||||
conn = psycopg2.connect(
|
conn = psycopg2.connect(
|
||||||
host=database_settings["HOST"],
|
host=database_settings["HOST"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue