owocki / pytrader

cryptocurrency trading robot
MIT License
1.94k stars 429 forks source link

DJANGO_SETTINGS_MODULE needs to be set befire importing User #81

Closed blenessy closed 8 years ago

blenessy commented 8 years ago

Traceback (most recent call last): File "./create_admin.py", line 2, in from django.contrib.auth.models import User File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/init.py", line 7, in from django.middleware.csrf import rotate_token File "/usr/local/lib/python2.7/site-packages/django/middleware/csrf.py", line 14, in from django.utils.cache import patch_vary_headers File "/usr/local/lib/python2.7/site-packages/django/utils/cache.py", line 26, in from django.core.cache import caches File "/usr/local/lib/python2.7/site-packages/django/core/cache/init.py", line 34, in if DEFAULT_CACHE_ALIAS not in settings.CACHES: File "/usr/local/lib/python2.7/site-packages/django/conf/init.py", line 48, in getattr self._setup(name) File "/usr/local/lib/python2.7/site-packages/django/conf/init.py", line 42, in _setup % (desc, ENVIRONMENT_VARIABLE))

blenessy commented 8 years ago

Not sure what to do about the following, since it seems I did not cause that: ./pypolo/settings.py:283:23: F405 DEBUG_APPS may be undefined, or defined from star imports: pypolo.local_settings

blenessy commented 8 years ago

Closing cause I just saw this one: https://github.com/owocki/pytrader/pull/77