Commit Graph

48 Commits

Author SHA1 Message Date
Roland Geider
cbb78c1e5c Merge remote-tracking branch 'origin/master' into powersync 2026-05-18 16:54:49 +02:00
Roland Geider
a9d4b29a89 Read the PS_DATABASE_URI variable, if set 2026-05-18 15:04:33 +02:00
Roland Geider
af1aeee204 Move the email changing logic to allauth
This also takes care of having to deal with the data of two forms in the prefs

# Conflicts:
#	settings/settings_global.py

Fixes #2342
2026-05-18 10:58:45 +02:00
Roland Geider
42791ff9bd Update to django 6
We also needed to revert django-prometheus to 2.4.0 since 2.4.1 is not compatible with
django 6 anymore, and it seems there's some problems with the status of the package:
https://github.com/django-commons/django-prometheus/issues/494
2026-05-14 14:57:30 +02:00
Roland Geider
5e53249211 Merge remote-tracking branch 'origin/master' into powersync
# Conflicts:
#	CHANGELOG.md
#	uv.lock
#	wger/manager/models/log.py
#	wger/manager/models/session.py
2026-05-13 21:15:32 +02:00
Roland Geider
f3cdf9f61d Fix links to readthedocs 2026-05-13 19:51:23 +02:00
Github-actions
73841a181d Automatic linting 2026-05-08 13:21:35 +00:00
Roland Geider
a33f47a1a7 Refactor and improve jwt and regular api key handling 2026-05-08 15:21:19 +02:00
Roland Geider
dd4336f9c4 Improve test suite speed and remove unused code 2026-05-06 10:37:35 +02:00
Roland Geider
f1950c5345 Simplify the powersync handlers by registering the individual ones 2026-05-02 19:04:36 +02:00
Roland Geider
72abb103b4 Set default URL for SYNC_INGREDIENTS_DUMP_URL in settings
This is more robust since currently the sync URL is made from a local setting
which can be changed (this is a todo for another day)
2026-04-28 17:20:48 +02:00
Roland Geider
00eb981945 Add throttling for ingredient endpoints to protect against high load 2026-04-28 11:59:18 +02:00
Roland Geider
86f5ce62d5 Remove the django-compressor options
This library is not used anymore
2026-04-27 12:09:55 +02:00
Roland Geider
72a19a13c3 Fix tests 2026-04-22 14:34:38 +02:00
Roland Geider
3ec321c34d Add new POWERSYNC_URL_PATH config option
This will be the default for mostly everyone since the powersync service
will be behind a reverse proxy. For other settings (or during development)
POWERSYNC_URL is still available.
2026-04-22 12:38:01 +02:00
Roland Geider
50682d0b7e Add check for default powersync keys 2026-04-21 13:17:26 +02:00
Roland Geider
d06180e4f4 Properly register postgres-specific behaviour
Fixes #2304
2026-04-20 11:49:12 +02:00
Roland Geider
13d2688fc6 Simplify generation of JWT keys for powersync 2026-04-20 11:34:36 +02:00
Roland Geider
e76e0784ed Merge branch 'master' into powersync
# Conflicts:
#	CHANGELOG.md
#	pyproject.toml
#	settings/main.py
#	uv.lock
#	wger/manager/models/log.py
2026-04-16 13:03:29 +02:00
Roland Geider
b6b9914beb Cleanup the ci settings 2026-04-13 13:04:13 +02:00
Roland Geider
cfba264a2b Watch for default keys
To prevent local instances using default keys in production, server running
with these will warn and generate random ones
2026-04-11 16:31:59 +02:00
Roland Geider
a5c64a0749 Allow configuring the ingredient dump URL 2026-04-11 00:06:40 +02:00
Roland Geider
e2e257dc24 Add tasks to periodically generate the ingredient export 2026-04-10 21:28:07 +02:00
Roland Geider
80cd7d2139 Merge pull request #2260 from pankaj-basnet/feature/2258-migrate-to-django-allauth
Feat: Replace django-email-verification with django-allauth (#2258)
2026-03-29 15:57:45 +02:00
Roland Geider
821a2f4ae6 Use correct setting name 2026-03-28 23:40:21 +01:00
Roland Geider
ccef34409b Remove the django-email-verification dependency 2026-03-28 17:20:37 +01:00
Roland Geider
e950f3b572 For completeness, add STORAGES key to settings_global.py 2026-03-28 16:44:27 +01:00
Roland Geider
4873f939c0 Add account adapter
This allows us to pass the expiration time for the verification emails
2026-03-28 14:14:55 +01:00
Roland Geider
6b42408711 Allow configuring the S3 buckets for static files as well 2026-03-26 19:55:30 +01:00
Roland Geider
2831255f2c Don't hard code the AWS_S3_CUSTOM_DOMAIN option 2026-03-24 14:06:51 +01:00
Github-actions
79771797cf Automatic linting 2026-03-23 19:50:42 +00:00
Roland Geider
40ca8a0dee Improve handling of deleted or uploaded media files
Simply calling .delete() takes care of deletion of entries in the local filesystem
of uploaded to some cloud storage if that option is used. Also, move the S3 options
from global settings so they can be used with the docker setup.
2026-03-23 20:23:36 +01:00
pankaj-basnet
bc8740e9b7 integrate allauth add_email and verification into user preferences (#2258) 2026-03-23 16:26:51 +05:45
pankaj-basnet
d18a20908d remove django-email-verification package code (github issue=2258) 2026-03-22 01:11:37 +05:45
Roland Geider
aad65d6d81 Add powersync url to settings file 2026-03-13 14:55:20 +01:00
Roland Geider
4441c667d1 Merge branch 'master' into powersync
# Conflicts:
#	extras/docker/production/settings.py
#	pyproject.toml
#	uv.lock
#	wger/weight/models.py
2026-03-12 13:43:38 +01:00
Roland Geider
ce11ab08cc Add configurable captcha score and set widget actions 2026-02-25 11:49:00 +01:00
Roland Geider
ef74611653 Fix formatting 2026-02-24 20:00:53 +01:00
Github-actions
57e6923f2c Automatic linting 2026-01-18 12:06:40 +00:00
Roland Geider
c5281d2665 Formatting 2026-01-18 12:27:22 +01:00
Github-actions
bc061acfdc Automatic linting 2026-01-18 11:22:18 +00:00
Roland Geider
c673caba7f Merge branch 'master' into fork/justin-pinheiro/pr-trophies
# Conflicts:
#	settings/settings_global.py
2026-01-15 11:09:39 +01:00
Github-actions
ea626844af Automatic linting 2026-01-11 20:29:13 +00:00
Roland Geider
6405b10755 Remove django compressor
Our react components' main.js could not be added in the compression, so sometimes users
would get outdated files served. The LenientManifestStaticFilesStorage now makes sure
that the static files get a hash in the filename. Django compressor was removed since
most of the js and css files are already minified and modern http versions can handle
files better.
2026-01-11 17:42:44 +01:00
Github-actions
4f7e61f735 Automatic linting 2026-01-11 11:13:23 +00:00
Roland Geider
10bec7544c Cleanup 2026-01-09 19:55:56 +01:00
Roland Geider
b04e7b34cd Add django compressor's COMPRESS_OFFLINE option for offline compression 2026-01-09 13:41:38 +01:00
Roland Geider
a8ba6fe2d6 Refactor the way the settings are handled.
Instead of a "create-settings" command, which didn't contain all the options
and was a bit awkward, we now have specific settings used for different things.
2025-12-28 21:32:44 +01:00