Skip to content

DJANGO_SETTINGS_MODULE needs to be set befire importing User #81

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

Closed
wants to merge 2 commits into from

Conversation

blenessy
Copy link

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))

Traceback (most recent call last):
  File "./create_admin.py", line 2, in <module>
    from django.contrib.auth.models import User
  File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 7, in <module>
    from django.middleware.csrf import rotate_token
  File "/usr/local/lib/python2.7/site-packages/django/middleware/csrf.py", line 14, in <module>
    from django.utils.cache import patch_vary_headers
  File "/usr/local/lib/python2.7/site-packages/django/utils/cache.py", line 26, in <module>
    from django.core.cache import caches
  File "/usr/local/lib/python2.7/site-packages/django/core/cache/__init__.py", line 34, in <module>
    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
Copy link
Author

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
Copy link
Author

Closing cause I just saw this one:
#77

@blenessy blenessy closed this Oct 22, 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

Successfully merging this pull request may close these issues.

1 participant