freecodeschoolindy/student-management-system

error step "python manage.py createsuperuser"

Opened this issue · 0 comments

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