Skip to content

Commit

Permalink
Merge pull request #922 from kobotoolbox/django-4.2
Browse files Browse the repository at this point in the history
Upgrade to Django 4.2
  • Loading branch information
noliveleger committed Apr 24, 2024
2 parents ef010e7 + cec4da1 commit 33d4054
Show file tree
Hide file tree
Showing 32 changed files with 447 additions and 394 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.8', '3.10']
python-version: ['3.8', '3.10', '3.12']
services:
postgres:
image: postgis/postgis:14-3.2
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ instructions on how to install KoboToolbox.
To generate a locale from scratch (ex. Spanish)

``` sh
$ django-admin.py makemessages -l es -e py,html,email,txt ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin.py makemessages -d djangojs -l es && cd - ; done
$ django-admin makemessages -l es -e py,html,email,txt ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin makemessages -d djangojs -l es && cd - ; done
```

To update PO files

``` sh
$ django-admin.py makemessages -a ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin.py makemessages -d djangojs -a && cd - ; done
$ django-admin makemessages -a ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin makemessages -d djangojs -a && cd - ; done
```

To compile MO files and update live translations

``` sh
$ django-admin.py compilemessages ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin.py compilemessages && cd - ; done
$ django-admin compilemessages ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin compilemessages && cd - ; done
```
## Testing in KoboCAT

Expand Down
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def setup(request):
toggle_capturing(capture_manager, stop=False)
pytest.exit('User interrupted tests', pytest.ExitCode.INTERRUPTED)

if 'instances' in settings.MONGO_DB.collection_names():
if 'instances' in settings.MONGO_DB.list_collection_names():
response = stderr_prompt(
'\n\n'
'WARNING: the MongoDB collection {}.instances already exists!\n'
Expand Down
2 changes: 1 addition & 1 deletion dependencies/pip/dev_requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r requirements.in

ipdb
ipython
ipython==8.12.3 # Max supported version by Python 3.8
shell_command
sqlparse
pytest
Expand Down

0 comments on commit 33d4054

Please sign in to comment.