mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 00:56:19 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user