DJANGO_SETTINGS_MODULE needs to be set befire importing User #81
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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))