Skip to content

Instantly share code, notes, and snippets.

@jjanssen
jjanssen / copy_sites.py
Created October 4, 2012 10:33
Django CMS - Copy pages from one site to another
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from django.contrib.sites.models import Site
from django.db import transaction
from cms.models import Page
class Command(BaseCommand):