본문 바로가기
IT/Python

Django Django 시작 시 오류

by RunningPencil 2022. 5. 5.
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

https://stackoverflow.com/questions/46210934/importerror-couldnt-import-django

 

ImportError: Couldn't import Django

I've already configured virtualenv in pycharm, when using the python manage.py command, this is error shown: E:\video course\Python\code\web_worker\MxOnline>python manage.py runserver Traceback...

stackoverflow.com

>> Django 를 이용 경로에 설치하지 않아서 나타나는 문제다.

pip install Django

 

 

django.db.utils.OperationalError: no such table: auth_user

https://stackoverflow.com/questions/24682155/user-registration-with-error-no-such-table-auth-user

 

User Registration with error: no such table: auth_user

I am trying to use Django's default Auth to handle register and log in. setting.py: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', '

stackoverflow.com

>> 마이그레이트를 안하고 superuser를 생성해서 나타나는 문제다.

python manage.py migrate

 

반응형