Re: what's the right way to extend an admin view with AJAX?

2010-03-01 Thread derek
Before you give up hope ;) you should read this: http://djangoadvent.com/1.2/jquery-admin/ In the meanwhile, yes, there are a ton of good blog entries out there on how to extend the admin with javascript (usually jQuery). When I am feeling more organised, I will try and post some links here... O

Re: to_field connected to field in UserProfile

2010-03-01 Thread django_is
Thank you for your comment. Well I need the following possibilities: - Possibility to add payment methods in the admin without being fixed to several choices - Possibility to say: Customer 1 has payment methods: PayPal, CreditCard Customer 2 has payment methods: PayPal etc. So the ability to hav

Re: Django + Varnish. Keepalive?

2010-03-01 Thread Alessandro Ronchi
2010/2/25 Alessandro Ronchi : > I am using Varnish as a frontend proxy for my django apps. I usually > disable keepalive on apache, but in this case I've only one client (the > proxy on localhost) for apache, isn't it good to avoid closing and opening > connections? Isn't anyone using a proxy with

Re: Serving https with runserver

2010-03-01 Thread cool-RR
Adnan, I'm really baffled by your response. No, my reasons for using SSL here is not because I'm afraid someone will sniff my data, We are talking here about `runserver`, which is the development server which is never used for production. The goal of `runserver` is to be able to easily test how you

Re: Serving https with runserver

2010-03-01 Thread Gonzalo Delgado
El 01/03/10 07:07, cool-RR escribió: > Adnan, I'm really baffled by your response. No, my reasons for using > SSL here is not because I'm afraid someone will sniff my data, We are > talking here about `runserver`, which is the development server which > is never used for production. The goal of `ru

Creating a mailing list app with Django

2010-03-01 Thread grimmus
Hi, I have a mailing list subscription on my site. I would like to send out an email to all the people who have signed up through the site. I have a model for the subscribers and it's all fine. I am wondering how i would construct the html email in the Django admin area and send it out to all the

Re: Serving https with runserver

2010-03-01 Thread Ian Lewis
I can think of a number of reasons why you would want to test SSL behavior on your local machine before running it on a production server. Setup can be pretty annoying for one. I wrote a blog post on how to do this very thing a while back. I used stunnel, as Janusz mentioned, to test SSL redirect

Re: Creating a mailing list app with Django

2010-03-01 Thread Kenneth Gonsalves
On Monday 01 Mar 2010 4:16:21 pm grimmus wrote: > I have a mailing list subscription on my site. I would like to send > out an email to all the people who have signed up through the site. > here is a sample: http://bitbucket.org/lawgon/fossconf/src/tip/web/views.py see line 876 'bulkmail' -- r

Re: Serving https with runserver

2010-03-01 Thread Adnan Sadzak
Then maybe web server is the best option. In all cases you have to configure something until someday 'runserver' come with ssl support. On Mon, Mar 1, 2010 at 11:56 AM, Ian Lewis wrote: > I can think of a number of reasons why you would want to test SSL > behavior on your local machine before r

Re: DjangoUnicodeDecodeError sqlserver latin-1

2010-03-01 Thread PyMan
up, anyone? -- 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.com. For more options, visit thi

Re: DjangoUnicodeDecodeError sqlserver latin-1

2010-03-01 Thread Tom Evans
On Mon, Mar 1, 2010 at 11:52 AM, PyMan wrote: > up, anyone? > Django expects your database backend to return unicode values. Your DB backend returns latin1 byte strings. Therefore, django gets confused when you try to save the content, as it believes it has unicode values and it doesn't. The sol

Re: Serving https with runserver

2010-03-01 Thread Gonzalo Delgado
El 01/03/10 08:18, Adnan Sadzak escribió: > Then maybe web server is the best option. In all cases you have to > configure something until someday 'runserver' come with ssl support. It doesn't seem like that day will ever come: """ DON'T use this server in anything resembling a production environ

exceptions.UnicodeDecodeError in __deepcopy__

2010-03-01 Thread ssteinerX
I'm using get_or_create() through a relationship. The 'parent' record contains unicode data, and it's already been stored to the database. When I go to create the 'child' record it goes like this: get_or_create -> get -> order_by -> query.clone -> deepcopy Deep in the deepcopy, Python (copy_reg.

Re: Serving https with runserver

2010-03-01 Thread Jirka Vejrazka
>> Then maybe web server is the best option. In all cases you have to >> configure something until someday 'runserver' come with ssl support. I think that no one would really object if runserver was SSL-aware, however people requesting it need to be aware that having an SSL-aware webserver is si

Re: Django with Jquery

2010-03-01 Thread Romain Gaches
Le 28 févr. 2010 à 18:39, Alexis Selves a écrit : > Hello, > I am totally helpless. I am trying to use JQuery in my django > templates, but I always get in firebug this: $ not defined. Did you try with 'jQuery' instead of '$' ? If jQuery.no_conflict() was called, the $ variable isn't defined. I

Re: Serving https with runserver

2010-03-01 Thread Kenneth Gonsalves
On Monday 01 Mar 2010 5:55:41 pm Jirka Vejrazka wrote: > >> Then maybe web server is the best option. In all cases you have to > >> configure something until someday 'runserver' come with ssl support. > > I think that no one would really object if runserver was SSL-aware, > or you could have a

stackedinline admin form-set collapse

2010-03-01 Thread Simon Davies
Is there a way to collapse the stacked inline form-sets in the admin app, a parameter I can define in admin.py for inline class. Ideally this would work so I could have extra=1, which would give me the functionality of clicking to open the form to add another object. Thanks Simon -- You receiv

Re: DjangoUnicodeDecodeError sqlserver latin-1

2010-03-01 Thread Karen Tracey
On Mon, Mar 1, 2010 at 7:11 AM, Tom Evans wrote: > On Mon, Mar 1, 2010 at 11:52 AM, PyMan wrote: > > up, anyone? > > > > Django expects your database backend to return unicode values. Your DB > backend returns latin1 byte strings. Therefore, django gets confused > when you try to save the conten

Re: Django REST and FILEFIELD field

2010-03-01 Thread Malcolm Box
I've got this working in the past, but only by writing custom create() methods on the Collection and Entry classes. In the custom create() method you can process the POST/PUT data directly into the FileField just like you would for a normal form Malcolm On Thu, Feb 25, 2010 at 7:03 PM, manu.poll

Complex ManyToMany-Intersection-With-Set Query?

2010-03-01 Thread Alec Muffett
Hi Everybody! I floated this at #DJUGL last week, but I thought I would just open the question up to greater scrutiny; I have an iterative, slow solution which works, but I would love to solve the problem more efficiently. Rather than bury you under details, here's some pseudocode which illus

Re: Django with Jquery

2010-03-01 Thread grimmus
link to the Google jQuery instead of a local file (it's really fast too) http://google.com/jsapi"; />