浏览代码

Fixed rst syntax

Ask Solem 15 年之前
父节点
当前提交
a061dec095
共有 2 个文件被更改,包括 7 次插入4 次删除
  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`_.
 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"
     INSTALLED_APPS = "celery"
 
 
-to:
+  to::
 
 
     INSTALLED_APPS = "djcelery"
     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**
     **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
 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).
 change it if it's already defined).
 
 
 When the Django loader is used, the "database" and "cache" backend aliases
 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.
     # echo enables verbose logging from SQLAlchemy.
     CELERY_RESULT_ENGINE_OPTIONS = {"echo": True}
     CELERY_RESULT_ENGINE_OPTIONS = {"echo": True}
 
 
+.. _`SQLAlchemy`:
+    http://www.sqlalchemy.org
 .. _`Supported Databases`:
 .. _`Supported Databases`:
     http://www.sqlalchemy.org/docs/dbengine.html#supported-databases
     http://www.sqlalchemy.org/docs/dbengine.html#supported-databases
 .. _`SQLAlchemy Connection String`:
 .. _`SQLAlchemy Connection String`:

+ 1 - 0
celery/task/base.py

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