2014-09-11 17:01:22 +02:00
|
|
|
Getting started
|
|
|
|
===============
|
|
|
|
|
2019-04-09 00:18:27 +02:00
|
|
|
.. note::
|
2019-04-09 15:55:30 +02:00
|
|
|
These instructions assume familiarity with virtual environments and the
|
|
|
|
`Django web framework <https://www.djangoproject.com/>`_.
|
|
|
|
For more detailed instructions, see :doc:`tutorial`.
|
|
|
|
To add Wagtail to an existing Django project, see :doc:`integrating_into_django`.
|
2015-05-28 11:12:48 +02:00
|
|
|
|
|
|
|
|
2019-04-09 00:18:27 +02:00
|
|
|
Dependencies needed for installation
|
|
|
|
------------------------------------
|
2015-05-28 11:12:48 +02:00
|
|
|
|
2019-04-09 00:18:27 +02:00
|
|
|
* `Python 3 <https://www.python.org/downloads/>`_
|
|
|
|
* **libjpeg** and **zlib**, libraries required for Django's **Pillow** library.
|
|
|
|
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
|
|
|
|
|
|
|
|
2019-04-09 00:18:27 +02:00
|
|
|
Quick install
|
|
|
|
-------------
|
2018-10-27 10:20:55 +02:00
|
|
|
|
2019-04-09 00:18:27 +02:00
|
|
|
Run the following in a virtual environment of your choice:
|
2018-10-27 10:20:55 +02:00
|
|
|
|
2016-11-28 02:30:44 +01:00
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
$ pip install wagtail
|
2015-05-28 11:12:48 +02:00
|
|
|
|
2019-04-09 00:18:27 +02:00
|
|
|
(Installing outside a virtual environment may require ``sudo``.)
|
2015-05-28 11:12:48 +02:00
|
|
|
|
2019-04-09 00:18:27 +02:00
|
|
|
Once installed, Wagtail provides a command similar to Django's ``django-admin startproject`` to stub out a new site/project:
|
2016-11-28 02:30:44 +01:00
|
|
|
|
|
|
|
.. code-block:: console
|
2015-05-28 11:12:48 +02:00
|
|
|
|
2016-11-28 02:30:44 +01:00
|
|
|
$ wagtail start mysite
|
2015-05-28 11:12:48 +02:00
|
|
|
|
2019-04-09 15:55:30 +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 in
|
|
|
|
:doc:`the project template reference </reference/project_template>`.
|
2015-05-28 11:12:48 +02:00
|
|
|
|
2019-04-09 00:18:27 +02:00
|
|
|
Inside your ``mysite`` folder, run the setup steps necessary for any Django project:
|
2016-11-28 02:30:44 +01:00
|
|
|
|
|
|
|
.. code-block:: console
|
2015-05-28 11:12:48 +02:00
|
|
|
|
2016-11-28 02:30:44 +01: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/``.
|
|
|
|
|
2019-04-09 15:55:30 +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`.
|
|
|
|
|
2014-09-11 17:01:22 +02:00
|
|
|
|
|
|
|
.. toctree::
|
2017-09-19 22:47:45 +02:00
|
|
|
:maxdepth: 1
|
2014-09-11 17:01:22 +02:00
|
|
|
|
2015-06-01 16:30:07 +02:00
|
|
|
tutorial
|
2015-05-14 15:02:06 +02:00
|
|
|
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
|