How to scale out uploaded file storage & serving?

2010-12-25 Thread Andy
I'm building a website where users can upload photos and I'd also convert uploaded photos into thumbnails (probably using sorl- thumbnail). When everything fits in one server, I would just use FileField() and handle_uploaded_file() as detailed in the doc. Planning ahead, if the website gets popul

Re: Problem with simple file upload.

2010-12-25 Thread vivek_12315
Never mind I am able to see print statements in dev server shell output There is some problem with my upload.html as the 'form' variable returned by python script is not used at html end... This e.g. helped me much : http://www.zoia.org/blog/2007/07/29/django-file-upload/ On Dec 25, 1

Re: delivering streaming videos

2010-12-25 Thread 93-interactive
On Dec 26, 12:20 am, Christophe Pettus wrote: > On Dec 25, 2010, at 12:16 AM, 93-interactive wrote: > I'd strongly encourage you to look at mod_xsendfile (if you are using > Apache), or the equivalent functionality in lighttpd.  You can maintain full > control over who gets to see what videos,

Re: Problem with simple file upload.

2010-12-25 Thread vivek_12315
Never mind I am able to see print statements in dev server shell output There is some problem with my upload.html as the 'form' variable returned by python script is not used at html end... This e.g. helped me much : http://www.zoia.org/blog/2007/07/29/django-file-upload/ On Dec 25, 1

Re: Problem with simple file upload.

2010-12-25 Thread vivek_12315
If I use print statements in view python files, where can I see the output ? I am using django dev. server for initial testing of my website On Dec 22, 1:18 pm, yiftah wrote: > Nick is right, you need to change your view code to > handle_uploaded_file(request.FILES['uploaded']) > instead of >

How to verify the content-type & charset of uploaded file?

2010-12-25 Thread Andy
In the doc (http://docs.djangoproject.com/en/1.2/topics/http/file- uploads/#uploadedfile-objects) it is stated that: "UploadedFile.content_type The content-type header uploaded with the file (e.g. text/plain or application/pdf). Like any data supplied by the user, you shouldn't trust that the uplo

Re: Problem with simple file upload.

2010-12-25 Thread vivek_12315
If I use print statements in view python files, where can I see the output ? I am using django dev. server for initial testing of my website On Dec 22, 1:18 pm, yiftah wrote: > Nick is right, you need to change your view code to > handle_uploaded_file(request.FILES['uploaded']) > instead of >

Re: Massive insertion of records

2010-12-25 Thread Silva Paulo
OK. I found a "solution". Using manual commitments after lots of insertions (ex. >1000) makes the massive insertion very fast (at least for my needs). Thanks to all who answered. --- On Fri, 12/24/10, Silva Paulo wrote: > From: Silva Paulo > Subject: Massive insertion of records > To: "newb

Re: delivering streaming videos

2010-12-25 Thread Christophe Pettus
On Dec 25, 2010, at 12:16 AM, 93-interactive wrote: > The reason why i don't want to have the files in the web root is, that > there should be > as user management. certain django users are allowed only to view > certain videos. While you can make this work, you generally do not want an entire Py

Re: delivering streaming videos

2010-12-25 Thread Cal Leeming [Simplicity Media Ltd]
Because you shouldn't be streaming out files in this manner. Lets say you have limited your Django app to 8 concurrent threads. That means, the moment you have 8 people downloading a video concurrently, all requests will be stuck on wait until one of those downloads finishes. If you do want to wr

Re: Massive insertion of records

2010-12-25 Thread Christophe Pettus
On Dec 24, 2010, at 6:07 PM, Silva Paulo wrote: > From your answer I may conclude that I should use a "non django" solution to > load the database, isn't it? If this is going to be a one-time bulk load, it will certainly be faster. You might consider using the .import command from SQLite's com

Re: No module named _md5

2010-12-25 Thread ramu...@gmail.com
I found answer here http://www.mail-archive.com/django-users@googlegroups.com/msg101199.html This is due to having a virtualenv created in a previous version of Ubuntu. Recreate the virtualenv under Lucid, and you should be fine. On Dec 14, 9:41 am, NavaTux wrote: > I am running my django blog

Re: Succeeding with SSL

2010-12-25 Thread Erik Cederstrand
Den 22/12/2010 kl. 17.17 skrev Jakob H: > Hi, > > I have a Django site hosted on Bluehost, and I'm trying to get SSL to > work, but have some problems. I've got a dedicated IP with SSL > certificates all ready to go. > > 1. Whenever I enter a https://... I'm automatically re-directed to a > htt

RE: The Django-CMS 2.1 Release Candidate 1 has been released!

2010-12-25 Thread Sells, Fred
Are there any example sites running this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.co

Re: ASK-Staticfiles

2010-12-25 Thread James Bennett
On Sat, Dec 25, 2010 at 11:08 AM, Emmerling wrote: > I'm trying to manage the static files for my site content. I tried the > tutorial at http://docs.djangoproject.com/en/dev/howto/static-files/ > but it's not working. The error message I got was Error: No module > named staticfiles. > > I tried c

ASK-Staticfiles

2010-12-25 Thread Emmerling
Hi all, I'm trying to manage the static files for my site content. I tried the tutorial at http://docs.djangoproject.com/en/dev/howto/static-files/ but it's not working. The error message I got was Error: No module named staticfiles. I tried checking the django contrib directory and I couldn't fi

Re: Project management / bugtracking app?

2010-12-25 Thread Kenneth Gonsalves
On Wed, 2010-12-22 at 21:26 -0800, Dopster wrote: > Hi any recommendations for a Django project management and > bugtracking > application? Also, Git(hub) integration would be a nice-to-have. > > I looked at Redmine but its a Ruby app and I'd rather not venture > there. How > about Trac? djan

Re: Calling a Method from a Form

2010-12-25 Thread Kenneth Gonsalves
On Mon, 2010-12-06 at 07:48 -0600, Brian Callies wrote: > As a part of a project I want to create a single page that has a > number > of different utilities on it did you really post this on the 6th of the month or is your system clock b0rked? -- regards Kenneth Gonsalves -- You received this

Re: ANN: The Django-CMS 2.1 Release Candidate 1 has been released!

2010-12-25 Thread qrilka
Thanks, Jonas! I think that's a good reason to make a small donation :) And merry Chrismas! Kind regards, Kirill Zaborsky -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To uns

Re: delivering streaming videos

2010-12-25 Thread 93-interactive
On Dec 25, 1:23 am, "Cal Leeming [Simplicity Media Ltd]" wrote: > This really is *not* a good way of doing things. why? > Unless you have a specific need to be streaming out via Python (for example, > on the fly stream modification, in which case I'd argue those bits of code > should be written