Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ django-filter
django-logger-extra@https://github.com/City-of-Helsinki/django-logger-extra/archive/refs/tags/v0.1.0.zip
django-modeltranslation
django-mptt~=0.18
django-munigeo@https://github.com/City-of-Helsinki/django-munigeo/archive/refs/tags/v0.2.89.zip
django-munigeo@https://github.com/City-of-Helsinki/django-munigeo/archive/refs/tags/v0.2.90.zip
django-polymorphic>=3.1
django-two-factor-auth
django-two-factor-auth[phonenumbers]
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ django-mptt==0.18.0 \
# via
# -r requirements.in
# django-munigeo
django-munigeo @ https://github.com/City-of-Helsinki/django-munigeo/archive/refs/tags/v0.2.89.zip \
--hash=sha256:571d9bc73ffeb771f9d5fcfb740242188f76f13da9e285a14057e9d759ed8593
django-munigeo @ https://github.com/City-of-Helsinki/django-munigeo/archive/refs/tags/v0.2.90.zip \
--hash=sha256:2d432b00ed739e3d3d8a0488d2b4f72a1ca556e1fb8877abecb0863845f915b5
# via -r requirements.in
django-otp==1.6.1 \
--hash=sha256:68dafa008921fd418382492d81b717636d8cc1364e24e8f9222b72264adf3c5d \
Expand Down
3 changes: 3 additions & 0 deletions smbackend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
CSP_ENABLED=(bool, False),
CSP_REPORT_ONLY=(bool, True),
CSP_REPORT_URI=(str, None),
IMPORT_DATA_PATH=(str, None),
)

env_path = BASE_DIR / ".env"
Expand All @@ -84,6 +85,7 @@
EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD")
OTP_EMAIL_SENDER = env("OTP_EMAIL_SENDER")
PICTURE_URL_REWRITE_ENABLED = env("PICTURE_URL_REWRITE_ENABLED")
IMPORT_DATA_PATH = env("IMPORT_DATA_PATH")

# Application definition
INSTALLED_APPS = [
Expand Down Expand Up @@ -184,6 +186,7 @@ def gettext(s):
TASTYPIE_DEFAULT_FORMATS = ["json"]

DEFAULT_SRID = 3067 # ETRS TM35-FIN
PROJECTION_SRID = 3067
ADDRESS_SEARCH_RADIUS = env("ADDRESS_SEARCH_RADIUS")
# The Finnish national grid coordinates in TM35-FIN according to JHS-180
# specification. We use it as a bounding box.
Expand Down