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'
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
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
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'
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 (
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
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
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
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
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
> 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
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
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
13 matches
Mail list logo