MySQL replication and Django FileField -


i have mysql replication setup, , replicates nicely database data. however, use filefield , imagefield, , have file loaded onto fs. use rsync manually replicate this, there better way?

i know of key value storage. project, looking minimize number of technologies involved , stick simple options. i've used rsync before, wondering if others have done have new cool tools (or rsync wrappers) work better.

your experiences appreciated.

i haven't searched see if has done this, can write own code in django remotely copy file goal server (i.e. sftp).

  • option 1 on front: create own form field extends image , file field uploading.
  • option 2: in form/view, call additional function uploading.
  • option 3: override in django code handle automatically image , file fields (probably not recommended, unless there slick way i'm not thinking of).
  • here's info on using sftp in python: sftp in python? (platform independent)

    if you're using amazon's cloudfront or buckets, can use boto handle uploading (i believe): http://aws.amazon.com/code/827?_encoding=utf8&jiveredirect=1 (if not, there other python libraries help).


    Comments

    Popular posts from this blog

    android - Spacing between the stars of a rating bar? -

    html - Instapaper-like algorithm -

    c# - How to execute a particular part of code asynchronously in a class -