Skip to content

Commit

Permalink
Merge pull request #1270 from chris34/django3
Browse files Browse the repository at this point in the history
WIP: Django3
  • Loading branch information
chris34 authored Oct 1, 2023
2 parents fca2161 + 5a98c80 commit 722cacb
Show file tree
Hide file tree
Showing 106 changed files with 1,458 additions and 1,102 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ jobs:
python manage.py makemigrations --check --dry-run --settings tests.settings.${{ matrix.database }}
- name: Run Tests
env:
PYTHONWARNINGS: 'always'
run: |
. ~/venv/bin/activate
coverage run manage.py test --settings tests.settings.${{ matrix.database }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
!.coveragerc
!.tx/config

build/
*.egg-info

*_settings.py
*.py[co]
inyoka.xapdb/
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'django': ('https://docs.djangoproject.com/en/2.2',
'https://docs.djangoproject.com/en/2.2/_objects'),
'django': ('https://docs.djangoproject.com/en/3.2',
'https://docs.djangoproject.com/en/3.2/_objects'),
'python': ('https://docs.python.org/3', None),
'sphinx': ('https://www.sphinx-doc.org', None),
}
Expand Down
28 changes: 14 additions & 14 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Every configuration directive can be overridden by using a custom settings file
$ export DJANGO_SETTINGS_MODULE="settings"
Any settings variable that is shown in the `Django settings documentation
<https://docs.djangoproject.com/en/2.2/ref/settings/>`_ can be used.
<https://docs.djangoproject.com/en/3.2/ref/settings/>`_ can be used.

The development, test and production configuration files should start with::

Expand All @@ -45,7 +45,7 @@ Generics
}

The caches that will be used by Inyoka and Django. See
https://docs.djangoproject.com/en/2.2/ref/settings/#caches
https://docs.djangoproject.com/en/3.2/ref/settings/#caches

.. py:data:: DATABASES
Expand All @@ -59,21 +59,21 @@ Generics
}

Defines the available databases. See
https://docs.djangoproject.com/en/2.2/ref/settings/#databases
https://docs.djangoproject.com/en/3.2/ref/settings/#databases

.. py:data:: DEBUG
Defaults to: ``False``

Enable or disable debugging. See
https://docs.djangoproject.com/en/2.2/ref/settings/#DEBUG
https://docs.djangoproject.com/en/3.2/ref/settings/#DEBUG

.. py:data:: DEBUG_PROPAGATE_EXCEPTIONS
Defaults to: ``False``

Enable or disable Django to push exceptions to a higher level. See
https://docs.djangoproject.com/en/2.2/ref/settings/#debug-propagate-exceptions
https://docs.djangoproject.com/en/3.2/ref/settings/#debug-propagate-exceptions

.. py:data:: FILE_UPLOAD_HANDLERS
Expand All @@ -85,7 +85,7 @@ Generics

We only allow uploads via memory up to 2.5mb and do not stream into
temporary files. See
https://docs.djangoproject.com/en/2.2/ref/settings/#file-upload-handlers
https://docs.djangoproject.com/en/3.2/ref/settings/#file-upload-handlers


Installation settings
Expand Down Expand Up @@ -287,7 +287,7 @@ Paths and URLs
Defaults to: ``('~/inyoka/inyoka/locale',)``

See https://docs.djangoproject.com/en/2.2/ref/settings/#locale-paths
See https://docs.djangoproject.com/en/3.2/ref/settings/#locale-paths

.. seealso:: :py:data:`BASE_PATH`

Expand All @@ -296,15 +296,15 @@ Paths and URLs
Defaults to: ``'~/inyoka/inyoka/media'``

Absolute path to the directory that holds media and the URL. See
https://docs.djangoproject.com/en/2.2/ref/settings/#media-root
https://docs.djangoproject.com/en/3.2/ref/settings/#media-root

.. seealso:: :py:data:`BASE_PATH`

.. py:data:: MEDIA_URL
Defaults to: ``'http://media.example.com'``

See https://docs.djangoproject.com/en/2.2/ref/settings/#media-url
See https://docs.djangoproject.com/en/3.2/ref/settings/#media-url

.. seealso:: :py:data:`BASE_DOMAIN_NAME`

Expand All @@ -319,30 +319,30 @@ Paths and URLs
Defaults to: ``'inyoka.portal.urls'``

This URL conf is used for contrib stuff like the auth system. See
https://docs.djangoproject.com/en/2.2/ref/settings/#root-urlconf
https://docs.djangoproject.com/en/3.2/ref/settings/#root-urlconf

.. py:data:: SESSION_COOKIE_DOMAIN
Defaults to: ``'.example.com'``

See
https://docs.djangoproject.com/en/2.2/ref/settings/#session-cookie-domain
https://docs.djangoproject.com/en/3.2/ref/settings/#session-cookie-domain

.. seealso:: :py:data:`BASE_DOMAIN_NAME`

.. py:data:: STATIC_ROOT
Defaults to: ``'~/inyoka/inyoka/static-collected'``

See https://docs.djangoproject.com/en/2.2/ref/settings/#static-root
See https://docs.djangoproject.com/en/3.2/ref/settings/#static-root

.. seealso:: :py:data:`BASE_PATH`

.. py:data:: STATIC_URL
Defaults to: ``'http://static.example.com'``

See https://docs.djangoproject.com/en/2.2/ref/settings/#static-url
See https://docs.djangoproject.com/en/3.2/ref/settings/#static-url

.. seealso:: :py:data:`BASE_DOMAIN_NAME`

Expand All @@ -354,7 +354,7 @@ Security
Defaults to: ``None``

Make this unique, and don't share it with anybody. See
https://docs.djangoproject.com/en/2.2/ref/settings/#secret-key
https://docs.djangoproject.com/en/3.2/ref/settings/#secret-key

..
.. py:data:: INTERNAL_IPS
Expand Down
2 changes: 1 addition & 1 deletion example_development_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'ubuntuusers',
'USER': 'root',
'PASSWORD': '',
Expand Down
2 changes: 2 additions & 0 deletions extra/babel.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[django: **/templates/**.html]
[python: **.py]
[jinja2: **.html]
fail_silently = False
Expand All @@ -9,3 +10,4 @@ encoding = utf-8

[extractors]
jinja2 = jinja2.ext:babel_extract
django = inyoka.locale.babel_django_templates:extract_django
Loading

0 comments on commit 722cacb

Please sign in to comment.