Skip to content
Discussion options

You must be logged in to vote

I wouldn't add it to your models module because django will probably throw a fit. It can't run that line before reading/registering all models, so by adding it to the init, you create a circular import.

But you can try adding from simmate.database import connect to the __init__.py of your workflows module. If you add that, you might have to set the __all__ parameter too (see here in the docs).

But yeah, this is kind of a hacky fix. Let me know if it works, but I still might go through and find where your imports are broken

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@SWeav02
Comment options

@jacksund
Comment options

@SWeav02
Comment options

@jacksund
Comment options

Answer selected by jacksund
@SWeav02
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants