0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
wagtail/docs/getting_started/index.rst

66 lines
2.5 KiB
ReStructuredText
Raw Normal View History

Getting started
===============
2015-05-28 11:12:48 +02:00
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:
* `Python <https://www.python.org/downloads/>`_
2017-10-11 16:55:47 +02:00
* `pip <https://pip.pypa.io/en/latest/installing.html>`_ (Note that pip is included by default with Python 3.4 and later)
2015-05-28 11:12:48 +02:00
We'd also recommend Virtualenv, which provides isolated Python environments:
* `Virtualenv <https://virtualenv.pypa.io/en/latest/installation.html>`_
.. important::
Before installing Wagtail, it is necessary to install the **libjpeg** and **zlib** libraries, which provide support for working with JPEG, PNG and GIF images (via the Python **Pillow** library). The way to do this varies by platform - see Pillow's `platform-specific installation instructions <http://pillow.readthedocs.org/en/latest/installation.html#external-libraries>`_.
2015-05-28 11:12:48 +02:00
With the above installed, the quickest way to install Wagtail is:
2015-05-28 11:12:48 +02:00
*If you are using Virtualenv, run*
.. code-block:: console
$ virtualenv env -p python3
$ source env/bin/activate
.. code-block:: console
$ pip install wagtail
2015-05-28 11:12:48 +02:00
(``sudo`` may be required if installing system-wide or without virtualenv)
Once installed, Wagtail provides a command similar to Django's ``django-admin startproject`` which stubs out a new site/project:
.. code-block:: console
2015-05-28 11:12:48 +02:00
$ wagtail start mysite
2015-05-28 11:12:48 +02:00
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>`.
Inside your ``mysite`` folder, we now just run the setup steps necessary for any Django project:
.. code-block:: console
2015-05-28 11:12:48 +02:00
$ pip install -r requirements.txt
$ ./manage.py migrate
$ ./manage.py createsuperuser
$ ./manage.py runserver
2015-05-28 11:12:48 +02:00
Your site is now accessible at ``http://localhost:8000``, with the admin backend available at ``http://localhost:8000/admin/``.
2018-04-03 18:07:53 +02:00
This will set you up with a new stand-alone Wagtail project. If you'd like to add Wagtail to an existing Django project instead, see :doc:`integrating_into_django`.
2015-05-28 11:12:48 +02:00
There are a few optional packages which are not installed by default but are recommended to improve performance or add features to Wagtail, including:
2015-05-28 13:58:50 +02:00
* :doc:`Elasticsearch </advanced_topics/performance>`.
2015-05-28 11:12:48 +02:00
* :ref:`image_feature_detection`.
.. toctree::
2017-09-19 22:47:45 +02:00
:maxdepth: 1
2015-06-01 16:30:07 +02:00
tutorial
demo_site
2015-11-10 22:30:10 +01:00
integrating_into_django
2017-09-19 22:47:45 +02:00
the_zen_of_wagtail