Closed AdamTheAnalyst closed 8 years ago
Hi @AdamTheAnalyst! I'll try to take a look at this soon, but in the meantime, depending on what you are trying to do, I would look at using https://github.com/EclecticIQ/OpenTAXII/ instead. It's more actively maintained, and more geared toward "production" use.
That said, if you figure out a bug, we're happy to accept pull requests! I've seen this error from Django before, and it's usually a pretty straightforward fix.
Turned out to be an easy fix 😀 . Thanks @AdamTheAnalyst !
i had the same problem. could you explain the sulution?
It's been a while since I had to look at this, but I think in newer versions of Django, the django.setup()
function needs to be explicitly called before trying to do anything with models (like saving data to the database).
@avi30155, what versions of Python and Django are you using? The output from pip list
will be helpful too. Thanks!
Hi. Thanks for your comment. This is the full error message: (ENV) C:\Python27\Scripts\ENV> c:\Users\operator\Desktop\YETI\yeti-2.0a5\manage.py syncdb Traceback (most recent call last): File "C:\Users\operator\Desktop\YETI\yeti-2.0a5\manage.py", line 5, in
Hi @avi30155. YETI was not designed to work with the latest versions of Django; YETI hasn't really been updated in a few years, so I'm not surprised there's a bug with the newest versons. I'm a bit surprised by that particular error, since manage.py
defines DJANGO_SETTINGS_MODULE
, but I tried to reproduce and was running into various other issues.
Make sure you're using the latest version of the master branch (not the 2.0a5 release tag). The django.setup()
call is already in yeti/__init__.py
. If you're still running into problems, please open a new issue, since I think what you're running into may be separate from this one.
Thanks a lot! i just got lower version of django, and it is resolve all errors.
2017-06-28 20:07 GMT+03:00 Greg Back notifications@github.com:
Hi @avi30155 https://github.com/avi30155. YETI was not designed to work with the latest versions of Django; YETI hasn't really been updated in a few years, so I'm not surprised there's a bug with the newest versons. I'm a bit surprised by that particular error, since manage.py defines DJANGO_SETTINGS_MODULE, but I tried to reproduce and was running into various other issues.
Make sure you're using the latest version of the master branch (not the 2.0a5 release tag). The django.setup() call is already in yeti/init.py. If you're still running into problems, please open a new issue, since I think what you're running into may be separate from this one.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TAXIIProject/yeti/issues/85#issuecomment-311725009, or mute the thread https://github.com/notifications/unsubscribe-auth/AcTjIsWL9xEGeNnGsGdXTrT8XBjdizj0ks5sIohCgaJpZM4Jqp5e .
Glad that helped!
When uncommenting:
In
Throws the following error:
Installed: