Daniel Hahler
fbb0ff8884
Fix compatibility with Django 2.1
...
Ref: https://github.com/django/django/pull/9894
Closes: https://github.com/jazzband/django-configurations/pull/201
2018-08-02 20:32:40 +02:00
Mike
1c6fd0f505
Add PositiveIntegerValue to only allow positive integers ( #186 )
2018-03-15 13:19:50 +01:00
Nicolas Delaby
8f318991c2
Drop unmaintained version of django and python
...
- Drop django==1.9 as it reached end of life
- Drop python2.6, python3.3, and bring python3.6
- Bring django-2.0 in the matrix as expected failure until we add its
support
2017-09-30 14:37:38 +02:00
José Antonio Perdiguero
a606003c77
Fix truthy and falsey of values ( #162 )
2016-10-13 00:00:47 +02:00
Jannis Leidel
ea8d4deb58
Merge pull request #156 from adamchainz/readthedocs.io
...
Convert readthedocs links for their .org -> .io migration for hosted projects
2016-07-30 02:11:24 +02:00
Jannis Leidel
eb0cde231b
Update changelog.
2016-07-30 00:03:19 +02:00
Jannis Leidel
5dba80b313
Finally remove configurations.Settings.
2016-07-30 00:00:47 +02:00
Johannes Hoppe
9592356572
Move sphinx callback to a separate sphinx submodule
2016-06-13 12:26:52 +02:00
Adam Chainz
4158480c91
Convert readthedocs links for their .org -> .io migration for hosted projects
...
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/ ) ‘Securing subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
Test Plan: Manually visited all the links I’ve modified.
2016-06-11 10:56:42 +01:00
Johannes Hoppe
cd596f6788
Fixes #146 -- Adds multiprocessing support for sphinx
2016-04-05 18:14:20 +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
Nicolas Delaby
cf3961ea1d
Bump upcoming version to 2.0 as this changeset introduce breaking change
2016-01-27 21:08:54 +01:00
Nicolas Delaby
063bf61a16
Drop support of python 2.6, 3.2 and Django < 1.8
2016-01-27 21:08:54 +01:00
Nicolas Delaby
4615e1e8fb
Bump version to 1.0.1.dev
...
The version pattern follows the recommendation described in PEP 440.
https://www.python.org/dev/peps/pep-0440/#development-release-separators
Closes https://github.com/jazzband/django-configurations/pull/139 .
2016-01-07 12:28:05 +01:00
Nicolas Delaby
261817d965
Prepare next release 1.0
2016-01-04 14:24:50 +01:00
John R Dietrick
cd0f1b4d0c
Fix handling of fallback to optparse.OptionParser
...
By the time the code here runs, it's too late to be modifying
base.BaseCommand.option_list; in fact doing so causes an OptionConflictError if
you later call another management command "recursively" while you're running
the first one.
We want to leave BaseCommand's option_list untouched (it's `()` by default in
Django 1.8+) in case the command we are wrapping has already upgraded to
argparse. BUT, if it hasn't, we'll get an OptionParser back, and can tack our
argument on at the last minute.
2015-12-19 18:25:53 +08:00
Jannis Leidel
010067b433
Introduced environ_required parameter for Value class. Refs #118 .
2015-08-09 14:54:55 +02:00
Jannis Leidel
8ba1804ff2
Added full_environ_name method to Value class.
2015-08-09 14:48:16 +02:00
Jannis Leidel
5ece107044
Only run __init__ in __new__ when late binding is enabled.
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-03-16 21:19:40 +01:00
Miguel Araujo Perez
e09e1e0f42
Added equal operator to values.Value
...
Allows value setting to work when checking if setting variable is within
a list, i.e: settings.database in ['default', 'other']
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-03-16 20:54:17 +01:00
Jannis Leidel
c60b7daac4
Fixed SequenceValue to work on Python 3.x.
2015-02-13 22:29:14 +01:00
Jannis Leidel
4d35ad346c
Call django.setup() for Sphinx, too.
...
This also adds a configurations.setup() analogue to django.setup().
2015-02-13 22:18:33 +01:00
Jannis Leidel
b91ebf083f
Merge pull request #91 from benjaminabel/notebook-support-for-django17
...
Add `django.setup()` in `load_ipython_extension` function for django>=1....
2015-02-13 22:08:56 +01:00
Jannis Leidel
8f617ad98c
Merge pull request #85 from abbottc/master
...
Add values.TupleOfTuplesValue (plus associated tests and docs)
2015-02-13 22:08:08 +01:00
Jannis Leidel
6ce3740365
Cover the case in which BaseCommand.create_parser retursn optparse.OptionParser.
2015-02-13 21:52:47 +01:00
Jannis Leidel
f35e7e57e0
Add global --configuration option in Django >= 1.8.
2015-02-13 21:47:08 +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
Jannis Leidel
e0e12b1b9f
Fixed minor flake8 error.
2015-02-13 16:21:17 +01:00
Benjamin ABEL
546f488197
Add django.setup() in load_ipython_extension function for django>=1.7 compatibility
2015-02-01 16:47:37 +01:00
Benjamin ABEL
ae767eaf2d
Cleaned importer to be more DRY
2015-01-27 22:36:59 +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
Christian Abbott
8287ab6f7f
Merge remote-tracking branch 'upstream/master'
2015-01-07 03:19:24 -08:00
Christian Abbott
e0a68fdbb6
Rename TupleOfTupleValue to SingleNestedTupleValue; Add SingleNestedListValue and do a DRY refactor of ListValue, TupleValue, and their SingleNested subclasses
2015-01-07 03:08:30 -08:00
Jannis Leidel
f2a46fb009
Merge remote-tracking branch 'nagyv/patch-1'
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-01-07 00:05:27 +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
01e3f5837f
Merge remote-tracking branch 'joke2k/dot-env'
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
Conflicts:
.gitignore
2015-01-06 22:34:29 +01:00
Jannis Leidel
ebc0c51dd8
Merge branch 'master' of github.com:jezdez/django-configurations
2015-01-06 21:38:20 +01:00
Jannis Leidel
98de57b27e
Added configurations.management.call_command. Fix #72 .
2015-01-06 21:38:08 +01:00
Jannis Leidel
cb9f7c36fb
Merge pull request #83 from mauricioabreu/master
...
Fixed wrong behaviour when assigning BooleanValue
2015-01-06 21:23:37 +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
Mauricio de Abreu Antunes
3f892f9814
Fixed wrong behaviour when assigning BooleanValue
...
When assigning False to a BooleanValue and reusing it was raising a
ValueError exception because BooleanValue was evaluating False as None.
Thanks to @abbottc for catching this error.
2014-12-27 10:34:40 -02:00
Christian Abbott
c4ba5ca559
Add TupleOfTuplesValue along with associated tests and updated documentation
2014-12-18 07:15:20 -08:00
Jannis Leidel
fb9275744e
Merge pull request #78 from slafs/validationmixinfix
...
fix ValidationMixin instantiation with no default
2014-12-12 16:28:58 +01:00
Sławek Ehlert
8d366fca44
fix ValidationMixin instantiation with no default
...
with tests. fixes #69
2014-10-30 23:44:48 +01:00
He Weiwei
f8ebb564da
fix bug of setup_value func for EmailURLValue
2014-10-08 12:19:35 +08:00
Sven Aßmann
4018f7b42a
- add late_binding to value with default False
...
- this enables a value to load from environment if the env variable name is given at construction time
- cache value of environment value now in property value
- add __new__ to allow a construction of a given type from environment directly. In this case now Value instance is constructed but an instance of the desired type that is covered by the Value implementation. For Value it is str, for DictValue it is dict etc.
- extend tests for this new behavior
- extend test coverage for some other places
2014-05-02 22:51:48 +02:00
joke2k
27eb748d68
refactoring of DotConfiguration
2014-04-17 18:07:33 +02:00
joke2k
5279ae4ace
add support to load .env file into os.environ
2014-04-17 16:23:36 +02:00
Dmitry Kozhedubov
e33eeeb871
Ability to pass keyword args to CastingMixin casters
2014-03-02 13:31:42 +04:00