Start project
-
Enter your virtualenv for wagtail (mine is wagtail)
workon wagtail
-
Create your wagtail project (e.g. wagtail_blog). NB the wagtail_blog directory is created by this.
wagtail start wagtail_blog
-
Change directory to the project directory:
cd wagtail_blog
-
Install requirements:
pip install -r requirements.txt
-
Create the migration command mm:
python manage.py makemigrations python manage.py migrate
Save as mm and make runnable.
-
Migrate:
python manage.py migrate
-
Create superuser:
python manage.py createsuperuser
-
Check it works by running the server and opening url: 127.0.0.1 (to use the default port 8000)
python manage.py runserver
or if you want to use port 8100:
python manage.py runserver 8100
The default wagtail site page should appear.
This basic project contains three apps:
- my app wagtail_blog;
- home;
- search.