index.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Getting started
  2. ===============
  3. Wagtail is built on the `Django web framework <https://www.djangoproject.com/>`_, so this document assumes you've already got the essentials installed. But if not, those essentials are:
  4. * `Python <https://www.python.org/downloads/>`_
  5. * `pip <https://pip.pypa.io/en/latest/installing.html>`_ (Note that pip is included by default with Python 2.7.9 and later and Python 3.4 and later)
  6. We'd also recommend Virtualenv, which provides isolated Python environments:
  7. * `Virtualenv <https://virtualenv.pypa.io/en/latest/installation.html>`_
  8. Before we install Wagtail we should install Pillow for image manipulation. Before you run ``pip install Pillow`` note that most platforms require you install additional libraries first: `Platform-specific installation instructions <http://pillow.readthedocs.org/en/latest/installation.html#os-x-installation>`_
  9. With the above installed, the quickest way to install Wagtail is::
  10. pip install wagtail
  11. (``sudo`` may be required if installing system-wide or without virtualenv)
  12. Once installed, Wagtail provides a command similar to Django's ``django-admin startproject`` which stubs out a new site/project::
  13. wagtail start mysite
  14. This will create a new folder ``mysite``, based on a template containing all you need to get started. More information on that template is available :doc:`here </reference/project_template>`.
  15. Inside your ``mysite`` folder, we now just run the setup steps necessary for any Django project::
  16. ./manage.py migrate
  17. ./manage.py createsuperuser
  18. ./manage.py runserver
  19. Your site is now accessible at ``http://localhost:8000``, with the admin backend available at ``http://localhost:8000/admin/``.
  20. There are a few optional packages which are not installed by default but are recommended to improve performance or add features to Wagtail, including:
  21. * :doc:`Elasticsearch </advanced_topics/performance>`.
  22. * :ref:`image_feature_detection`.
  23. .. toctree::
  24. :maxdepth: 2
  25. tutorial
  26. demo_site