I'm fairly new to Mezzanine and Django and I'm having trouble with moving 
my old layout to the new layout. I'm following this blog post that was 
linked to here earlier, 
http://bitofpixels.com/blog/upgrading-to-mezzanine-4/. I usually have all 
my python code in python packages so I originally had my mezzanine project 
in a python package that I could install...even if it was from a git clone.

My old layout:

my_proj_pkg_dir
setup.py
my_proj
__init__.py
settings.py
field_experiments  # custom django app
urls.py
wsgi.py
manage.py
...

My new layout that I'm trying to do:

my_proj_pkg_dir
setup.py
my_proj
__init__.py
my_proj # mezz project app
field_experiments # custom django app
manage.py
...

>From what I understand django now loads things from the "project app" 
instead of from the directory so since I have the "my_proj" package I made 
it conflicts with the "my_proj" project application. So I get errors when 
it accesses the models like:

RuntimeError: Conflicting 'experiment' models in application 
'field_experiments': <class 'my_proj.field_experiments.models.Experiment'> 
and <class 'field_experiments.models.Experiment'>.

So I think my options are to either move the field_experiments app outside 
of the project dir and make it its own package or stop making/installing 
the my_proj package. If someone could provide me with some guidance it 
would be much appreciated. Thanks in advance.

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

Reply via email to