Thursday, January 31, 2013

Re: Moving a Django website to another server

Just checked the docs, looks like ImageField stores the path

it was a satchmo app, does someone knows what it does with the product images?

thanks
avraham


On Thu, Jan 31, 2013 at 4:45 PM, Kelly Nicholes <kelbolicious@gmail.com> wrote:
If you're storing your images in your database (don't) then your db migration should have done it.  If you're storing the paths in the database, let's hope they're relative paths to the images.  You'll have to copy the images to your new server using the same approaches listed above.  One alternative is to have a separate server that serves all of your static media, then your paths can stay the same, regardless of which server(s) your database(s)/code is on.


On Thursday, January 31, 2013 5:47:45 AM UTC-7, אברהם סרור wrote:
similar question on the same topic:

I used dumpdata/loaddata to move from sqlite to postgres, while it was able to move the relations it didn't get any image, any way I could something similar but including the images?

would south be able to do it?


On Thu, Jan 31, 2013 at 11:09 AM, John Robertson <linksstr...@gmail.com> wrote:
Hi there, thanks for all your very helpful responses. Its all a little out of my comfort zone so I might employ someone to do it for me. Any takers/quotes?

cheers
John


On Friday, January 25, 2013 10:20:49 AM UTC, John Robertson wrote:
Hi there, if I want to move a Django website to another host, is it as simple as copying across all the site files and DB (and changing config files)? If so, is there some kind of tool to create a zipped folder of the website so that FTP does not take several hours! Sorry if this seems a very basic question, but I just wanted to check before I proceed with it. They are fairly simple, small sites, but still there are thousands of files.

Many thanks!
John

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment