Cool. I'm creating a couple of branches there - once for working on the API (which is a bit more urgent for me), and the other for the S3 stuff (not a big deal if that takes a few weeks to sort out).
Cheers, Ami. On Mon, Jul 23, 2012 at 10:23 PM, Roberto Rosario <[email protected]> wrote: > Hi Ami, > > Found your fork in github will keep an eye for your patches. Thanks! > > /Roberto > > > On Monday, July 23, 2012 11:57:08 AM UTC-4, Ami Ganguli wrote: >> >> Hi Roberto, >> >> Yup, that's more-or-less what I've done. There are a number of >> problems that I ran into, unfortunately. >> >> I've forked your repository on GitHub. I'll try to work through the >> issues one-by-one and send you links to the commits so that you can >> suggest better workarounds, or integrate the fixes into your >> repository. >> >> Cheers, >> Ami. >> >> On Mon, Jul 23, 2012 at 6:39 PM, Roberto Rosario >> <roberto.rosario...> wrote: >> > 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. >> >> >> > -- >> > >> > >> > > > -- > > > --
