How to import the right package (python-django) -


I have a demo application that I have added celery in the demo app 'parser' , Is the package named 'API' . I configured celery since I followed the following tutorial: I have 'models.py' in the parser package. Do you have the 'task.py' package 'API'? When I try to do the 'Parser import model' in the API package, I get the following error: module named module

I saw and found The following import file: lib / python2.7 / lib-dynload / parser.x86_64 -linux-gnu.so

  webpage / manage.py api / __init__ Py model_packaging / works.py ... parser / __init__.py groups.py Views.py ... settings / __init__.py base.py celery.py devp  

If I were to call 'models Requires i 'pas' command of the package that you use May include, following the start celery: Celery - A settings worker --loglevel = info . When I run cilvery in manage.py, take the correct file: Python manage.pySellary -A settings worker --loglevel = info

api / task.py . Models Import FileUploadProcess # Error Import @ Task () Def test_task (param1): Print ("Test Test.: {}". Format (param1)) Returns @ Task () def parse_file (file_candidate, candidate_id): FileUploadProcess ( Candidate_id = candidate_id, is_process = true) .ave () # parse file time.sleep (15) FileUploadProcess.objects .filter (candidate_id = candidate_id) .update (is_process = false)

Can anyone tell me that the right package is imported?

Comments

Popular posts from this blog

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

c# - Process.Kill() returns access denied -

c# - Using the generic type 'System.Collections.Generic.List<T>' requires 1 type arguments -