Hi Ami,

What you are trying to do sounds really interesting.  I don't have any 
experience working with Amazon's S3 but since Mayan uses Django's 
abstracted storage system any project that expands Django's storage options 
should work basically out of the box with Mayan.  One such project is 
django-storages (http://django-storages.readthedocs.org/en/latest/index.html) 
(http://code.larlet.fr/django-storages/).  Getting django-storages to work 
with Mayan would be as follows:


   - Activate the virtualenv where you installed Mayan
   - issue a pip install django-storages
   - Create a settings_local.py file with the following:
      
# Import and activate the storages app

from django.conf import settings

settings.INSTALLED_APPS += ('storages',)


# Set the simple S3Storage backend as Mayan's document storage backend 

from storages.backends.s3 import S3Storage

DOCUMENTS_STORAGE_BACKEND=S3Storage


   - After that, setup the S3 backend AWS_ACCESS_KEY_ID,
   AWS_SECRET_ACCESS_KEY, and such (
   http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html) 
   saving them in the settings_local.py file.


 Please, keep the group up to date on your progress, I'm sure a lot of 
people are interested in this kind of setup.


/Roberto

   

   

   


On Sunday, July 22, 2012 10:17:30 PM UTC-4, Ami Ganguli wrote:
>
> Hi everybody,
>
> I've been trying to get Mayan to work with Amazon S3.  
>
> There've been various problems, which I've hacked around one-by-one just 
> to get something working.  But now I'm running into issues that might 
> require me to touch a fair bit of code.
>
> Before I start doing that, I thought I would ask if anybody has gotten 
> this to work already, and if so, how?
>
> If not, I could start again and ask one-by-one for the "right" solution to 
> the problems I've had, and perhaps contribute some proper patches.  I'm 
> fairly new to Django, so the solutions I've come up with on my own so far 
> are probably not the best.
>
> Cheers,
> Ami.
>
>

-- 



Reply via email to