bitrainbow / wagtaildemo

An example site implemented with Wagtail

Home Page:http://wagtail.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy

Wagtail demo

This is a demonstration site implemented with Wagtail CMS.

To create your own site from scratch we strongly recommend the wagtail start command, explained in the Wagtail CMS Documentation however this demo provides some useful examples.

Setup with Vagrant (recommended)

We recommend running Wagtail in a virtual machine using Vagrant, as this ensures that the correct dependencies are in place regardless of how your host machine is set up.

Dependencies

Installation

Run the following commands:

git clone https://github.com/torchbox/wagtaildemo.git
cd wagtaildemo
vagrant up
vagrant ssh
  (then, within the SSH session:)
./manage.py runserver 0.0.0.0:8000

The demo site will now be accessible at http://localhost:8000/ and the Wagtail admin interface at http://localhost:8000/admin/ . Log into the admin with the credentials admin / changeme.

Setup without Vagrant

Don't want to set up a whole VM to try out Wagtail? No problem.

Dependencies

Installation

With PostgreSQL running (and configured to allow you to connect as the 'postgres' user - if not, you'll need to adjust the createdb line and the database settings in wagtaildemo/settings/base.py accordingly), run the following commands:

git clone https://github.com/torchbox/wagtaildemo.git
cd wagtaildemo
pip install -r requirements/dev.txt
createdb -Upostgres wagtaildemo
./manage.py migrate
./manage.py load_initial_data
./manage.py createsuperuser
./manage.py runserver

SQLite support

SQLite is supported as an alternative to PostgreSQL - update the DATABASES setting in wagtaildemo/settings/base.py to use 'django.db.backends.sqlite3', as you would with a regular Django project.

About

An example site implemented with Wagtail

http://wagtail.io

License:Other


Languages

Language:Python 68.3%Language:HTML 28.2%Language:CSS 1.9%Language:Shell 1.4%Language:JavaScript 0.2%