Start project

  1. Enter your virtualenv for wagtail (mine is wagtail)

     workon wagtail
    
  2. Create your wagtail project (e.g. wagtail_blog). NB the wagtail_blog directory is created by this.

    wagtail start wagtail_blog
    
  3. Change directory to the project directory:

    cd wagtail_blog
    
  4. Install requirements:

    pip install -r requirements.txt
    
  5. Create the migration command mm:

     python manage.py makemigrations
     python manage.py migrate
    

    Save as mm and make runnable.

  6. Migrate:

    python manage.py migrate
    
  7. Create superuser:

     python manage.py createsuperuser
    
  8. 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.