Commit Graph

94 Commits

Author SHA1 Message Date
Christopher C. Wells dd11afe584 Correct syntax of `CSRF_TRUSTED_ORIGINS` environment check 2022-02-21 15:46:44 -08:00
Christopher C. Wells 21fa57c9c1 Update references to Django documentation pages 2022-02-21 15:39:38 -08:00
Christopher C. Wells 2f9658d7de Add support for a `CSRF_TRUSTED_ORIGINS` configuration environment variable
See #393.
2022-02-21 15:37:51 -08:00
Christopher C. Wells c540d36495 Add Chinese (simplified) translations 2022-02-21 10:31:38 -08:00
Christopher Charbonneau Wells 002f86aebd Fix code formatting issue 2022-02-20 22:32:54 +00:00
Christopher Charbonneau Wells 26fa988fe6 Add Gitpod config for CSRF origin
Supports CSRF with Django 4+ (Baby Buddy v1.10.0+).

See #393.
2022-02-20 22:27:19 +00:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
Christopher C. Wells 81f0fb94e7 Replace easy-thumbnails with imagekit
Closes #373
2022-01-16 15:49:09 -08:00
Christopher C. Wells 6cc9890f5a Use named patterns for settings URLs
This should improve support for subdirectory hosted installations.
2021-12-24 14:28:24 -05:00
Christopher C. Wells db703c07ec Merge remote-tracking branch 'origin/master' 2021-12-21 15:58:42 -05:00
MagiX13 498eddf5b6 Serve login pages using the SCRIPT_NAME if available 2021-12-21 15:51:20 -05:00
Christopher C. Wells 542e0dacb3 Ignore any unknown settings files 2021-12-20 09:41:32 -05:00
MagiX13 34038652b8 Convert envir variables that are supposed to be boolean to boolean
dotenv does not take allow for boolean environment variables and thus they have to be converted before
2021-12-15 06:26:50 -05:00
Christopher Charbonneau Wells d74f35d765
Handle format customization in middelware (#332)
This is done to allow for format difference between `en-US` (`en`) and `en-GB` that are not well supported by Django's format handling.
2021-11-12 10:13:08 -08:00
Christopher C. Wells 0efe0e4f0b Remove deprecated use of session-based language handling
Session-based language handling is deprecated in Django 3.x and will be
removed in 4.x.

https://docs.djangoproject.com/en/3.2/topics/i18n/translation/#explicitly-setting-the-active-language
2021-10-26 19:55:16 -07:00
Amith211 52fab47735 add en-GB 'translations' 2021-10-26 19:55:16 -07:00
Christopher C. Wells 821aa34fed Update language option configurations 2021-10-07 05:58:03 -07:00
Christopher C. Wells 3f57b196b4 Disable secure cookies
This feature breaks login on non-HTTPs connections. Additional work needed.
2021-09-16 20:44:05 -07:00
Christopher C. Wells c8d48945f2 Set `HttpOnly` flag on cookies 2021-09-16 19:37:04 -07:00
Christopher C. Wells 45cb43958d Set default password policies in base settings 2021-09-16 19:14:48 -07:00
Christopher C. Wells 8ea68eed54 Default session and CSRF cookie setting to secure 2021-09-16 18:59:25 -07:00
Christopher C. Wells 956453b206 Add Portuguese to README 2021-09-16 18:53:46 -07:00
José Pedro Sousa 699c573162 Adding Portuguese Translation 2021-09-15 08:32:31 -07:00
jcgoette 81fad7d30e add SECURE_PROXY_SSL_HEADER env arg option 2021-08-21 06:04:56 -07:00
Christopher C. Wells 359846fe57 Ensure default database name is set
Closes #279
2021-08-06 14:28:45 -07:00
Christopher C. Wells ddf4c70739 Add support for DB config overrides to base settings
Closes #273
2021-08-06 08:52:51 -07:00
Christopher C. Wells 4673c2b8bd Move cookie secure attributes to example production settings 2021-07-31 05:56:29 -07:00
Christopher C. Wells d9f6c44f59 Add secure attribute to cookies 2021-07-31 05:56:29 -07:00
Christopher C. Wells eac0942acd Remove unsupported eb setting config 2021-07-31 05:56:29 -07:00
Christopher C. Wells 97b17447df Disable axes during tests 2021-06-21 20:47:57 -07:00
Christopher C. Wells 27ea845bbb Add basic log in brute force protection 2021-06-21 20:41:23 -07:00
Christopher Charbonneau Wells c8e1fee3e4
Replace Travis with GitHub Actions (#216)
* Replace Travis config with GitHub Actions config

* Use Coveralls GitHub Action

* Correct Coveralls flag name

* Try AndreMiras/coveralls-python-action@develop

* Prevent double-run on push to PRs

Closes #216.
2021-05-19 21:12:03 -07:00
Christopher C. Wells 250e07e739 Set default timezone as UTC
The previous setting of "Etc/UTC" appears to no longer be valid in certain
circumstances. This was causes tests to fail on user settings because the
provided default was invalid. "UTC" should be more uniformly recognized so
hopefully this does not have any downstream effects.

Closes #203
2021-05-05 05:58:32 -07:00
Christopher C. Wells fe454013da Update Python dependencies and runtime 2021-04-11 12:49:15 -07:00
Christopher C. Wells 6fb958d6b3 Add Italian translations 2021-03-04 06:03:29 -08:00
Christopher C. Wells 311c6d2e05 Add Dutch translations 2021-02-25 06:00:23 -08:00
Zutart 4733ec0b83
Improve database setting configuration options (#182)
* Updated docker.py to allow for custom PSQL env input

* Updated README.md with new PSQL env variables

* Updated with new variable names and adjusted inline logic

* Updated README.md to reflect new env variable names

* Updated database password fallback to prevent breaking existing deployments

* Updated with new env variables

* Further edits per PR discussion

* Removed unnecessary variables from example docker-compose file
2021-01-04 18:06:11 -08:00
Mikko Haikonen 308f0f4c57 Revert development.py 2020-07-29 16:42:04 +03:00
Mikko Haikonen dfdadea5ba Add Finnish language 2020-07-29 16:40:18 +03:00
Christopher C. Wells aa261616a9 Provide default when USE_24_HOUR_TIME_FORMAT is not set (#148) 2020-07-21 22:05:46 -07:00
Christopher C. Wells d5dc329cf8 Add USE_24_HOUR_TIME_FORMAT setting (#148) 2020-07-21 20:46:46 -07:00
Christopher C. Wells 3135d1d9d0 Use settings override for rolling session refresh test 2020-06-28 05:31:34 -07:00
Christopher C. Wells 3407afbf1b Move default database file to a directory (#145) 2020-06-21 08:21:16 -07:00
Christopher C. Wells a9787f6743 Move default `DATABASES` config to babybuddy.settings.base 2020-06-09 07:11:25 -07:00
Peter Hardy 2806d0a22f The rest of the middleware commit 2020-05-17 20:11:08 +10:00
Peter Hardy 1d9a7d4215 Adds rolling session refresh middleware (#130) 2020-05-17 16:57:00 +10:00
MaximilianKindshofer 85777d0b9a fix(Docker): Fixed Docker-Compose-Example
The docker-compose example now runs out of the box. Migrations are
applied at startup and cachetable is created.

Closes #141
2020-04-18 18:28:51 +02:00
Christopher C. Wells 8c64dd8cae Configure support for imports 2020-02-18 14:41:33 -08:00
Christopher C. Wells 014b373a78 Add initial basic admin import/export support 2020-02-18 14:41:33 -08:00
Christopher C. Wells c05ce176fc Persist user timezone setting with middleware 2020-02-14 12:45:24 -08:00