2
0

index.rst 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Getting started
  2. ===============
  3. .. note::
  4. These instructions assume familiarity with virtual environments and the
  5. `Django web framework <https://www.djangoproject.com/>`_.
  6. For more detailed instructions, see :doc:`tutorial`.
  7. To add Wagtail to an existing Django project, see :doc:`integrating_into_django`.
  8. Dependencies needed for installation
  9. ------------------------------------
  10. * `Python 3 <https://www.python.org/downloads/>`_
  11. * **libjpeg** and **zlib**, libraries required for Django's **Pillow** library.
  12. See Pillow's `platform-specific installation instructions <https://pillow.readthedocs.org/en/latest/installation.html#external-libraries>`_.
  13. Quick install
  14. -------------
  15. Run the following in a virtual environment of your choice:
  16. .. code-block:: console
  17. $ pip install wagtail
  18. (Installing outside a virtual environment may require ``sudo``.)
  19. Once installed, Wagtail provides a command similar to Django's ``django-admin startproject`` to generate a new site/project:
  20. .. code-block:: console
  21. $ wagtail start mysite
  22. This will create a new folder ``mysite``, based on a template containing everything you need to get started.
  23. More information on that template is available in
  24. :doc:`the project template reference </reference/project_template>`.
  25. Inside your ``mysite`` folder, run the setup steps necessary for any Django project:
  26. .. code-block:: console
  27. $ pip install -r requirements.txt
  28. $ ./manage.py migrate
  29. $ ./manage.py createsuperuser
  30. $ ./manage.py runserver
  31. Your site is now accessible at ``http://localhost:8000``, with the admin backend available at ``http://localhost:8000/admin/``.
  32. This will set you up with a new stand-alone Wagtail project.
  33. If you'd like to add Wagtail to an existing Django project instead, see :doc:`integrating_into_django`.
  34. There are a few optional packages which are not installed by default but are recommended to improve performance or add features to Wagtail, including:
  35. * :doc:`Elasticsearch </advanced_topics/performance>`.
  36. * :ref:`image_feature_detection`.
  37. .. toctree::
  38. :maxdepth: 1
  39. tutorial
  40. demo_site
  41. integrating_into_django
  42. the_zen_of_wagtail