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

@@ -1,4 +1,4 @@
from django.conf import settings
from allianceauth import NAME
import requests
import logging
@@ -20,7 +20,7 @@ class SRPManager:
def get_kill_data(kill_id):
url = ("https://www.zkillboard.com/api/killID/%s/" % kill_id)
headers = {
'User-Agent': "%s Alliance Auth" % settings.DOMAIN,
'User-Agent': NAME,
'Content-Type': 'application/json',
}
r = requests.get(url, headers=headers)