Re: newforms and views

2006-12-28 Thread Osso
I have yet to get into the new forms so I can answer you precisely but you should try something like: class MemberDescriptionForm(forms.Form): - user = forms.CharField() +user_id = forms.CharField() You probably have to write to your own code to convert the username to an id and I didn'

Re: Proposed Changes

2006-12-25 Thread Osso
I got the list wrong I meant: 1) GenericForeignKey doesn't work with select_related (instead of GenericRelations). I agree it can be tricky for queries with different types of related objects. It would be used for something like: myfavorites = Favorite.objects.filter(user=me) Then for each objec

Re: Virtualhost, Location, access to "root location"

2006-12-24 Thread Osso
Can you try using request.path instead request['PATH_INFO']? This all the conf we use for mod apache. Nothing special. PythonPath "['/home/curse/cursedjango'] + sys.path" PythonHandler django.core.handlers.modpython PythonDebug Off ServerName www.curse-gaming.com ServerAlias curse-gamin

Re: need some help with unordered_list

2006-12-24 Thread Osso
Sorry, my bad... who would have thought a simple list wouldn't work with that filter. I've looked at the source then saw your ticket. Example tests: list1 = ['item1'] list2 = ['item1', 'item2'] list3 = [['item1',[]], ['item2', []]] list4 = ['item1', ['item2', []]] list5 = [['item1', ['subitem1'

Re: Memcached Servers Failures

2006-12-24 Thread Osso
It does. The problem is that the socket is in blocking mode so when a server goes down the client waits at the socket.connect for a lot of time and that for each instance of python. Once the connection times out the server is marked as down for 30s, so the client works for 30s then stops again (

Re: Virtualhost, Location, access to "root location"

2006-12-23 Thread Osso
On Dec 21, 7:10 am, "Hans.Rauch" <[EMAIL PROTECTED]> wrote: If I'm using the developing server, I can access my test-object with "http://localhost:8000/test/index.html";. If I try the same project using apache2 virtualhost and call "http://dms.bildung.hessen.de/test/index.html";, I'll get an emp

Re: variables in Django Session

2006-12-23 Thread Osso
If you modify the variable directly it won't call the setter in the django session app. So you need to: # get the variable myform = request.session['myform'] # update it myform['field1']=someVariable # update your session request.session['myform'] = myform I had the same problem and that fixed

Re: Displaing Images and Static Paths

2006-12-23 Thread Osso
http://www.djangoproject.com/documentation/static_files/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

Re: need some help with unordered_list

2006-12-23 Thread Osso
On Dec 23, 10:03 pm, [EMAIL PROTECTED] wrote: Hi, I have the following list ['item 1', 'item 2', 'item 3'] and want the following output: item 1 item 2 item 3 Since this is not in the example for unordered_list I don't know how I can get this right. Is it possible with unordered_list ? I

Re: File Upload issues

2006-12-23 Thread Osso
On Dec 21, 2:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: # call the custom save() method from the manipulator # image upload seperate from the data save- this can be refractored to be more generic # save_FOO_file is an included method with a filefield

Re: Proposed Changes

2006-12-23 Thread Osso
> 3. generic relations, that are useful. I dont know if they've become > useful since before, but when I first tried them they didnt help me > much. The idea is a you have 2 fields, such as content_type, and > object_id, and another field called, lets say my_table_name. > my_table_name = TrueGen

Memcached Servers Failures

2006-12-23 Thread Osso
Hello, For our website (http://www.curse-gaming.com), we are using a pool of 8 servers. The problem is when a server goes down, or more precisely when one the memcached instances goes down, it crashes the whole website. We are actually using a modified version of the tummy's python memcached co

Re: Curse launches with Django platform

2006-12-23 Thread Osso
The only consequences of losing a session for us is the user getting delogged. So it is not a big deal. We have set it up, so that it can save the session data in the db as backup for when we'll need the system to be more reliable. --~--~-~--~~~---~--~~ You rece