django.core.exceptions.AppRegistryNotReady: The translation infrastruct

Django 185 views Markdown

Django projesi oluştururken aşağıdaki hatayı alıyorsanız muhtemelen eski projenizdeki settings.py dosyanızı kopyaladınız ve içerisinde translate kullanmak istediğiniz terimler var ve henüz translate için gerekli klasör ve dosyaları oluşturmanız. 

 

Önce projenizi oluşturabilmek için settings.py translate edilecek satırları durdurun. Daha sonra migrate, makemigrations vs. komutunuzu çalıştırın ve satırları tekrar aktif edin.

 

django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.
 
Was this helpful?

Thanks for your feedback!

Still Need Help?

The support team is here around the clock for anything you can't find in the knowledge base.