[mezzanine-users] Adding a third-party app to a multilingual site using modeltranslations

2015-06-12 Thread Lee H.
*Background*

I created a multilingual site theme for mezzanine using the new 
multi-lingual support.
I had to do two things:

1) Add translations.py file to the theme app, which defined translations 
for my custom page models that subclass Mezzanine pages.

2) Split my theme app into two apps: fronttheme (with templates/, static/ 
and to go high up in the INSTALLED_APPS), and backtheme with the rest, as 
per the note from multi-lingual-sites.rst 
https://github.com/stephenmcd/mezzanine/blob/master/docs/multi-lingual-sites.rst
 

*If your app defines both models that need to be translated and static 
content or templates that override default ones from Mezzanine, you'll need 
to split your app to distinguish between presentation and content. This is 
due to conflicting ideas with translated model inheritance, and template or 
static file overriding, in regard to the order of INSTALLED_APPS.*


*The problem*

 All well and good, but now I want to add a third-party add (specifically 
django-newsletter to allow users to sign up to a newsletter. I've used this 
in Mezzanine previously with no issues). If I just install the app, and add 
it to INSTALLED_APPS I get the error

django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.


Does anyone know how I can use a third-party app like this whilst using the 
newer version of Mezzanine with translations?

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Adding a third-party app to a multilingual site using modeltranslations

2015-06-12 Thread Eduardo Rivas
Hey Lee.

Their Readme says it's compatible up to Django 1.5. You're using 1.8 or
1.7. Could you verify against a vanilla Django project to see if you get
the same error?

https://github.com/dokterbob/django-newsletter/blob/master/README.rst#compatibility

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Adding a third-party app to a multilingual site using modeltranslations

2015-06-12 Thread Lee H.
Hey Eduardo,

Many thanks for the reply. Yes, you are right, using the django-newsletter 
development branch from github (which has upgrades for the newer django 
migrations without south) things worked, and this error no longer occurred. 


  

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.