Run Terminal Commands After Django Server Run/Debug Configuration Starts

Answered

I am a Windows 10 user.

When I run my Django Server Run/Debug configuration, I want that to also run terminal commands I'm currently doing manually. I did my due-diligence and searched on this forum but I just don't know what feature I'm looking for might be called.

Currently, in my Terminal window built into PyCharm, I run the following commands:

  • Tab 1: redis-server
  • Tab 2: celery -A myapp worker --pool=solo --loglevel=INFO --concurrency=1
  • Tab 3: memcached -vv

My Redis server configuration looks like the below image for example, 

Memcached is this:

Celery configuration

I can't figure out what I'm doing wrong but this configuration doesn't detect my settings in settings.py

SYNOPSIS

Just to summarize, I want to run my Django Server configuration and have these other configurations also start. This is so I don't have to start them manually every time. Is this possible?

0
2 comments

We have a feature request about After Launch https://youtrack.jetbrains.com/issue/IDEA-132501, please vote for it and feel free to comment.

The closest thing you can get at the moment is Compound run configuration https://www.jetbrains.com/help/pycharm/creating-compound-run-debug-configuration.html but the problem is that other run configurations won't wait for your Django server to start.

1

Thanks a ton! Voted. I wasn't aware of Compound run configuration. You help saved me a significant amount of steps in the future! I got my celery configuration working too so this will be nice.

0

Please sign in to leave a comment.