Restructure settings (#882)

* Refactor settings into importable base.

User deployment should use 'from allianceauth.settings.base import *' in their project settings.

* Restructure tests folder.
Remove DOMAIN setting.
Use localhost for services revoked emails.

* Add missing python3.4 typing requirement
typing is included python3.5+

* Remove legacy setup comments
Remove legacy update script
This commit is contained in:
Adarnof
2017-10-04 23:12:49 -04:00
committed by Basraah
parent d7cb1a2fab
commit 111105d48b
21 changed files with 475 additions and 999 deletions

View File

@@ -195,7 +195,7 @@ class Phpbb3Manager:
cursor = connections['phpbb3'].cursor()
password = Phpbb3Manager.__gen_hash(Phpbb3Manager.__generate_random_pass())
revoke_email = "revoked@" + settings.DOMAIN
revoke_email = "revoked@localhost"
try:
pwhash = Phpbb3Manager.__gen_hash(password)
cursor.execute(Phpbb3Manager.SQL_DIS_USER, [revoke_email, pwhash, username])

View File

@@ -235,7 +235,7 @@ class SmfManager:
cursor = connections['smf'].cursor()
password = cls.generate_random_pass()
revoke_email = "revoked@" + settings.DOMAIN
revoke_email = "revoked@localhost"
try:
pwhash = cls.gen_hash(username, password)
cursor.execute(cls.SQL_DIS_USER, [revoke_email, pwhash, username])