Browse Source

Use code-block directive for cache backend example (#3368)

Berker Peksag 8 năm trước cách đây
mục cha
commit
d375da20e8
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      docs/django/first-steps-with-django.rst

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

@@ -184,6 +184,8 @@ To use this with your project you need to follow these steps:
 
     For the cache backend you can use:
 
+    .. code-block:: python
+
         CELERY_RESULT_BACKEND = 'django-cache'
 
 ``django-celery-beat`` -- Database-backed Periodic Tasks with Admin interface.