Warning
Before you create Models, etc remove the 0001_initial.py from migrations folder if you dont have created own one.
A Fenrir App that templating fenrir to fenrir
- Fenrir
- Copy & Paste
- Crazy Shit incoming.
Note
AA Fenrir needs at least Alliance Auth v5 Please make sure to update your Alliance Auth before you install this APP
Make sure you're in your virtual environment (venv) of your Alliance Auth then install the pakage.
pip install aa-fenrirConfigure your Alliance Auth settings (local.py) as follows:
INSTALLED_APPS = [
# other apps
"eve_sde", # only if it not already existing
"aafenrir",
# other apps?
]
# This line is right below the `INSTALLED_APPS` list, if not already exist!
INSTALLED_APPS = ["modeltranslation"] + INSTALLED_APPSTo set up the Scheduled Tasks add following code to your local.py
if "aafenrir" in INSTALLED_APPS:
CELERYBEAT_SCHEDULE["AA Fenrir :: Test Task"] = {
"task": "aafenrir.tasks.aafenrir_task",
"schedule": crontab(minute=0, hour="*/1"),
}To set up the Logger add following code to your local.py
Ensure that you have writing permission in logs folder.
LOGGING["handlers"]["aafenrir_file"] = {
"level": "INFO",
"class": "logging.handlers.RotatingFileHandler",
"filename": os.path.join(BASE_DIR, "log/aafenrir.log"),
"formatter": "verbose",
"maxBytes": 1024 * 1024 * 5,
"backupCount": 5,
}
LOGGING["loggers"]["extensions.aafenrir"] = {
"handlers": ["aafenrir_file"],
"level": "DEBUG",
}AA Skillfarm uses EVE SDE data to map IDs to names for EveTypes. You will need to preload some data from SDE once.
python manage.py migrate eve_sde
python manage.py esde_load_sdeMigrate the app and collect static.
python manage.py migrate aafenrir
python manage.py collectstatic --noinputWith the Following IDs you can set up the permissions for the Fenrir
| ID | Description | |
|---|---|---|
basic_access |
Can access the Fenrir module | All Members with the Permission can access the Fenrir. |
manage_access |
Can Manage Fenrir module | Can manage Application |
full_access |
Has full access to Fenrir Module | Has Full Access |
The Following Settings can be setting up in the local.py
- AA_FENRIR_APP_NAME:
"YOURNAME"- Set the name of the APP - AA_FENRIR_TASKS_TIME_LIMIT:
7200- Defines the time (in seconds) a task will timeout
Help us translate this app into your language or improve existing translations. Join our team!"
You want to improve the project? Please ensure you read the Contribution Guidelines