Compare commits

..

No commits in common. "5291bf6896d64f125311ddee5f85bde5b5ce4b03" and "513b7b88f4a237eb14f790ddb16d500779ad0a74" have entirely different histories.

3 changed files with 15 additions and 18 deletions

View File

@ -320,8 +320,8 @@ def click_fatlink_view(request, token, fat_hash=None):
messages.warning( messages.warning(
request, request,
_( _(
"Cannot register the fleet participation for {character_name}. The character needs to be online." f"Cannot register the fleet participation for {character.character_name}. The character needs to be online."
).format(character_name=character.character_name) ),
) )
return redirect('fatlink:view') return redirect('fatlink:view')

View File

@ -11,10 +11,10 @@ environment =
[program:beat] [program:beat]
command = %(ENV_AA_COMMAND_CELERY)s command = %(ENV_AA_COMMAND_CELERY)s
-A %(ENV_AA_PROJECT_NAME)s beat -A %(ENV_AA_PROJECT_NAME)s beat
directory = %(ENV_AA_PROJECT_DIRECTORY)s directory = %(ENV_AA_VENV_DIRECTORY)s
user = %(ENV_AA_USER)s user = %(ENV_AA_USER)s
stdout_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log stdout_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log stderr_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
autostart = true autostart = true
autorestart = true autorestart = true
startsecs = 10 startsecs = 10
@ -26,12 +26,12 @@ command = %(ENV_AA_COMMAND_CELERY)s
--pool=threads --pool=threads
--concurrency=5 --concurrency=5
-n %(program_name)s_%(process_num)02d -n %(program_name)s_%(process_num)02d
directory = %(ENV_AA_PROJECT_DIRECTORY)s directory = %(ENV_AA_VENV_DIRECTORY)s
user = %(ENV_AA_USER)s user = %(ENV_AA_USER)s
numprocs = 1 numprocs = 1
process_name = %(program_name)s_%(process_num)02d process_name = %(program_name)s_%(process_num)02d
stdout_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log stdout_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log stderr_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
autostart = true autostart = true
autorestart = true autorestart = true
startsecs = 10 startsecs = 10
@ -42,12 +42,12 @@ priority = 998
{% if gunicorn %} {% if gunicorn %}
[program:gunicorn] [program:gunicorn]
user = %(ENV_AA_USER)s user = %(ENV_AA_USER)s
directory = %(ENV_AA_PROJECT_DIRECTORY)s directory = %(ENV_AA_VENV_DIRECTORY)s
command = %(ENV_AA_COMMAND_GUNICORN)s %(ENV_AA_PROJECT_NAME)s.wsgi command = %(ENV_AA_COMMAND_GUNICORN)s %(ENV_AA_PROJECT_NAME)s.wsgi
--workers=3 --workers=3
--timeout 120 --timeout 120
stdout_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log stdout_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
stderr_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/%(program_name)s.log stderr_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/%(program_name)s.log
autostart = true autostart = true
autorestart = true autorestart = true
stopsignal = INT stopsignal = INT
@ -57,10 +57,10 @@ stopsignal = INT
command = %(ENV_AA_COMMAND_MEMMON)s command = %(ENV_AA_COMMAND_MEMMON)s
-p worker_00=256MB -p worker_00=256MB
-p gunicorn=256MB -p gunicorn=256MB
directory = %(ENV_AA_PROJECT_DIRECTORY)s directory = %(ENV_AA_VENV_DIRECTORY)s
events = TICK_60 events = TICK_60
stdout_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/memmon.log stdout_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/memmon.log
stderr_logfile = %(ENV_AA_PROJECT_DIRECTORY)s/log/memmon.log stderr_logfile = %(ENV_AA_VENV_DIRECTORY)s/log/memmon.log
[group:{{ project_name }}] [group:{{ project_name }}]
programs = beat,worker{% if gunicorn %},gunicorn{% endif %} programs = beat,worker{% if gunicorn %},gunicorn{% endif %}

View File

@ -100,10 +100,7 @@ class BaseSetPasswordServiceAccountView(ServicesCRUDMixin, BaseServiceView, Upda
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
result = super().post(request, *args, **kwargs) result = super().post(request, *args, **kwargs)
if self.get_form().is_valid(): if self.get_form().is_valid():
messages.success( messages.success(request, _(f"Successfully set your {self.service_name} password"))
request,
_("Successfully set your {service_name} password").format(service_name=self.service_name)
)
return result return result