python - Debug Django project with environment in docker container -


i running django project environment in docker container ok, when want debug project, pycharm run

python2.7 -u /opt/.pycharm_helpers/pydev/pydevd.py –multiproc –qt-support –client 10.0.2.2 –port 56359 –file /opt/project/manage.py runserver 0.0.0.0:8000

no cython.... run "/usr/local/bin/python2.7" "/opt/.pycharm_helpers/pydev/setup_cython.py" build_ext –inplace

and stack...

using advice https://youtrack.jetbrains.com/issue/py-18913#comment=27-1373843 connect manually pycharm_helpers volumes docker container pycharm settings (see temp2.jpg)

then manually run "/usr/local/bin/python2.7" "/opt/.pycharm_helpers/pydev/setup_cython.py" build_ext –inplace

setup_cython build successfully, commit image installed cython inside, start debug again , see :

python2.7 -u /opt/.pycharm_helpers/pydev/pydevd.py –multiproc –qt-support –client 10.0.2.2 –port 56359 –file /opt/project/manage.py runserver 0.0.0.0:8000

on debug console window , stack on again.....

i have fedora 21 , tried systemctl disable firewalld , systemctl stop firewalld

systemctl status firewalld

firewalld.service - firewalld - dynamic firewall daemon loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled) active: inactive (dead)

but still have problem

fyi:

ip link show dev docker0
4: docker0: mtu 1500 qdisc noqueue state down mode default group default link/ether 02:42:be:3a:42:eb brd ff:ff:ff:ff:ff:ff

iptables -l -n -t nat | grep docker

docker – 0.0.0.0/0 0.0.0.0/0 addrtype > match dst-type local

docker – 0.0.0.0/0 !127.0.0.0/8 addrtype > match dst-type local

i tried connect pycharm docker container ssh - debugging work fine. want solve problem docker interpreter


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -