장고에서 startproject를 하면 프로젝트 생성 대신에 django-admin.py가 뜹니다.
조회수 867회
윈도우 환경에서
django-admin.py startproject (프로젝트명) .
을 작성했는데 프로젝트 생성 대신에 콘솔에선 알 수 없는 에러(?) 코드가 작성되고 django-admin.py를 보여줬습니다.
콘솔창 내용
(node:8008) Electron: Loading non context-aware native modules in the renderer p rocess is deprecated and will stop working at some point in the future, please s ee https://github.com/electron/electron/issues/18397 for more information (node:8008) Electron: Loading non context-aware native modules in the renderer p rocess is deprecated and will stop working at some point in the future, please s ee https://github.com/electron/electron/issues/18397 for more information (node:8008) Electron: Loading non context-aware native modules in the renderer p rocess is deprecated and will stop working at some point in the future, please s ee https://github.com/electron/electron/issues/18397 for more information (node:8008) Electron: Loading non context-aware native modules in the renderer p rocess is deprecated and will stop working at some point in the future, please s ee https://github.com/electron/electron/issues/18397 for more information (node:8792) Electron: Loading non context-aware native modules in the renderer p rocess is deprecated and will stop working at some point in the future, please s ee https://github.com/electron/electron/issues/18397 for more information (node:8792) Electron: Loading non context-aware native modules in the renderer p rocess is deprecated and will stop working at some point in the future, please s ee https://github.com/electron/electron/issues/18397 for more information [main 2020-08-21T15:35:37.251Z] update#setState checking for updates [main 2020-08-21T15:35:37.942Z] update#setState idle
이게 그 django-admin.py의 내용입니다.
#!c:\users\jhp\ocean3\mv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecated in Django 3.1 and removed in Django '
'4.0. Please manually remove this script from your virtual environment '
'and use django-admin instead.'
)
if __name__ == "__main__":
warnings.warn(
'django-admin.py is deprecated in favor of django-admin.',
RemovedInDjango40Warning,
)
management.execute_from_command_line()
가상환경의 저 4.0을 지우라는데 저게 뭔지 그리고 이 처음부터 틀릴게 뭐가 있는지 모르겠습니다. 도와주세요ㅠ
댓글 입력