Comments (3)
Good to know. After looking into this further this morning, I found the problem. It turns out the problem in my case had nothing to do with the settings themselves, old or new. I needed to have my app listed before django.contrib.admin in the application loading order. Otherwise it found the original template first and ignored mine. From the django 1.7 documentation here:
The order of INSTALLED_APPS is significant! For example, if you want to customize the Django admin, you might choose to override the standard admin/base_site.html template, from django.contrib.admin, with your own admin/base_site.html in myproject.polls. You must then make sure that your myproject.polls comes before django.contrib.admin in INSTALLED_APPS, otherwise django.contrib.adminโs will be loaded first and yours will be ignored.
from wq.db.
We haven't fully updated wq.db's template engine to work with the new Django 1.8 template infrastructure. The main holdup is the need to be backwards-compatible with Django 1.7. Once Django 1.9 comes out (this fall) we will drop 1.7 support, create a proper BACKEND
, and and this will be a lot simpler.
In the meantime, you could try one of the following workarounds:
- Use Django 1.7-style settings to configure the alternate template loaders. Django 1.8 should be able to pick them up and use them, though it will be a little harder to make it clear which templates are Mustache and which are Jinja.
- Run a separate Django WSGI instance for the admin.
- Create a Django 1.8-compatible Mustache template loader as a separate package (which we might do anyway). Django-Pystache already exists but it's a bit outdated.
from wq.db.
I did however, put my settings back like they were:
Like this:
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'templates'),
)
instead of:
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'templates'),
os.path.join(BASE_DIR, 'db/myapp/templates'),
)
...as the application directory gets read without explicitly calling it (as in the second case above, which actually causes my template to be read using pystaches render which was not the desired result).
from wq.db.
Related Issues (20)
- add_lookups: only pull in id and label for related items HOT 1
- alternative for method overridding
- "This field may not be null." for models.CharField declared with blank=True HOT 2
- no user profile information available in login.json HOT 2
- don't assume nested serializers always have get_wq_config
- server equivalent of wq/app.js _default_attachments
- list_exclude causes fields to not show up in config HOT 6
- update python-social-auth
- default_attachments not passing query string parameters to get_lookup_choices
- Handling of context misses for type filters HOT 4
- BooleanField and NullBooleanField treated as type=string with dump_config HOT 2
- wq.db.rest.serializers.ModelSerializer's context contains no request HOT 4
- Django 2 support
- Django REST framework requires details field HOT 1
- result_inline.html character encoding issue HOT 2
- DRF 3.10 breaking change HOT 1
- Custom OAuth authentication
- Issue in SPATIALITE_LIBRARY_PATH for Windows os HOT 1
- STATIC Contents are loading HOT 1
- Django 3.1 compatibility HOT 5
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 wq.db.