Search code examples
djangomacososx-mountain-lionweb-development-serveractivity-monitor

Django Dev. Server Refuses to Quit


The development server for Django is acting very odd. The browser accessing it gets stuck on loading, and any attempt to quit it does not work. When I hit control c it seems to quite, but in actuality is still running. The only way to make it quit is to restart my computer, which is very frustrating. Is there any way to force it to quit. I'm on a mac running mountain lion. Does anyone know the name of the processe it runs is called so I can force it to quit from activity monitor.


Solution

  • Assuming the command you are using to run django is:

    python manage.py runserver
    

    You can kill it with:

    pkill -f 'python manage.py runserver'
    

    This is much better than killall python as other programs might be using python, and that would kill them all.