Przeglądaj źródła

Update first-steps-with-django.rst (#3724)

Align project layout with [Django documentation](https://docs.djangoproject.com/en/1.10/intro/reusable-apps/). The previous project layout was not clear about wether the proj/ is double-nested and on which level manage.py exists.
Marc Hörsken 8 lat temu
rodzic
commit
8926239978
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5 4
      docs/django/first-steps-with-django.rst

+ 5 - 4
docs/django/first-steps-with-django.rst

@@ -28,10 +28,11 @@ an instance of the Celery library (called an "app")
 If you have a modern Django project layout like::
 
     - proj/
-      - proj/__init__.py
-      - proj/settings.py
-      - proj/urls.py
-    - manage.py
+      - manage.py
+      - proj/
+        - __init__.py
+        - settings.py
+        - urls.py
 
 then the recommended way is to create a new `proj/proj/celery.py` module
 that defines the Celery instance: