c3f56f8a3e
- templates: new shell from ACORE-template (mobile sidebar + bottom nav, themes, wallpaper, user dropdown), Django-ized nav with push-url; login rebranding; ACORE-template/ gitignored - new pages wired to real data: databases (Directory types/counts), it-support (Ticket create form + my tickets), dashboard (live counters), structure (departments with head heuristic + pharmacy staffing status); static mockups for news/tasks/email/chat/purchases/hr-portal/help - tests: 57 tests — ad_connector (ldap3 MOCK_SYNC client, sync scenarios, signals, mapping page), mattermost_connector (sync on mocks, bare-except regression), core (pages smoke, tickets, directories, tree rebuild) - celery: add missing acore/celery.py app + CELERY_* settings (broker from env, eager mode without broker locally); wrap signal .delay calls so an unreachable broker no longer breaks employee saves Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
15 lines
590 B
Python
15 lines
590 B
Python
from .base import * # noqa
|
|
|
|
DEBUG = True
|
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
# Django Debug Toolbar — подключить если нужно
|
|
# INSTALLED_APPS += ['debug_toolbar']
|
|
# MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware']
|
|
# INTERNAL_IPS = ['127.0.0.1']
|
|
|
|
# Локально брокер обычно не запущен — задачи выполняются синхронно.
|
|
# Для работы с реальным Redis/RabbitMQ поставьте CELERY_TASK_ALWAYS_EAGER=False в .env
|
|
CELERY_TASK_ALWAYS_EAGER = env.bool('CELERY_TASK_ALWAYS_EAGER', default=True)
|