Comments (4)
👍
The specification lives at https://docs.djangoproject.com/en/1.6/ref/settings/#template-loaders and the example above is described at https://docs.djangoproject.com/en/1.6/ref/templates/api/#django.template.loaders.cached.Loader
from django-confit.
See current implementation at
django-confit/django_confit/schemas/django.py
Lines 879 to 886 in b02fe8f
from django-confit.
Perhaps try to use the accept_scalar
option for colander.Sequence
.
If it does not work, let's check whether having a "String or Sequence" type is easy or hard. Where"String or Sequence" may look like TupleOrNone but may also be configured (something like OneOfTypes(Sequence(...), String(...))
?
Else fallback to a more flexible validation, even if it is "weak". I mean, at the moment with django-confit, making a valid schema pass is more important than making an invalid schema fail: the first goal is to support Django's settings. Later, we may setup smarter validators.
from django-confit.
accept_scalar
does not make the job :/ If I find something better or if I can implement the OneOfTypes way I'll try to make a PR. But List if a temporary good fix.
from django-confit.
Related Issues (20)
- Support Django versions from 1.5 to 1.5.8 and from 1.6 to 1.6.5 HOT 3
- Support django-pimpmytheme settings
- Tox runs sphinx builds using sphinx-build command HOT 1
- Add Celery settings
- Document confiture alternative
- Document confire alternative
- non-explicit install_requires in setup.py lies HOT 1
- Latest Sphinx deprecates "default" theme
- Upgrade Django support to versions 1.5.12 and 1.6.11
- Can't use django-confit with Django>=1.7, even if not using validation
- AttributeError: 'module' object has no attribute 'ADMIN_FOR'
- Support Django-1.8
- Support Django-1.9
- Drop support of Django-1.5 HOT 1
- Drop support of Django-1.6 HOT 1
- Drop support of Django-1.7 HOT 1
- Drop support of Python-3.3
- load_file("path/to/file.py") loads Python module
- Support Django 1.9.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-confit.