Notice
Recent Posts
Recent Comments
관리 메뉴

안까먹을라고 쓰는 블로그

[DJango] 외부 접속 설정하기 본문

Language/Python

[DJango] 외부 접속 설정하기

YawnsDuzin 2020. 3. 31. 17:36

 

반응형

 

https://docs.djangoproject.com/en/2.1/ref/django-admin/#django-admin-runserver

 

django-admin and manage.py | Django documentation | Django

Django The web framework for perfectionists with deadlines. Overview Download Documentation News Community Code Issues About ♥ Donate

docs.djangoproject.com

 

runserver 로 아래와 같이 IP정보도 명기하여 실행.

 

python manage.py runserver 192.168.0.53:5500

 

 

※ 장고 서버 접속 시, 에러발생

 

settings.py의 ALLOWED_HOSTS 항목을 아래와 같이 변경

 

재 실행 후, 접속 시 정상접속 확인

반응형
Comments