diff --git a/docker/Dockerfile b/docker/Dockerfile index 7330199..0782d8a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -22,6 +22,7 @@ ENV EMAIL_USE_LOCALTIME=True ENV EMAIL_USE_TLS=False ENV EMAIL_USE_SSL=False ENV EMAIL_TIMEOUT=120 +ENV DEFAULT_FROM_EMAIL=sigi@interlegis.leg.br ENV DATABASE_URL='sqlite:////:memory:' ENV AUTH_LDAP_SERVER_URI='' ENV AUTH_LDAP_BIND_DN='' diff --git a/sigi/settings.py b/sigi/settings.py index 236a96e..b19561a 100644 --- a/sigi/settings.py +++ b/sigi/settings.py @@ -60,6 +60,7 @@ INSTALLED_APPS = [ "django.contrib.messages", "django.contrib.staticfiles", "django_extensions", + "django_filters", ] MIDDLEWARE = [ @@ -90,6 +91,7 @@ EMAIL_USE_LOCALTIME = env("EMAIL_USE_LOCALTIME", bool, default=False) EMAIL_USE_TLS = env("EMAIL_USE_TLS", bool, default=False) EMAIL_USE_SSL = env("EMAIL_USE_SSL", bool, default=False) EMAIL_TIMEOUT = env("EMAIL_TIMEOUT", int, default=None) +DEFAULT_FROM_EMAIL = env("DEFAULT_FROM_EMAIL", default="sigi@interlegis.leg.br") # Database # https://docs.djangoproject.com/en/4.0/ref/settings/#databases @@ -112,6 +114,7 @@ TEMPLATES = [ "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", "django.template.context_processors.media", + "sigi.apps.utils.context_processors.site_context", "sigi.apps.home.context_processors.dashboard", ], }, @@ -188,6 +191,9 @@ if env("AUTH_LDAP_SERVER_URI", default=None): AUTH_LDAP_GROUP_CACHE_TIMEOUT = env("AUTH_LDAP_GROUP_CACHE_TIMEOUT", int) AUTH_PROFILE_MODULE = env("AUTH_PROFILE_MODULE") +LOGIN_REDIRECT_URL = "home_index" + + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.0/howto/static-files/