Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-database-storage 0.1.2

    Download button

    No screenshots available
    Downloads: 114  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mike Mueller | More programs
    BSD License / FREE
    May 26th, 2012, 03:34 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-database-storage description

    A utility for Django that implements the Django Storage API

    django-database-storage is a Django utility that implements the Django Storage API (for storing FileFields, ImageFields, etc.) and stores the contents of the files in your Django database instead of on the filesystem.

    This is mainly intended to be an easy-to-use way to store file attachments and get rid of the pain of managing filesystem access at run time, and the deployment issues that come with it. If your file attachment needs are simple, this will generally be a quick way to get your app working.

    Getting Started

    1. Install (pip install django-database-storage)

    2. Read the help:

     ./manage.py shell ... >>> from database_storage import DatabaseStorage >>> help(DatabaseStorage)


    Product's homepage

    Here are some key features of "django-database-storage":

    · Store any file in any database supported by Django.
    · Simplify deployment and data management: No need to keep track of file attachments when migrating data from one server to another, since files live in the database.

    Requirements:

    · Python
    · Django

    Limitations:

    · Django does not support binary fields (issue #2417) and as of this writing, expects queries to always return unicode data (issue #5135). As a result, this library uses base64 encoding to make binary data safe for the database, which inflates data size by about 33%.
    · Databases are not always built with large file storage in mind (unlike filesystems). As such, this is based on the assumption that files are "reasonably" sized, meaning well under 1MB. Files are entirely loaded into RAM during requests. Your mileage may vary.
    · No performance guarantees whatsoever. The idea is that these are small image attachments for a blog or similar, not that you are hosting a Youtube clone in your Django database.

      


    TAGS:

    Django storage | database storage | Django | database | storage

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM