Compatibility issue django-parler with django-solo
See original GitHub issueJust wondered what I missing from using both django-parler and django-solo. Below is returned.
settings does not have a translation for the current language!
settings ID #1, language=en (tried fallbacks en)
Attempted to read attribute title.
If work standalone - just parler or just solo, it works fine. Seems somehow translated field is not available from the doc line number 495 https://github.com/edoburu/django-parler/blob/master/parler/models.py
# None of the above, bail out!
raise meta.model.DoesNotExist(
"{0} does not have a translation for the current language!\n"
"{0} ID #{1}, language={2}{3}".format(self._meta.verbose_name, self.pk, language_code, fallback_msg or ''
))
Any clue as to what I should look into? I use django 1.8.11
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Django compatibility — django-parler 2.3 documentation
This package has been tested with: Django versions 2.2 up to 4.0; Python versions 3.6 and up. See the the tox.ini file for...
Read more >Awesome Django
A curated list of awesome Django apps, projects and resources. ... supported Django versions. django-compat-lint - Check Django compatibility of your code.
Read more >django-parler doesn't show tabs in admin - Stack Overflow
I'm using Django 1.9.10. I was using django-hvad but decided to try parler. I have tried the same exact code in a fresh...
Read more >README.md | searchcode
([Django 1.7 and up have an integrated migration system, based on but not compatible with South](https://docs.djangoproject.com/en/dev/topics/migrations/)) ...
Read more >Simple index - piwheels
... holodex hardlyjson adafruit-circuitpython-wsgi ftpackage ringo-tag mondriaan nctevn rqrcode pycsvy django-simple-error pyriksprot-tagger tle2czml modpy ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Figured out why… it was because of cache by
django-solo
. After disabling solo cache, all work fine. Sorry for the trouble.A little experience, one of those stupid things we often forget. Even 3 seconds cache will significantly reduce DB hits, so I decided to go for 3 seconds, LoL.