Alexis Métaireau
aff0181636
[style] Format the code
2023-11-24 23:31:18 +01:00
David Larlet
af3518ad08
Apply Black to settings files
2023-09-26 09:40:41 -04:00
David Larlet
27e8fd0cac
Merge pull request #1324 from openbrian/add-username-to-features
...
Add username to features
2023-09-25 11:08:32 -04:00
Brian DeRocher
6720f76d85
Set the map option. No need for setting boolean from query string.
...
Only add the owner property if the feature flag (map.options.featuresHaveOwner) is enabled.
Default to features do NOT have owners.
2023-09-20 13:16:52 -04:00
Brian DeRocher
e25fb5d04f
Add FeaturesHaveOwners map option.
...
WIP
2023-09-20 12:48:32 -04:00
Brian DeRocher
204db34282
Replace bash based waiting with python based django-probes.
2023-09-20 09:45:26 -04:00
Brice Maron
cd29486b84
fix: correct changelog link
2023-08-23 08:31:15 +02:00
Yohan Boniface
15e9cf0b5f
Protect back username field from being modified by social auth login
2023-08-21 17:05:01 +02:00
Yohan Boniface
2b471be171
Very lite "My Profile" page to allow changing username
2023-08-21 15:09:30 +02:00
Yohan Boniface
0c3dc02fc1
Allow to configure default share and edit status
...
fix #1244
2023-08-07 08:16:49 +02:00
Yohan Boniface
6abc088121
i18n
2023-07-17 16:16:08 +02:00
Yohan Boniface
c1f8684a29
Replace si_LK by si
2023-07-17 16:00:55 +02:00
David Larlet
a87309cee6
Add a setting for the number of maps per search
...
Useful for https://github.com/umap-project/umap-dsfr
2023-06-27 18:41:00 -04:00
Yohan Boniface
81fcc080d9
Allow to customize user display name and URL slug
2023-06-16 14:59:59 +02:00
Yohan Boniface
453a7b5616
Remove unused settings from social auth
...
I cannot find any reference of those settings while looking
at social-core code.
2023-06-16 14:52:12 +02:00
David Larlet
bb8d233411
Remove DIRS
from settings.TEMPLATES
...
It’s more convenient to let the sub-themes declare their own templates (especially with `'APP_DIRS': True`).
2023-06-14 21:15:37 -04:00
Yohan Boniface
4b502e9857
Merge branch 'docker'
2023-06-05 17:00:46 +02:00
Yohan Boniface
faebeebbdf
INTERNAL_IPS should default to a list
2023-06-05 15:08:19 +02:00
Yohan Boniface
00f34c45ba
Handle OpenStreetMap OAuth by default
2023-06-05 14:48:55 +02:00
Yohan Boniface
5e201b44fb
Use django-environ to make part of the settings available throught env vars
2023-06-05 11:48:21 +02:00
Yohan Boniface
e0760ca403
Only ask to send edit link if email has been set up
2023-05-31 17:20:22 +02:00
Yohan Boniface
8f52d34bb2
WIP: final bit to make sending edit link working
2023-05-31 17:05:57 +02:00
Yohan Boniface
a462a58ae0
Remove SOCIAL_AUTH_PIPELINE from settings/base.py
...
We are using the default, so not need to define them on our
side.
2023-05-30 08:42:23 +02:00
Yohan Boniface
9ca5ba974b
Auth: mark id as protected, otherwise social-core try to create
...
new account at each login:
```
File "/srv/umap/venv/lib/python3.10/site-packages/social_core/backends/base.py", line 83, in pipeline
out = self.run_pipeline(pipeline, pipeline_index, *args, **kwargs)
File "/srv/umap/venv/lib/python3.10/site-packages/social_core/backends/base.py", line 113, in run_pipeline
result = func(*args, **out) or {}
File "/srv/umap/venv/lib/python3.10/site-packages/social_core/pipeline/user.py", line 122, in user_details
strategy.storage.user.changed(user)
File "/srv/umap/venv/lib/python3.10/site-packages/social_django/storage.py", line 16, in changed
user.save()
django.db.utils.IntegrityError: duplicate key value violates unique constraint "auth_user_username_key"
DETAIL: Key (username)=(xxxxx) already exists.
```
2023-05-30 08:42:23 +02:00
Yohan Boniface
1038836a72
Use Django full text instead of custom SQL
2023-05-11 11:33:08 +02:00
Yohan Boniface
edc97f4cc7
Initialize STATICFILES_DIRS
...
fix #1060
2023-04-04 09:11:12 +02:00
Yohan Boniface
5b7f08ed08
Refactor gzip creation
2023-02-27 12:04:09 +01:00
Yohan Boniface
2fc30b117b
Prepare for Django 4.x
2023-02-22 15:19:38 +01:00
Yohan Boniface
bd1dd4e233
i18n
2023-02-22 10:23:03 +01:00
Yohan Boniface
91cfc39cb6
Make Django with DEFAULT_AUTO_FIELD setting
2021-09-16 12:15:18 +02:00
Yohan Boniface
1200b82838
First attempt to upgrade to Django 3.X
...
Bloqued by https://github.com/peopledoc/django-agnocomplete/issues/119
2021-05-17 10:51:24 +02:00
Yohan Boniface
3927a845a4
Control search API URL from uMap config
...
cf #842
2020-11-08 15:10:13 +01:00
Yohan Boniface
7f0454fce0
Use new settings of social-auth
...
cf #754
2020-03-22 18:00:47 +01:00
Yohan Boniface
8b65a12383
i18n: add "sv" (Swedish)
2020-03-09 17:25:45 +01:00
Yohan Boniface
03cc738056
i18n: Add "et" (Estonian)
2020-03-09 17:24:07 +01:00
Yohan Boniface
be809acbc6
i18n: add "no"
2020-03-09 17:19:16 +01:00
Yohan Boniface
401cb6db6e
Merge pull request #761 from umap-project/si-lk
...
Add "si" to LANG_INFO
2020-03-09 17:16:08 +01:00
Yohan Boniface
4000da1d41
Merge pull request #754 from Binnette/sync-username-on-connect
...
Update username with value from OAuth provider
2020-03-09 17:06:00 +01:00
Yohan Boniface
4a43b870c1
Add "si" to LANG_INFO
...
cf https://github.com/django/django/blob/master/django/conf/locale/__init__.py#L10
"get_language_info_list" would not run otherwise.
2020-03-09 16:22:51 +01:00
Binnette
d68c1c2553
Translation update
...
* Update all translations
* Add: ar, ast, he, id, is, pt-br, pt-pt, si-lk, sr, th-th, tr
* Remove: pt (replaced by pt-pt and pt-br)
2020-03-03 19:46:10 +01:00
Binnette
b0e06fccfe
add comment and change pipeline method name
2020-03-01 11:11:27 +01:00
Binnette
179e8c7e97
Update username with value from OAuth provider
2020-03-01 00:12:10 +01:00
Yohan Boniface
6236e37652
Add ko i18n
2019-05-11 11:32:33 +02:00
Yohan Boniface
8f775faf73
Bump django to 2.2
2019-04-07 11:39:03 +02:00
Yohan Boniface
f6b2469566
i18n
...
fix #665
2019-01-30 11:23:57 +01:00
Yohan Boniface
fb85a6c93c
i18n
2018-09-08 17:01:22 +02:00
Yohan Boniface
7941e8fa60
Add a readonly mode
...
Activable with UMAP_READONLY=True
2018-09-07 22:12:39 +02:00
Yohan Boniface
81f6b429bc
allow to cache proxied remote data requests
...
cf #513
cf #510
cf #160
2018-08-04 20:50:03 +02:00
Yohan Boniface
48185650b0
Move permissions form building to JS
2018-06-15 23:25:38 +02:00
Yohan Boniface
a7ec9b173d
Add a basic language switcher in the home footer
...
fix #74
2018-06-02 19:04:32 +02:00