Hi everyone, I have this setting: INSTALLED_APPS = ( ... 'esticate.principal', 'esticate.creativos', 'esticate.productos', ... )
and when I add the line "from esticate.productos.models import Producto" in esticate.creativos.models.py I get this ImportError: ------------------------------------------------------------------------------------------------- Django version 1.0.2 final, using settings 'esticate.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Validating models... Unhandled exception in thread started by <function inner_run at 0x010A0D30> Traceback (most recent call last): File "C:\Python25\lib\site-packages\django\core\management\commands \runserver.py", line 48, in inner_run self.validate(display_num_errors=True) File "C:\Python25\lib\site-packages\django\core\management\base.py", line 246, in validate num_errors = get_validation_errors(s, app) File "C:\Python25\lib\site-packages\django\core\management \validation.py", line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "C:\Python25\lib\site-packages\django\db\models\loading.py", line 128, in get_app_errors self._populate() File "C:\Python25\lib\site-packages\django\db\models\loading.py", line 57, in _populate self.load_app(app_name, True) File "C:\Python25\lib\site-packages\django\db\models\loading.py", line 72, in load_app mod = __import__(app_name, {}, {}, ['models']) File "C:\wamp\www\esticate\..\esticate\principal\models.py", line 3, in <module> from esticate.productos.models import Producto File "C:\wamp\www\esticate\..\esticate\productos\models.py", line 1, in <module> from esticate.creativos.models import Creativo File "C:\wamp\www\esticate\..\esticate\creativos\models.py", line 3, in <module> from esticate.productos.models import Producto ImportError: cannot import name Producto ------------------------------------------------------------------------------------------------- but if I use "from esticate.productos.models import Producto " in esticate.principal.models.py : there is Not Error :s what is missing? ty. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---