Commit Graph

65 Commits

Author SHA1 Message Date
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
Christopher C. Wells 127c3d5cb0 Add ability to delete all inactive Timers (#108) 2020-02-06 21:15:36 -08:00
Christopher C. Wells 8e5364d891 Ensure that empty environment values get defaults
The `os.environ.get` default is _not_ used if the environment variable is set to an empty value. This can lead to confusion if, for example, the `TIME_ZONE` environment variable is set to empty. The expected behavior is a fallback on "Etc/UTC".
2020-02-04 11:28:16 -08:00
Christopher C. Wells c720f0b581 Add cache table support (WIP) 2020-01-31 09:09:01 -08:00
Christopher C. Wells cc0eef33a8 Add support for additional datetime input formats
The frontend library uses an datetime strong format for it's base language (US English)
that is not supported by Python's datetime. This commit adds custom formats to
support the frontend strings.
2020-01-20 15:50:35 -08:00
Christopher C. Wells 094908f8bc Update documentation throughout 2020-01-19 08:49:45 -08:00
Christopher C. Wells 2627b1cbfd Add Turkish translations 2020-01-16 19:42:49 -08:00
Christopher C. Wells f6b5126dfd Add Spanish translations 2020-01-16 19:33:03 -08:00
Christopher C. Wells d5d8a20922 Add note to dev settings re: testing production assets. 2019-07-10 19:26:10 -07:00
Christopher C. Wells 1d1b994e1a Add German to list of language options. 2019-06-07 07:22:55 -07:00
Peter Wickenberg 2d4cf3cfa3 Add Swedish translations. 2019-05-02 11:48:36 -07:00
Christopher C. Wells 83b4edf95d Store and retrieve language in user Setting. 2019-04-16 21:41:55 -07:00
Christopher C. Wells d52694e93e Set languages list manually. 2019-04-13 20:09:55 -07:00
Christopher C. Wells 8f0c2f3159 Add locale middleware. 2019-04-13 20:04:51 -07:00
Christopher Charbonneau Wells 77bf37df33 Correct whitenoise root definition in base settings. 2018-10-11 19:28:51 -07:00
Isaac Bythewood 1b991a3798 Add support for AWS S3 storage for ephemeral storage platforms 2018-02-25 01:13:39 -05:00
Christopher Charbonneau Wells 9e220d29f4 Add a custom API metadata class to include filters on OPTIONS responses. 2017-12-05 19:27:28 -05:00
Christopher Charbonneau Wells a9c0757b4d Add per-user token-based API authentication. 2017-12-05 10:46:59 -05:00
Christopher Charbonneau Wells dbe87fe853 Remove no longer required collectstatic steps before tests. 2017-12-03 17:16:07 -05:00
Isaac Bythewood e397db78e4 Fix requiring a manifest creation for basic testing/development 2017-12-03 04:39:43 -05:00
Isaac Bythewood 969958df09 Move ALLOW_UPLOADS to BABY_BUDDY dict 2017-12-03 04:39:43 -05:00
Christopher Charbonneau Wells 2cd3aacfbf Add Travis settings file. 2017-11-30 23:10:08 -05:00
Christopher Charbonneau Wells 3c5aba9ae7 Check for and load environment variables from a `.env` file. 2017-11-30 22:54:50 -05:00
Christopher Charbonneau Wells 9d3724138e Remove unecessary imports and coverage exclusions from settings files. 2017-11-30 22:39:21 -05:00
Christopher Charbonneau Wells 4272c9b075 Add a basic bar chart showing average feeding durations over time. 2017-11-29 21:28:54 -05:00
Christopher Charbonneau Wells dd4455178a Add environment variable-based settings and configuration documentation. 2017-11-29 15:02:14 -05:00
Christopher Charbonneau Wells 12254b0861 Update docker-compose config using an environment file. 2017-11-24 11:36:02 -05:00
Christopher Charbonneau Wells c4527cbced Add docker-compose.yml (WIP). 2017-11-24 09:09:43 -05:00
Christopher Charbonneau Wells 353e226773 Add manual deployment documentation. 2017-11-20 15:38:55 -05:00
Isaac Bythewood a503d346ae Make ALLOW_UPLOADS a setting dependent on user preference and platform 2017-11-18 20:59:51 -05:00