title: Getting TypeError: 'Module' object is not callable on celery task decorator
body: <p>Trying out celery for django I ran into a problem with @task decorator. This is running on Windows 7.</p>
  
  <p>In my celerytest.tasks module I have the following code</p>
  
  <pre><code>from celery import task
  
  @task
  def add(x,y):
      return x + y
  </code></pre>
  
  <p>From the command prompt I run:</p>
  
  <pre><code>python manage.py shell
  </code></pre>
  
  <p>Trying to import my module from shell:</p>
  
  <pre><code>from celerytest.tasks import add
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>&gt;&gt;&gt; from celerytest.tasks import add
  Traceback (most recent call last):
  File "&lt;console&gt;", line 1, in &lt;module&gt;
  File "d:\...\celerytest\tasks.py", line 8, in &lt;module&gt;
     @task
  TypeError: 'module' object is not callable
  </code></pre>
  
  <p>I tried googling this for a long time, but it seems I am the only one in the world with this problem.</p>