Skip to content
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

error step "python manage.py createsuperuser" #17

Open
acattaneo opened this issue Nov 8, 2020 · 0 comments
Open

error step "python manage.py createsuperuser" #17

acattaneo opened this issue Nov 8, 2020 · 0 comments

Comments

@acattaneo
Copy link

When I launch the command "python manage.py createsuperuser" and error is raised:

Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/Users/athirat52/git_prj/student-management-system/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() File "/Users/athirat52/git_prj/student-management-system/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 345, in execute settings.INSTALLED_APPS File "/Users/athirat52/git_prj/student-management-system/venv/lib/python3.8/site-packages/django/conf/__init__.py", line 76, in __getattr__ self._setup(name) File "/Users/athirat52/git_prj/student-management-system/venv/lib/python3.8/site-packages/django/conf/__init__.py", line 63, in _setup self._wrapped = Settings(settings_module) File "/Users/athirat52/git_prj/student-management-system/venv/lib/python3.8/site-packages/django/conf/__init__.py", line 142, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/opt/miniconda3/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/Users/athirat52/git_prj/student-management-system/config/settings.py", line 146, in <module> SOCIAL_AUTH_GITHUB_KEY = os.environ['GITHUB_CLIENT_ID'] File "/opt/miniconda3/lib/python3.8/os.py", line 675, in __getitem__ raise KeyError(key) from None KeyError: 'GITHUB_CLIENT_ID'

Same post suggest to use "python manage.py migrate" but the same error is raised

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

No branches or pull requests

1 participant