Re: Django with Ajax

2008-05-09 Thread Monica Leko
On 5/9/08, Richard Dahl <[EMAIL PROTECTED]> wrote: > > I am not sure what the dom1.toxml() does, are you seeing: > > > > > > left="Necklace"/> > Yes, I am seeing this text. Darn. :( --~--~-~--~~~---~--~~ You received this message because

Re: Django with Ajax

2008-05-09 Thread Monica Leko
On 5/9/08, Richard Dahl <[EMAIL PROTECTED]> wrote: > > I am not sure what javascript library you are using based on the code Google maps. GXmlHttp is just like XmlHttpRequest Now I have this in my view: return HttpResponse(dom1.toxml(), mimetype="text/xml") And still my var xmlDoc = request

Django with Ajax

2008-05-09 Thread Monica Leko
Hi I am trying to use some simple AJAX call, and can't get right result. I am using this Javascript function: function filterMarkers(){ var request = GXmlHttp.create(); request.open('GET', '/lbs/' + "?q=placeholder, true); request.onreadystatechange = function() {

Changing admin index

2008-04-22 Thread Monica Leko
Hi Can I somehow exclude sites and auth from admin index page, and left only django apps? --~--~-~--~~~---~--~~ 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@googl

HTTPS, Django

2008-04-16 Thread Monica Leko
Hi Do I need to configure Django for HTTPS, or this is only relevant to server (Apache)? --~--~-~--~~~---~--~~ 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@google

Strange, strange behaviour

2008-04-13 Thread Monica Leko
My appname was app, ant then I renamed app to app_chart. My application works like a charm, but when I tried to run som unittests today, i got som unexpected error which wasn't there when app was the name of application File "C:\Python25\lib\site-packages\django\db\models\base.py", line 169, i

Checking exceptions

2008-03-10 Thread Monica Leko
Hi! What type of exception do you usually check when developing with Django? When you deleting, adding or updating database? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

form.ChoiceField

2008-03-06 Thread Monica Leko
Hi, how can I tell Django that model is ChoiceField, and therefore when I use form_from_model Django will draw radio buttons? Can admin interface have radio buttons for some models? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Permissions and login

2008-03-05 Thread Monica Leko
> The reason for this is to ensure a consistent API: an unauthenticated > user is represented by an object with all the same methods and > attributes as an authenticated user, but set up to fail all > authentication and permission checks, as if the unauthenticated user > is simply a user who

Permissions and login

2008-03-05 Thread Monica Leko
In Django book, page 189, authors are using following code: def vote(request): if request.user.is_authenticated and request.user.has_permit("polls.can_vote"): #vote here else: return HttpResponse("") Why first condition? Why checking is user authenticated? Doesn't the request.user.

Re: MEDIA_ROOT, what am I doing wrong?

2008-03-05 Thread Monica Leko
On 3/5/08, Pete Crosier <[EMAIL PROTECTED]> wrote: > > I think you're over-estimating Django a little when it comes to > serving media - check out > http://www.djangoproject.com/documentation/static_files/ > for details, it requires a little more work. Woho, it works. Thank you very much. I

MEDIA_ROOT, what am I doing wrong?

2008-03-05 Thread Monica Leko
In settings.py I have: MEDIA_ROOT = 'C:/Documents and Settings/Monica/Desktop/aab/projekt/templates/media/' Media folder is in 'templates', and 'images' folder is in 'media'. angry.gif is in 'images'. Following page, when requested, doesn't show the image, only text "No image"?! I don't underst

Maximum number of objects in admin interface

2008-03-04 Thread Monica Leko
Question for all: how change lists (in admin interface) behave when you have couple of thousands objects? What was the maximum number of object did you have in change lists? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G