I hereby claim:
- I am rolo on github.
- I am rolo (https://keybase.io/rolo) on keybase.
- I have a public key whose fingerprint is 816E E5E2 8715 EF59 72F6 3B88 5579 CCA6 B686 4958
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| from cms.models.pagemodel import Page | |
| pages = Page.objects.filter(published=True, publisher_is_draft=True) | |
| for page in pages: | |
| print '%s (%d)' % (page, page.id) | |
| page.publish() |
| import random | |
| from django.contrib.auth.models import User | |
| from factory import Factory, LazyAttribute, Sequence | |
| class UserFactory(Factory): | |
| """ | |
| Creates a new ``User`` object. | |
| Username will be a random 30 character md5 value. |
| #! /usr/bin/env python | |
| import os | |
| import re | |
| import shutil | |
| from os.path import splitext | |
| SOURCE = os.getcwd() + "/www/" | |
| TARGET = os.getcwd() + "/compiled/" | |
| if not os.path.exists(TARGET): |
| #!/bin/bash | |
| # | |
| # Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box | |
| # http://wildfish.com | |
| # add the ubuntu gis ppa | |
| sudo apt-get -y install python-software-properties | |
| sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
| sudo apt-get update |