INTRODUCTION TO WAGTAIL
Wagtail is a Python based CMS made for Django. The Wagtail CMS was released in 2015 by a digital agency named Torchbox, the same agency that created South migrations for Django in 2008. So when we encountered a project that required a content management system, we had an additional reason to give Wagtail CMS a try.
HOW TO INSTALL AND RUN WAGTAIL
Wagtail supports Python 3.5, 3.6, 3.7 and 3.8.
To check whether you have an appropriate version of Python 3:
Note:- If this does not return a version number or returns a version lower than 3.5, you will need to install Python3.
Create and activate a virtual environment
Recommend using a virtual environment, which provides an isolated Python environment. This tutorial uses venv, which is packaged with Python 3.
On Windows (cmd.exe):
- $ python3 -m venv mysitenv
- $ mysitenvScriptsactivate.bat
On Unix or MacOS (bash):
- $ python3 -m venv mysite/env
- $ source mysite/env/bin/activate
Use pip, which is packaged with Python, to install Wagtail and its dependencies:
Generate your site
- $ wagtail start mysite mysite
Install project dependencies
- $ cd mysite
- install -r requirements.txt
This ensures that you have the relevant versions of Wagtail, Django, and any other dependencies for the project you have just created.
Create the database
- $ python manage.py migrate
Create an admin user
- $ python manage.py createsuperuser
Start the server
- $ python manage.py runserver