Browse Source

Django tutorial: Mention that the app must be added to INSTALLED_APPS. Closes #1192

Ask Solem 12 years ago
parent
commit
8767505a60
1 changed files with 14 additions and 2 deletions
  1. 14 2
      docs/django/first-steps-with-django.rst

+ 14 - 2
docs/django/first-steps-with-django.rst

@@ -77,8 +77,20 @@ of your Django project where ``manage.py`` is located and execute:
 
     $ python manage.py startapp celerytest
 
-After the new app has been created, define a task by creating
-a new file called ``celerytest/tasks.py``:
+Next you have to add the new app to ``INSTALLED_APPS`` so that your
+Django project recognizes it.  This setting is a tuple/list so just
+append ``celerytest`` as a new element at the end
+
+.. code-block:: python
+
+    INSTALLED_APPS = (
+        ...,
+        'djcelery',
+        'celerytest',
+    )
+
+After the new app has been created and added to ``INSTALLED_APPS``,
+you can define your tasks by creating a new file called ``celerytest/tasks.py``:
 
 .. code-block:: python