Re: mod_python, apache and django

2010-08-28 Thread Graham Dumpleton
On Aug 28, 5:21 am, Jesse wrote: > I'm loading django onto Windows XP professional with Apache. > Unfortunately, I need mod_python which only works with python 2.3. > Django needs python 2.4 and above.  Is there a way around this? The mod_python download page at www.modpython.org links to binar

Re: What replaced mod_python

2010-08-28 Thread Graham Dumpleton
On Aug 28, 9:56 am, Reinout van Rees wrote: > On 08/28/2010 01:35 AM, Jesse wrote: > > > I'm trying to load django/python 27/apache onto Windows XP.  I'm > > following the instructions that recommends mod_python.  Mod_python is > > no longer available.  What is it's replacement?  Will apache wor

How to store and retrieve objects to/from session?

2010-08-28 Thread Andy
I know I can store simple key/value pairs to session. Is it possible to store entire objects to session? I want to enable un-logged-in users to submit form data. After the form is submitted, I want to store the form data in session and then redirect the user to sign-in. After they sign in, I'd ret

Re: How to store and retrieve objects to/from session?

2010-08-28 Thread Jonas Obrist
Have you tried to just dump the object into the session? On Aug 28, 2010 12:41 PM, "Andy" wrote: > I know I can store simple key/value pairs to session. Is it possible > to store entire objects to session? > > I want to enable un-logged-in users to submit form data. After the > form is submitted,

reverse() and include('app, namespace='app)

2010-08-28 Thread Almad
Hi, I have encountered strange behavior with urls.py: namespacing application breaks all reverse()s inside it. Detailed description is here: http://stackoverflow.com/questions/3578922/how-to-do-reverse-url-search-in-django-namespaced-reusable-application Have I missed something, is it a feature

Re: mod_wsgi setup issue

2010-08-28 Thread Robbington
I use a Cherokee, Uwsgi setup. It really takes the hassle out of it as the Cherokee admin interface just has a wizard that you point to the uwsgi.xml file. On Aug 28, 7:53 am, Graham Dumpleton wrote: > On Aug 28, 2:48 pm, Joel Klabo wrote: > > > All the files are shown here:http://gist.github.co

set_language redirect view with Internet Explorer

2010-08-28 Thread Stephan
On a page I give the user the option to choose different languages. For this I use the set_language redirect view. This works fine with the Mozilla Firefox Browser. Only with the Internet Explorer it does not work. There are no changes in the language. What can I do to make it even works in Interne

Re: Мобильная версия

2010-08-28 Thread Vanger - irk
Спасибо за перевод моего вопроса, но тут дело в том, что я уже видел эту страницу, и список там далеко не полный, и тем более, список этот постоянно пополняется, с выходом новых ОС для мобильников. Как реализовать универсальный проверку? Создать свой словарь из кусков возможных User Agent'ов без ис

potential issue re in memory django file uploading.

2010-08-28 Thread david b.
Ok so I was looking through the code and I saw this (in django/core/files/uploadhandler.py) : FileUploadHandler ... def new_file(self, field_name, file_name, content_type, content_length, charset=None): """ Signal that a new file has been started. Warning: As with any da

Re: App for Registration/Authorization which is Email & Password based (not username)

2010-08-28 Thread Alexandre González
Try to start with this tutorial: http://docs.b-list.org/django-registration/0.8/quickstart.html You can find the templates (my biggest problem when I did it :p): http://github.com/yourcelf/django-registration-defaults/tree/master/regi

Re: potential issue re in memory django file uploading.

2010-08-28 Thread Graham Dumpleton
On Aug 28, 7:58 pm, "david b." wrote: > Ok so I was looking through the code and I saw this (in > django/core/files/uploadhandler.py) : > > FileUploadHandler > ... > >    def new_file(self, field_name, file_name, content_type, > content_length, charset=None): >        """ >        Signal that a

Re: potential issue re in memory django file uploading.

2010-08-28 Thread dave b
On 28 August 2010 22:46, Graham Dumpleton wrote: > > > On Aug 28, 7:58 pm, "david b." wrote: >> Ok so I was looking through the code and I saw this (in >> django/core/files/uploadhandler.py) : >> >> FileUploadHandler >> ... >> >>    def new_file(self, field_name, file_name, content_type, >> conte

Re: Мобильная версия

2010-08-28 Thread Christoffer Viken
There is a PHP solution: http://www.brainhandles.com/techno-thoughts/detecting-mobile-browsers (thanks google) But mostly it looks for a "HTTP_X_WAP_PROFILE" header, and does the usual user-agent test... But the good thing is that you can use keyword search... i.e "Blackberry", "iPhone", "Android",

Re: potential issue re in memory django file uploading.

2010-08-28 Thread dave b
On 28 August 2010 23:09, dave b wrote: > On 28 August 2010 22:46, Graham Dumpleton wrote: >> >> >> On Aug 28, 7:58 pm, "david b." wrote: >>> Ok so I was looking through the code and I saw this (in >>> django/core/files/uploadhandler.py) : >>> >>> FileUploadHandler >>> ... >>> >>>    def new_file

Re: potential issue re in memory django file uploading.

2010-08-28 Thread dave b
On 28 August 2010 23:21, dave b wrote: > On 28 August 2010 23:09, dave b wrote: >> On 28 August 2010 22:46, Graham Dumpleton wrote: >>> >>> >>> On Aug 28, 7:58 pm, "david b." wrote: Ok so I was looking through the code and I saw this (in django/core/files/uploadhandler.py) :

Re: Мобильная версия

2010-08-28 Thread Sergey Panfilov
Замучаетесь поддерживать список user-agent. По-моему, я видел приложение django-mobile, которое использует базу данных wurfl. On 27 авг, 05:42, Vanger - irk wrote: > не могу понять, как лучше реализовать определение того, что человек > зашел сейчас с мобилы, и что мне нужно подсунуть ему мобильну

Re: mod_wsgi setup issue

2010-08-28 Thread Timothy Makobu
here is my config: *** [m...@web101 www]$ cat myproject.wsgi import os import sys sys.path = ['/home/mako/webapps/www'] + sys.path from django.core.handlers.wsgi import WSGIHandler os.environ['DJANGO_SETTINGS_MODULE'] = 'timssite.settings' application = WSGIHandler() *** that's right outside th

Re: potential issue re in memory django file uploading.

2010-08-28 Thread Steve Holden
On 8/28/2010 9:50 AM, dave b wrote: > On 28 August 2010 23:21, dave b wrote: >> On 28 August 2010 23:09, dave b wrote: [...] >>> The documentation and code in django suggests that this is not the >>> case. So lets assume we are not using apache but another httpd of some >>> sort - then this prob

authentication through http authorization header

2010-08-28 Thread yupu
Dear Djangoer: I am new to Django. Please excuse me if the question is naive. I am trying to figure out if I could integrate my company's "access manager" with Django's authorization. Every time a user try to login my Django application, he/she got redirect to "access Manager" to put the company

Re: potential issue re in memory django file uploading.

2010-08-28 Thread Graham Dumpleton
On Aug 28, 11:21 pm, dave b wrote: > >>> So obviously my proposed attack is to simply say "content length is > >>> tiny" and "this file is actually HUGE". > >>> I hope I missed something :) I don't really want this to occur ... > > >> A decent web server such as Apache (under mod_wsgi) will stop

Re: potential issue re in memory django file uploading.

2010-08-28 Thread Steve Holden
On 8/28/2010 6:10 PM, Graham Dumpleton wrote: > On Aug 28, 11:21 pm, dave b wrote: > So obviously my proposed attack is to simply say "content length is > tiny" and "this file is actually HUGE". [...] > All up, I would suggest you are getting worked up over nothing. +1 regards Steve --

Re: potential issue re in memory django file uploading.

2010-08-28 Thread dave b
On 29 August 2010 08:28, Steve Holden wrote: > On 8/28/2010 6:10 PM, Graham Dumpleton wrote: >> On Aug 28, 11:21 pm, dave b wrote: >> So obviously my proposed attack is to simply say "content length is >> tiny" and "this file is actually HUGE". > [...] >> All up, I would suggest you are g

Re: potential issue re in memory django file uploading.

2010-08-28 Thread dave b
On 29 August 2010 13:17, dave b wrote: > On 29 August 2010 08:28, Steve Holden wrote: >> On 8/28/2010 6:10 PM, Graham Dumpleton wrote: >>> On Aug 28, 11:21 pm, dave b wrote: >>> So obviously my proposed attack is to simply say "content length is >>> tiny" and "this file is actually HUGE"

Re: potential issue re in memory django file uploading.

2010-08-28 Thread Graham Dumpleton
On Aug 29, 1:17 pm, dave b wrote: > On 29 August 2010 08:28, Steve Holden wrote: > > > On 8/28/2010 6:10 PM, Graham Dumpleton wrote: > >> On Aug 28, 11:21 pm, dave b wrote: > >> So obviously my proposed attack is to simply say "content length is > >> tiny" and "this file is actually HU

Re: potential issue re in memory django file uploading.

2010-08-28 Thread dave b
On 29 August 2010 13:33, Graham Dumpleton wrote: > > > On Aug 29, 1:17 pm, dave b wrote: >> On 29 August 2010 08:28, Steve Holden wrote: >> >> > On 8/28/2010 6:10 PM, Graham Dumpleton wrote: >> >> On Aug 28, 11:21 pm, dave b wrote: >> >> So obviously my proposed attack is to simply say "con