On Monday, 6 November 2017 15:43:36 UTC, Xristos Xristoou wrote: > > I try to learn more about Django celery and rabbitmq to create some async > tasks and I have some question. > > Some programs can provide PYTHON API to can some development to use > modules from this program in python. > > one most way to take that PYTHON API from this program is to use batch > file like this : > > @echo off > SET PROGRAM_ROOT=C:\main-folder > call "%PROGRAM_ROOT%"\bin\some-batch-file.bat > > SET PYCHARM="C:\Program Files\JetBrains\PyCharm 2017.1.5\bin\pycharm64.exe" > > set PYTHONPATH=%PYTHONPATH%;%PROGRAM_ROOT%\python; > set PYTHONPATH=%PYTHONPATH%;%PROGRAM_ROOT%\site-packages; > > > start "PyCharm aware of PROGRAM" /B %PYCHARM% %* > > if I run this batch file can I use all imports and modules from this > program. > > that to release if add celery in my app and broker url rabbitmq server > then if i use some module or some import from this python api then I take > error message : no module name some_module_from_program (for all other > modules celery and rabbitmq app work fine). > > that mean in celery and rabbitmq server loose that paths from batch file > and I take this error. > > my question how to can define rabbitmq server to start server with that > paths like batch file before to avoid this error? >
Your question is quite hard to understand. But certainly instead of creating a batch file to set paths, you should be using a virtualenv. -- DR -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/449617dd-a931-4608-b645-d7157227e1be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

