Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrades #64

Closed
wants to merge 51 commits into from
Closed

Upgrades #64

wants to merge 51 commits into from

Conversation

ilesoft
Copy link
Contributor

@ilesoft ilesoft commented Nov 25, 2024

Tässä on jo kasassa aika monta päivitystä. Näitä varmaan ryhmitellään jotenkin paremmin. Tämä PR on olemassa, jotta nähdään että testit toimii CI:ssäkin.

This will ease migration to Python 3.
Kipa is not ran as a script.
This removes rest of carriage returns from python and template files.

Also removes trailing spaces which weren't removed in
54c1c73 because of carriage
returns was not taken in account.
Also remove imports with *
__div__ doesn't exists in python 3.
To see more, read PEP 3120.
Using shorthand "__all__" is counted as
explicit here.

Remove unused inlineformset_factory and ModelForm.

These fixes are due to deprecation in Django 1.6
and future removal in Django 1.8.
This fix is due to future change in functionality in Django 1.8.
Remove souht as Django 1.7 has built-in migrations.
In Django 1.10, session verification will be enabled regardless
of whether or not SessionAuthenticationMiddleware is enabled.

This is made to silence deprecation warning.
 django.conf.urls.patterns is deprecated
 and will be removed in Django 2.0.
This set value tells to load templates from app's
subdirectory named "templates"
Add needed context processors.

Remove redeclaration of default template loaders.
on_delete will become a required argument in Django 2.0.
Error was:
Cannot override the namespace for a dynamic module that provides a namespace.
Old-style middleware using settings.MIDDLEWARE_CLASSES is deprecated.
SessionAuthenticationMiddlewar was removed as planned in commit
"Add django.contrib.auth.middleware.SessionAuthenticationMiddleware".
* Square brackets in character classes are escaped.
* Raw string is used for regexes.
* Square brackets not escaped when not a part of character class.
* Match parenthesis with character class
Also ifnotequal tag with if and "!="
Django's default automatic primary key is changed from
integer to 64 bit integer. Define that DEFAULT_AUTO_FIELD
so that old database doesn't cause warnings on startup.
This is the default, but it is going to change in
Django 5.0 to be enabled by default.
@ilesoft ilesoft changed the title Python 3.10 Upgrades Nov 26, 2024
@ilesoft ilesoft closed this Nov 26, 2024
@ilesoft ilesoft deleted the python3-10 branch November 26, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant