Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circular import, can you fix it? #3

Closed
oaulakh opened this issue Mar 17, 2016 · 1 comment
Closed

circular import, can you fix it? #3

oaulakh opened this issue Mar 17, 2016 · 1 comment
Milestone

Comments

@oaulakh
Copy link

oaulakh commented Mar 17, 2016

https://dpaste.de/6DM3

(shop) E:\test\theme2>python manage.py makemigrations
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "C:\Users\Sony\Envs\shop\lib\site-packages\django\core\management__init_
.py", line 353, in execute_from_command_line
utility.execute()
File "C:\Users\Sony\Envs\shop\lib\site-packages\django\core\management__init

.py", line 327, in execute
django.setup()
File "C:\Users\Sony\Envs\shop\lib\site-packages\django__init
_.py", line 18,
in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\Sony\Envs\shop\lib\site-packages\django\apps\registry.py", line
85, in populate
app_config = AppConfig.create(entry)
File "C:\Users\Sony\Envs\shop\lib\site-packages\django\apps\config.py", line 9
0, in create
module = import_module(entry)
File "c:\python27\Lib\importlib__init__.py", line 37, in import_module
import(name)
File "C:\Users\Sony\Envs\shop\lib\site-packages\payu__init__.py", line 1, in

from gateway import *
File "C:\Users\Sony\Envs\shop\lib\site-packages\payu\gateway.py", line 1, in <
module>
from models import Transaction, CancelRefundCaptureRequests
File "C:\Users\Sony\Envs\shop\lib\site-packages\payu\models.py", line 6, in
class Transaction(models.Model):
File "C:\Users\Sony\Envs\shop\lib\site-packages\django\db\models\base.py", lin
e 94, in new
app_config = apps.get_containing_app_config(module)
File "C:\Users\Sony\Envs\shop\lib\site-packages\django\apps\registry.py", line
239, in get_containing_app_config
self.check_apps_ready()
File "C:\Users\Sony\Envs\shop\lib\site-packages\django\apps\registry.py", line
124, in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

(shop) E:\test\theme2>

@shirishagaddi
Copy link
Contributor

Hi @oaulakh,
We are not getting any issue with Django < 1.9. I guess you might be using Django 1.9 and we are working to provide support for Django 1.9.

ashwin31 added a commit that referenced this issue Apr 2, 2016
#3 Issue with circular import is fixed
@ashwin31 ashwin31 added this to the 0.2 milestone Apr 2, 2016
@ashwin31 ashwin31 closed this as completed Apr 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants