Thursday, January 8, 2015

Re: porting to 1.7

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

On Wednesday, January 7, 2015 at 8:48:20 AM UTC-5, MikeKJ wrote:
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






--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/812a0049-120a-4235-ba5b-2e6328cf2725%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment