Serving mov file with Django

2014-12-27 Thread Hanley Hansen
I want to serve an mov file on the file system with Django the way Apache 
would. IBe managed to serve the file as a download but I'm looking to stream it 
so it plays in browser. I want to avoid setting up a alias in Apache. Though 
it's a static file I need to stream it securely based on the user. Is that 
possible?

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a460209c-8448-4306-97a2-a3c961c18bf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Serving mov file with Django

2014-12-27 Thread Tim Chase
On 2014-12-27 08:00, Hanley Hansen wrote:
> I want to serve an mov file on the file system with Django the way
> Apache would. IBe managed to serve the file as a download but I'm
> looking to stream it so it plays in browser. I want to avoid
> setting up a alias in Apache. Though it's a static file I need to
> stream it securely based on the user. Is that possible?

It sounds like you want to investigate the "Django sendfile"

https://www.google.com/search?q=django+sendfile

which makes use of headers which tell the wrapping server (Apache,
lighttpd, nginx, etc) to send a file straight from the file-system
without needing to keep your Django app in the loop. The request hits
your Django app, you do whatever auth check you need, and if it
passes, you use sendfile in/as your response to instruct your
web-server to send the corresponding file. There's a nice write-up at

http://www.sensibledevelopment.com/2010/11/django-sendfile-an-for-abstraction-large-file-serving-in-django/

that shows how it's used.  I believe it has the limitation that the
file has to come from the same server rather than a media-server, but
it does ease the load that serving directly from Django would cause.

-tkc



-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20141227105558.1438565c%40bigbox.christie.dr.
For more options, visit https://groups.google.com/d/optout.


Re: Any actual open project to create a company "social" network using Django?

2014-12-27 Thread Scot Hacker


On Friday, December 26, 2014 8:31:16 AM UTC-8, Fellipe Henrique wrote:
>
> Hi,
>
> There's any actual open project to create a company "social" network using 
> Django? I search on google, and I don't find any project using django (or 
> even other python framework)  only PHP or Ruby...
>


The Pinax Project includes quite a few social features:
http://pinaxproject.com/

See also the "Social" section of djangopackages.com:
https://www.djangopackages.com/grids/g/social/ 

but  at the end  of the day, Django is more about helping you to build the 
features you need. You might start by creating a project that uses one of 
the social login modules (like django-allauth) and then integrate a simple 
Follow model with manytomany connections between users.

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e1491222-31db-4b51-9ec6-c4ea4d763217%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any actual open project to create a company "social" network using Django?

2014-12-27 Thread phil...@bailey.st

Event though the following tutorial is not up to date with Django 1.7,
it is still quite understandable.

http://arunrocks.com/building-a-hacker-news-clone-in-django-part-1/


Best,

Phillip


On 27/12/14 17:10, Scot Hacker wrote:
> 
> 
> On Friday, December 26, 2014 8:31:16 AM UTC-8, Fellipe Henrique wrote:
> 
> Hi,
> 
> There's any actual open project to create a company "social" network
> using Django? I search on google, and I don't find any project using
> django (or even other python framework)  only PHP or Ruby...
> 
> 
> 
> The Pinax Project includes quite a few social features:
> http://pinaxproject.com/
> 
> See also the "Social" section of djangopackages.com:
> https://www.djangopackages.com/grids/g/social/ 
> 
> but  at the end  of the day, Django is more about helping you to build
> the features you need. You might start by creating a project that uses
> one of the social login modules (like django-allauth) and then integrate
> a simple Follow model with manytomany connections between users.
> 



-- 
www.bailey.st

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/549EFA3A.5020705%40bailey.st.
For more options, visit https://groups.google.com/d/optout.


Re: Serving mov file with Django

2014-12-27 Thread Hanley Hansen
That makes sense. I've tried using sendfile but i'm not getting the 
behavior I expect.

I'm using the simple backend:

SENDFILE_BACKEND = 'sendfile.backends.xsendfile'

And i'm sending the file like this:

project_path = os.path.dirname(__file__)
path = os.path.join(project_path, "..", "songs", song.file_name)
return sendfile(request, path, attachment=True)

But that's resulting in a file download in the browser which is not the 
behavior I get when i add an alias to apache and serve it that way.

On Saturday, December 27, 2014 11:54:15 AM UTC-5, Tim Chase wrote:
>
> On 2014-12-27 08:00, Hanley Hansen wrote: 
> > I want to serve an mov file on the file system with Django the way 
> > Apache would. IBe managed to serve the file as a download but I'm 
> > looking to stream it so it plays in browser. I want to avoid 
> > setting up a alias in Apache. Though it's a static file I need to 
> > stream it securely based on the user. Is that possible? 
>
> It sounds like you want to investigate the "Django sendfile" 
>
> https://www.google.com/search?q=django+sendfile 
>
> which makes use of headers which tell the wrapping server (Apache, 
> lighttpd, nginx, etc) to send a file straight from the file-system 
> without needing to keep your Django app in the loop. The request hits 
> your Django app, you do whatever auth check you need, and if it 
> passes, you use sendfile in/as your response to instruct your 
> web-server to send the corresponding file. There's a nice write-up at 
>
>
> http://www.sensibledevelopment.com/2010/11/django-sendfile-an-for-abstraction-large-file-serving-in-django/
>  
>
> that shows how it's used.  I believe it has the limitation that the 
> file has to come from the same server rather than a media-server, but 
> it does ease the load that serving directly from Django would cause. 
>
> -tkc 
>
>
>
>

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e287214b-1528-477e-8a69-e1024f4f15c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any actual open project to create a company "social" network using Django?

2014-12-27 Thread phil...@bailey.st
On 26/12/14 16:31, Fellipe Henrique wrote:
> Hi,
> 
> There's any actual open project to create a company "social" network
> using Django? I search on google, and I don't find any project using
> django (or even other python framework)  only PHP or Ruby...
> 
> Thanks,
> 
> Cheers!
> 

Another simple tutorial is building ribbit in django.


http://code.tutsplus.com/tutorials/building-ribbit-in-django--net-29957

Best,

Phillip

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/549F0354.8090501%40bailey.st.
For more options, visit https://groups.google.com/d/optout.


Re: Serving mov file with Django

2014-12-27 Thread Tim Chase
On 2014-12-27 10:29, Hanley Hansen wrote:
> That makes sense. I've tried using sendfile but i'm not getting the 
> behavior I expect.
> 
> return sendfile(request, path, attachment=True)

Does it do what you want if you remove the "attachment=True"?

-tkc



-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20141227131104.7743fd23%40bigbox.christie.dr.
For more options, visit https://groups.google.com/d/optout.


Re: Serving mov file with Django

2014-12-27 Thread Hanley Hansen
No it does the same thing.

On Saturday, December 27, 2014 2:09:15 PM UTC-5, Tim Chase wrote:
>
> On 2014-12-27 10:29, Hanley Hansen wrote: 
> > That makes sense. I've tried using sendfile but i'm not getting the 
> > behavior I expect. 
> > 
> > return sendfile(request, path, attachment=True) 
>
> Does it do what you want if you remove the "attachment=True"? 
>
> -tkc 
>
>
>
>

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0cb7fc46-dfab-4e74-90a3-03c1038347f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Storing files to Google Cloud Storage or Amazon S3 using Python 3.4

2014-12-27 Thread Some Developer
I know about Django storages (which is not compatible with Python 3.4) 
and Django storages redux (which is compatible with Python 3.4 but gives 
an error when trying to use it to sync static files to Amazon S3).


I'm really looking for another alternative to store my static files and 
my media files to either Google Cloud Storage or Amazon S3. Both of the 
options that I tried gave me problems so I am looking for something else.


Does anyone know if there are any other choices out there that are 
compatible with Python 3.4?


It is essential that I store my files to one of these services since I 
have gigabytes of stuff to store and there just isn't enough room on my 
app servers to store all the content (and it makes backing up difficult).


Any help is appreciated.

--
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/549F1369.2010900%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


cx_Oracle - Django ORM - Reference Count Increase

2014-12-27 Thread Anurag Chourasia
All,

I have a Long Running Python Process that uses Django ORM against Oracle
database.

The size of the process keeps on increasing steadily.

I was profiling this process using mem_top and i find that the reference
count of one particular data type  increases continuously with
iterations.

Datatype is  [{u'time': u'0.004', u'sql': u'QUERY = u\'SELECT
"RANGE_STATUS"."I

References increased from 534 to 53295

This list seems to have almost all the queries that were executed using the
ORM

Does this mean that there is a memory leak in the cx_Oracle module or
somewhere in Django ORM?

Here is the memtop result between two iterations 10 minutes apart.

*WARNING : 27/12/2014 05:45:46 PM : *

> refs:
> 9500  {'TAPE_DRIVE_FORMAT': -1610612736, 'SLE_ERROR': 1,
> 'IMAGE_REL_I386_SEC
> 8410  [('200', '343045', 1321), ('200', '343046', 1322),
> ('200', '343047', 1
> 1578  {'logging.atexit': None, 'django.core.files.errno':
> None, 'django.test
> 1567  ['mem_top', 'mem_top', 'datetime', 'datetime', 'sys',
> 'string', 'os',
> 688  {'FILE_SYSTEM_ATTR': 2, 'GetDriveTypeW':  function GetDriveTy
> 688  {'FILE_SYSTEM_ATTR': 2, 'GetDiskFreeSpaceEx':  function GetDi
> 534  [{u'time': u'0.004', u'sql': u'QUERY = u\'SELECT
> "RANGE_STATUS"."I
> 510  {'GetDiskFreeSpaceEx':  GetDiskFreeSpaceEx>, 'SetThr
> 510  {'GetDiskFreeSpaceEx':  GetDiskFreeSpaceEx>, 'SetThr
> 370  [,
>  types:
> 8625 
> 3778 
> 3128 
> 1672 
> 1661 
> 1440 
> 1351 
> 1103 
> 888 
> 734 



*WARNING : 27/12/2014 05:54:37 PM : *

> refs:
> 53295  [{u'time': u'0.004', u'sql': u'QUERY = u\'SELECT
> "RANGE_STATUS"."I
> 9500  {'TAPE_DRIVE_FORMAT': -1610612736, 'SLE_ERROR': 1,
> 'IMAGE_REL_I386_SEC
> 8410  [('200', '343045', 1321), ('200', '343046', 1322),
> ('200', '343047', 1
> 1578  {'logging.atexit': None, 'django.core.files.errno':
> None, 'django.test
> 1567  ['mem_top', 'mem_top', 'datetime', 'datetime', 'sys',
> 'string', 'os',
> 749  ['A. HISTORY OF THE SOFTWARE',
> '==', '', 'Pyth
> 688  {'FILE_SYSTEM_ATTR': 2, 'GetDriveTypeW':  function GetDriveTy
> 688  {'FILE_SYSTEM_ATTR': 2, 'GetDiskFreeSpaceEx':  function GetDi
> 510  {'GetDiskFreeSpaceEx':  GetDiskFreeSpaceEx>, 'SetThr
> 510  {'GetDiskFreeSpaceEx':  GetDiskFreeSpaceEx>, 'SetThr
> types:
> 8625 
> 3778 
> 3130 
> 1675 
> 1661 
> 1440 
> 1351 
> 1103 
> 888 
> 734 


Please guide.

Regards,
Guddu

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANFgmFDYW_KbLwvk62DwpdinHi2eBJc_fJBUcz0frABnWBbC-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Storing files to Google Cloud Storage or Amazon S3 using Python 3.4

2014-12-27 Thread Vijay Khemlani
What error are you getting when using storages-redux?

On Sat, Dec 27, 2014 at 5:15 PM, Some Developer 
wrote:

> I know about Django storages (which is not compatible with Python 3.4) and
> Django storages redux (which is compatible with Python 3.4 but gives an
> error when trying to use it to sync static files to Amazon S3).
>
> I'm really looking for another alternative to store my static files and my
> media files to either Google Cloud Storage or Amazon S3. Both of the
> options that I tried gave me problems so I am looking for something else.
>
> Does anyone know if there are any other choices out there that are
> compatible with Python 3.4?
>
> It is essential that I store my files to one of these services since I
> have gigabytes of stuff to store and there just isn't enough room on my app
> servers to store all the content (and it makes backing up difficult).
>
> Any help is appreciated.
>
> --
> 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+unsubscr...@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.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/549F1369.2010900%40googlemail.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei3Q9wWYBzd%3DaaSsX6uYh83n_-jBs-7WdCs1LERDKymoXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: cx_Oracle - Django ORM - Reference Count Increase

2014-12-27 Thread Michiel Overtoom

On Dec 27, 2014, at 22:23, Anurag Chourasia wrote:

> I have a Long Running Python Process that uses Django ORM against Oracle 
> database.
> The size of the process keeps on increasing steadily. 

Are you running in Debug mode?

http://stackoverflow.com/questions/1339293/python-memory-leak-debugging
http://www.dimagi.com/django-orm-memory-leaks-in-debug-mode-73877/

Greetings,

-- 
"You can't actually make computers run faster, you can only make them do less." 
- RiderOfGiraffes

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/41BEBFB0-13D5-427B-9FBF-328604CA1AAC%40xs4all.nl.
For more options, visit https://groups.google.com/d/optout.


Re: (yet another) Custom templatetag raising KeyError when DEBUG=False

2014-12-27 Thread Alexandre Provencio
Collin, I got the bug!

I was in the wrong path, it had nothing to do with request or all the
other things I mentioned; translation config problems were the
culprit. Your explanation was very helpful to put me on the right
trace!

Thank you so much!!!

- Alexandre

On Fri, Dec 26, 2014 at 7:23 PM, Collin Anderson  wrote:
> Hi,
>
> I see what's going on. This is your 500.html server error template that's
> being rendered, and unfortunately, you don't get context processors in that
> template. Sorry. The idea is to handle cases where even one of your
> middleware or context processors is failing.
>
> See the line:
> return http.HttpResponseServerError(template.render(Context({})))
>
> I think your best option is just to handle not having the request object
> available.
>
> To be clear, there must be some _other_ error that's happening that's
> causing the 500 in the first place. If you configure ADMINS, you'll get an
> email with the traceback.
>
> Collin
>
> On Tuesday, December 23, 2014 6:04:35 AM UTC-6, Alexandre Provencio wrote:
>>
>> Hi Collin, thanks for answering.
>>
>> Yes this is the home view, but just to clarify, almost all of the
>> views of the project follow this pattern of a function that returns
>> the render shortcut. The templates of the views also follow the a
>> pattern in the sense they all extend from base.html, which is where
>> the calls for the templatetag are done. This is the full traceback:
>>
>> 0 errors found
>> December 23, 2014 - 09:53:07
>> Django version 1.6.2, using settings 'foo.settings'
>> Starting development server at http://127.0.0.1:8000/
>> Quit the server with CONTROL-C.
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
>> self.result = application(self.environ, self.start_response)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py",
>> line 206, in __call__
>> response = self.get_response(request)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/core/handlers/base.py",
>> line 155, in get_response
>> response = self.handle_uncaught_exception(request, resolver,
>> sys.exc_info())
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/core/handlers/base.py",
>> line 238, in handle_uncaught_exception
>> return callback(request, **param_dict)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/utils/decorators.py",
>> line 99, in _wrapped_view
>> response = view_func(request, *args, **kwargs)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/views/defaults.py",
>> line 46, in server_error
>> return http.HttpResponseServerError(template.render(Context({})))
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/base.py",
>> line 140, in render
>> return self._render(context)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/base.py",
>> line 134, in _render
>> return self.nodelist.render(context)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/base.py",
>> line 840, in render
>> bit = self.render_node(node, context)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/debug.py",
>> line 78, in render_node
>> return node.render(context)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/loader_tags.py",
>> line 123, in render
>> return compiled_parent._render(context)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/base.py",
>> line 134, in _render
>> return self.nodelist.render(context)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/base.py",
>> line 840, in render
>> bit = self.render_node(node, context)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/debug.py",
>> line 78, in render_node
>> return node.render(context)
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/defaulttags.py",
>> line 196, in render
>> nodelist.append(node.render(context))
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/base.py",
>> line 1125, in render
>> return func(*resolved_args, **resolved_kwargs)
>>   File
>> "/home/xand/Documentos/src/Projetos/django-foo/app/templatetags/helper_tags.py",
>> line 14, in change_lang
>> path = context['request'].path
>>   File
>> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/context.py",
>> line 56, in __getitem__
>> raise KeyError(key)
>> KeyError: 'request'
>> [23/Dec/2014 09:53:18] "GET /en

Re: Serving mov file with Django

2014-12-27 Thread Tim Chase
On 2014-12-27 10:29, Hanley Hansen wrote:
> I'm using the simple backend:
> 
> SENDFILE_BACKEND = 'sendfile.backends.xsendfile'

Your initial email mentions running Apache.  Are you seeing this on
an Apache server, or are you seeing it on the development server?
Also, how are you connecting Django to Apache?  With mod_wsgi or some
other method?

You'd want to use the corresponding back-end for whichever deployment
environment you're using. Thus, if you're using Apache+mod_wsgi, you'd
want to use

  SENDFILE_BACKEND = 'sendfile.backends.mod_wsgi'

If you have Apache+mod_xsendfile or lighttpd, you'd use the setting
you have (which suggests that you don't have mod_xsendfile enabled).

-tkc


-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20141227165703.35997a16%40bigbox.christie.dr.
For more options, visit https://groups.google.com/d/optout.


Re: Storing files to Google Cloud Storage or Amazon S3 using Python 3.4

2014-12-27 Thread Some Developer

On 27/12/14 21:47, Vijay Khemlani wrote:

What error are you getting when using storages-redux?



Hmm. Seems I have managed to fix it. Not entirely sure what I was doing 
wrong before though.


Anyway for future reference django-storages-redux and the latest version 
of boto with Python 3.4.2 seems to work as expected.


I had to sub-class the S3BotoStorage class in order to separate out
the media files from the static files but after a bit of testing that 
also seems to be working fine.


--
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/549F48E7.5020703%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.