Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
apt-get install devscripts build-essential | |
apt-get build-dep golang-go | |
wget http://ftp.us.debian.org/debian/pool/main/g/golang/golang_1.3.1-1.dsc | |
wget http://ftp.us.debian.org/debian/pool/main/g/golang/golang_1.3.1.orig.tar.gz | |
wget http://ftp.us.debian.org/debian/pool/main/g/golang/golang_1.3.1-1.debian.tar.xz | |
dpkg-source -x golang_1.3.1-1.dsc | |
cd golang-1.3.1/ | |
debuild -us -uc |
Thanks to [Serafeim Papastefanos] for authoring this tutorial. Please note that the installation process is in flux; most of the steps here should soon be unnecessary.
[Wagtail] is a new Open Source [Django]-based CMS. In this 20 minute tutorial we will see how you can create a blog from scratch using Wagtail. If you want to see some more examples of usage please take a look at the [wagtaildemo] GitHub project.
To follow this tutorial you will need to have [Python] 2.7 installed with a working version of [pip] and [virtualenv].
Installing the wagtail dependencies
import struct | |
from binascii import b2a_base64 as e64 | |
from binascii import a2b_base64 as d64 | |
import scrypt | |
import Crypto.Random | |
random = Crypto.Random.new().read | |
from passlib.utils import consteq | |
_PARAMS = struct.Struct("!BBBB") |
from django.core.exceptions import ImproperlyConfigured | |
from django.core.management.base import BaseCommand, CommandError | |
from django.core import serializers | |
from django.utils.datastructures import SortedDict | |
from optparse import make_option | |
class Command(BaseCommand): | |
option_list = BaseCommand.option_list + ( | |
make_option('--format', default='json', dest='format', |