porting to 1.7

35 views
Skip to first unread message

MikeKJ

unread,
Jan 7, 2015, 8:48:20 AM1/7/15
to django...@googlegroups.com
I have hit a snag and reading the relevant ticket has left me none the wiser....

RuntimeError: Conflicting 'category' models in application 'smartpages': <class 'jadeempire.smartpages.models.Category'> and <class 'smartpages.models.Category'>.

this is the structure

jade - directories( apache2, bin, jadeempire, lib
jadeempire - directories(jadeempire) files(manage.py)
jadeempire - directories(various apps) files(__init__.py, cp.py, settings.py, urls.py, wsgi.py)

>>> import sys
>>> print(sys.path)
['/home/jones124/webapps/jade/jadeempire', '/home/jones124/webapps/jade/lib/python2.7/Django-1.7.1-py2.7.egg', '/home/jones124/webapps/jade/lib/python2.7', '/home/jones124/lib/python2.7', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages/PIL']

I kind of understand that that the model is being addressed twice and under 1.7 that is now forbidden but where and how I do not know, any help much appreciated






Collin Anderson

unread,
Jan 8, 2015, 2:37:18 PM1/8/15
to django...@googlegroups.com
Hi,

In your INSTALLED_APPS, be sure you have 'jadeempire.smartpages' instead of 'smartpages'.

Also, any time you refer to a view, or any other import, be sure to always use the "jadeempire" prefix.

Collin
Reply all
Reply to author
Forward
0 new messages