Selaa lähdekoodia

Fixed rst syntax

Ask Solem 15 vuotta sitten
vanhempi
commit
a061dec095
2 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 6 4
      Changelog
  2. 1 0
      celery/task/base.py

+ 6 - 4
Changelog

@@ -10,16 +10,16 @@ Upgrading for Django-users
 
 Django integration has been moved to a separate package: `django-celery`_.
 
-To upgrade you need to install the `django-celery`_ module and change::
+* To upgrade you need to install the `django-celery`_ module and change::
 
     INSTALLED_APPS = "celery"
 
-to:
+  to::
 
     INSTALLED_APPS = "djcelery"
 
 
-The following modules has been moved to `django-celery`_:
+* The following modules has been moved to `django-celery`_:
 
     =====================================  =====================================
     **Module name**                        **Replace with**
@@ -35,7 +35,7 @@ The following modules has been moved to `django-celery`_:
     =====================================  =====================================
 
 Importing ``djcelery`` will automatically setup celery to use the Django
-loader by setting the :env:`CELERY_LOADER`` environment variable (it won't
+loader by setting the :envvar:`CELERY_LOADER`` environment variable (it won't
 change it if it's already defined).
 
 When the Django loader is used, the "database" and "cache" backend aliases
@@ -78,6 +78,8 @@ the ``CELERY_RESULT_ENGINE_OPTIONS`` setting::
     # echo enables verbose logging from SQLAlchemy.
     CELERY_RESULT_ENGINE_OPTIONS = {"echo": True}
 
+.. _`SQLAlchemy`:
+    http://www.sqlalchemy.org
 .. _`Supported Databases`:
     http://www.sqlalchemy.org/docs/dbengine.html#supported-databases
 .. _`SQLAlchemy Connection String`:

+ 1 - 0
celery/task/base.py

@@ -110,6 +110,7 @@ class Task(object):
         can't be routed to a worker immediately.
 
     .. attribute:: priority:
+
         The message priority. A number from ``0`` to ``9``, where ``0`` is the
         highest. Note that RabbitMQ doesn't support priorities yet.