Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Import and export feature request
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jacob Hallén  
View profile  
 More options Sep 11 2012, 4:08 am
From: Jacob Hallén <160...@gmail.com>
Date: Tue, 11 Sep 2012 01:08:16 -0700 (PDT)
Local: Tues, Sep 11 2012 4:08 am
Subject: Import and export feature request

I would like to transplant pages from one django-cms instance to another
one. I would like to see an export functionality which makes a human
readable file of each exported page. The page should include all plugins
and sub-plugins. The import mechanism would take a set of such files and
add the pages to the cms instance. Adding them under the root would be good
enough. Writing code for putting the pages lower in the tree would be
complicated, and the current main part of the work is the enormous amount
of cutting and pasting.

Best regards

Jacob Hallén


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luke Crooks  
View profile  
 More options Sep 11 2012, 6:04 pm
From: Luke Crooks <pumalo...@gmail.com>
Date: Tue, 11 Sep 2012 23:04:02 +0100
Local: Tues, Sep 11 2012 6:04 pm
Subject: Re: Import and export feature request

Well unless your templates and placeholders, and extensions were the same
it would be pretty pointless.

You could do an import/export for the WYSIWYG editor quite easily just by
calling the entire contents of the SQL cell, but every other plugin would
need its own adaptation.

It's rare you have sites that you need to copy front end data between, so
seems a lot of work for a limited audience.
On Sep 11, 2012 9:08 AM, "Jacob Hallén" <160...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tomas Neme  
View profile  
 More options Sep 12 2012, 12:05 am
From: Tomas Neme <lacrymol...@gmail.com>
Date: Wed, 12 Sep 2012 01:05:03 -0300
Local: Wed, Sep 12 2012 12:05 am
Subject: Re: Import and export feature request

> It's rare you have sites that you need to copy front end data between, so
> seems a lot of work for a limited audience.

Sorry, but I disagree. It's so common that I've made my own management
command to do this (it works OK, not perfect, but OK).

MY use case is not copying a site over to another, but rather passing
data between the different devs' sandbox installs, and then up to the
production server when the site is ready for launch. I suspect this is
a pretty usual need.

I do it by calling dumpdata `appname` repeatedly for each cmsplugin
app, which is a list I have to maintain manually, so far, although
with my current setup, it should be pretty straightforward to make it
a separate setting in a non-obtrusive/DRY way. I call it in order, and
dump the files onto different fixture files. I also iterate over
ImagePlugins and FilePlugins to create compressed archives with the
content files

--
"The whole of Japan is pure invention. There is no such country, there are
no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Jensen  
View profile  
 More options Oct 1 2012, 12:42 am
From: Travis Jensen <tra...@pivotmachine.com>
Date: Sun, 30 Sep 2012 21:42:11 -0700 (PDT)
Local: Mon, Oct 1 2012 12:42 am
Subject: Re: Import and export feature request

I agree with Tomas here, and this is with a single-person operation. I do a
lot of testing and experimenting on my laptop before I push things "live",
which makes keeping content correct and accurate a challenge.

However, I'm also willing to recognize that I just may be behaving
stupidly. Is there a better way to accomplish this? The upcoming
draft/publish stuff sounds like it will help, as long as there is a way for
me to see my changes when the rest of the world can't (a custom permission,
perhaps?).

tj


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luke Crooks  
View profile  
 More options Oct 1 2012, 1:56 am
From: Luke Crooks <pumalo...@gmail.com>
Date: Mon, 1 Oct 2012 06:56:33 +0100
Local: Mon, Oct 1 2012 1:56 am
Subject: Re: Import and export feature request

Surely pg_dump will solve the issue of moving data between two sites that
are the same?
On Oct 1, 2012 5:42 AM, "Travis Jensen" <tra...@pivotmachine.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brett H  
View profile  
 More options Oct 1 2012, 6:40 am
From: Brett H <brett.hay...@gmail.com>
Date: Mon, 1 Oct 2012 03:40:52 -0700 (PDT)
Local: Mon, Oct 1 2012 6:40 am
Subject: Re: Import and export feature request

As per Luke. If you're on Postgres invest time in learning pg_dump.

Heroku makes it fairly trivial with their pgbackups command which saves the
pg_dump output to S3, but you can replicate with a little effort.
I have a single command which backs up either production or staging and
downloads it and loads it into my local database and overrides the User and
Site data with local dev settings. Heroku is a simple one size fits all
"heroku pgbackups:capture --expire", but if you have control over pg_dump
you can leave out specific table data (such as User and Site).  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »