question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility issue django-parler with django-solo

See original GitHub issue

Just 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sunjoomooncommented, Mar 31, 2016

Figured out why… it was because of cache by django-solo. After disabling solo cache, all work fine. Sorry for the trouble.

0reactions
sunjoomooncommented, Mar 31, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found