Two things (not exhaustive) come to mind that could cause this:
- Your app is higher in the INSTALLED_APPS order than cartridge so your models.py gets loaded before cartridge's. - You're importing (perhaps indirectly) your models.py from your __init__.py. Models cannot be imported at init-time. On Tue, Jun 14, 2016 at 5:36 AM, Tran <[email protected]> wrote: > > Hello, > > I encountered the error* AppRegistryNotReady("Models aren't loaded yet.")* > whenever I added * "from cartridge.shop.forms import AddProductForm"* > into my apps_name/models.py to monkey patch some functions in the source > code. I did look up online and it seemed people got this error all have > django 1.8 or higher. Has anyone encountered this and might have an idea > how to fix it? > > A temporarily fix I found is to move all monkey patch from > app_name/models.py to the shop source code page_processors.py. > This is the tutorial I followed (the author used the old django version > http://bitofpixels.com/blog/collecting-additional-information-on-a-per-product-basis-in-cartridge/ > ) > > I don't want to modify/add any source code because they are ignored by > git. Any ideas are appreciated! > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
