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
Yohan Boniface
81919ce0f7
Add UMAP_CUSTOM_TEMPLATES and UMAP_CUSTOM_STATICS
2018-06-02 17:20:44 +02:00
Yohan Boniface
cc1a4f93dc
Add hr (Croatian) locale
2018-06-02 16:53:13 +02:00
Yohan Boniface
9083e3a437
Add pl (Polish) locale
2018-06-02 16:51:04 +02:00
Yohan Boniface
2f00da60d5
Add hu (Hungarian) locale
2018-06-02 16:48:17 +02:00
Yohan Boniface
2f9a62ad7f
Add sl (Slovenian) locale
2018-06-02 16:41:45 +02:00
Yohan Boniface
0b91390e07
Add el (Greek) locale
2018-06-02 16:39:44 +02:00
Yohan Boniface
abd40fe178
Add gl (Galician) locale
2018-06-02 16:33:56 +02:00
Yohan Boniface
a0bff73401
Fix generate_js_locale paths
2018-06-02 14:44:01 +02:00
Yohan Boniface
62a825e6ed
Replace LEAFLET_STORAGE_XXX settings by UMAP_XXXX
...
We keep a retrocompatibility for now.
2018-05-19 17:16:34 +02:00
Yohan Boniface
1ef5e13f48
Remove duplicate short_url declarations
2018-05-19 12:01:53 +02:00
Yohan Boniface
cb470198e6
Merge leaflet_storage locales
2018-05-19 11:12:19 +02:00
Yohan Boniface
e55d03bd5e
Django 2.0
...
And update other deps
2018-05-19 10:05:18 +02:00
Yohan Boniface
0104337406
Add travis.yml
2017-05-12 10:42:02 +02:00
Harry Wood
37d0b3287c
fix feedback anchor link to wiki (httpS)
...
Swap this wiki link to httpS
The wiki is now on httpS and sadly the httpS redirect causes #anchor links to be lost
2017-01-10 15:57:21 +00:00
Yohan Boniface
f87fca3588
Bump to new social-auth
...
cf https://github.com/omab/python-social-auth/blob/master/MIGRATING_TO_SOCIAL.md
2017-01-09 10:13:21 +01:00
Yohan Boniface
d1af699ddb
Add sk_SK translation files
2016-11-06 22:52:33 +01:00
Yohan Boniface
07e6b62012
Ubuntu installation turorial draft
2016-09-10 16:21:09 +02:00
Yohan Boniface
a0bc6e7e3a
ENABLE_ACCOUNT_LOGIN=False by default
2016-09-09 21:00:32 +02:00
Yohan Boniface
5e35a9799b
No need for a specific context processor
2016-09-09 20:59:25 +02:00
Yohan Boniface
2437334940
Merge branch 'auth-login' of https://github.com/plepe/umap into plepe-auth-login
2016-09-09 20:55:16 +02:00
Yohan Boniface
e5e0ad8823
Add LEAFLET_STORAGE_KEEP_VERSIONS
2016-09-09 20:42:17 +02:00
Yohan Boniface
5822a3cfb6
Django 1.10: django.core.context_processors => django.template.context_processors
2016-08-20 12:04:08 +02:00
Yohan Boniface
da6cff729c
Allow to override site name in pages title
2016-06-30 14:41:10 +02:00