Tomasz Kłoczko
6dc2340dfe
really drop support for python<=3.7
...
Filer all code over `pyupgrade --py38`.
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
2024-03-18 16:08:42 +00:00
Michael Käufl
9b9ff4c0a2
Deprecate utils.import_by_path in favor of django.utils.module_loading.import_string
2021-01-19 13:11:16 +06:00
Michael Käufl
6cb932e47f
Run pyupgrade on the code
...
But don't touch string formatting.
https://pypi.org/project/pyupgrade/
2021-01-19 13:11:16 +06:00
John Franey
41b905c92e
Update tested Python & Django versions
...
Replaces `django.utils.six` with `six` to support newer Django versions.
Updates Tox config to:
- remove unsupported Django versions
- add pypy3
- add Django 2.2
- update djmaster Python versions
2019-10-06 15:43:03 -04:00
Peter Bittner
79b92372f7
Remove deprecated import (gone in Django 1.9)
2018-12-10 00:16:51 +01:00
Daniel Hahler
9dcb47dc55
Fix utils.reraise for exceptions without args ( #210 )
...
This is the case for e.g. `bdb.BdbQuit`.
2018-08-30 21:15:31 +02:00
Maxime Rouyrre
aba5100e4f
Fixed RemovedInDjango19Warning
...
It's better to try the new import method first because in Django<1.9 the
old method is still available and will raise a RemovedInDjango19Warning
that we could have avoided.
2016-03-11 11:02:26 +01:00
Jannis Leidel
8be47c0813
Merge remote-tracking branch 'benjaminabel/master'
2015-02-13 18:12:56 +01:00
Jannis Leidel
21d1712143
Use importlib.import_module if needed.
2015-02-13 16:24:02 +01:00
Benjamin ABEL
d9b2815526
Use CommandParser instead of LaxOptionParser in django1.8
...
Added a django version check, and removed the `LaxOptionParser` import for django>=1.8 and used `CommandParser` instead as in Claude Paroz django [commit](8568638603 (diff-860fce37924469764af399caaa365e00R275) )
Reference: [#19973 (Management commands migration to argparse) –
Django](https://code.djangoproject.com/ticket/19973 )
2015-01-25 18:13:47 +01:00
Jannis Leidel
44476bdd1d
Merge remote-tracking branch 'hiisi13/master'
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-01-06 23:15:08 +01:00
Jannis Leidel
41dfcee46c
Backported LaxOptionParser from Django 1.7 to make it work on 1.8.
2015-01-06 21:16:14 +01:00
Jannis Leidel
3848e6b818
Drastically simplified exception messages in the importer.
...
Less eyebleed® included!
2013-09-06 22:41:14 +02:00
Jannis Leidel
1a54847375
Added a configuration values system.
...
This also adds some advanced features like a setup classmethod to the Configuration class.
Reorganized and extended the documentation.
2013-07-27 12:37:28 +02:00
Jannis Leidel
775e1b9225
Initial version.
2012-07-21 15:56:04 +02:00