Re: secure argument to set_cookie should accept False

2006-11-01 Thread Shannon -jj Behrens
On 11/1/06, Don Arbow <[EMAIL PROTECTED]> wrote: > On Nov 1, 2006, at 4:19 PM, Shannon -jj Behrens wrote: > > Hi, > > I'm looking at > ttp://code.djangoproject.com/browser/django/trunk/django/http/__init__.py#L199. > It seems very natural to pass a value of False to the secure argument > instead

Re: UTF8 character set problem

2006-11-01 Thread Pythoni
Thank you for your reply. Finally I solved the problem. It was caused by a different versions of Django running on Linux and XP. The procedure how I found that was like this: I checked the imported data in text editor, that had utf8 support. Utf8 was OK. Then on XP I inserted some data, via Dj

Admin template variable reference?

2006-11-01 Thread iain duncan
Wondering if there exists somewhere some documentation listing *all* of the template variables available in the various admin views. If not, I think such a thing would be really really useful. Thanks Iain --~--~-~--~~~---~--~~ You received this message because y

No Module error - anyone seen this?

2006-11-01 Thread programguru
when i run my server, i continue to get this error when i created a project etc. in the dir where the files are stored, there is no file: mysite.urls -- anyone have an ideas as to why this is happening or how to correct it? running on Windows XP: ImportError at / No module named mysite.urls Req

Re: Yup, two more 0.91 -> 0.95 questions ...

2006-11-01 Thread ZebZiggle
Got'cha! That worked ... I'm now converted over to 0.95! Thanks for all of your great help Russ! -Sandy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: secure argument to set_cookie should accept False

2006-11-01 Thread Don Arbow
On Nov 1, 2006, at 4:19 PM, Shannon -jj Behrens wrote:Hi,I'm looking at ttp://code.djangoproject.com/browser/django/trunk/django/http/__init__.py#L199. It seems very natural to pass a value of False to the secure argumentinstead of None, but if you do this, it gets treated as if you passedsecure=Tr

Re: How to take more control of HTML form elements generated by Manipulators?

2006-11-01 Thread Russell Keith-Magee
On 10/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I really need it because the attributes I listed above, I think, are > really important when you need to work with JavaScript... > Any ideas? Thanks:-) At present, it's not easy. You need to write a FormField class (either writing from

Re: Yup, two more 0.91 -> 0.95 questions ...

2006-11-01 Thread Russell Keith-Magee
On 11/2/06, ZebZiggle <[EMAIL PROTECTED]> wrote: > > Wow ... I had no idea about that. I must have a ton of duplicate > records in production now. (more homework). > > What's the correct way to set a related object to null? By assignment, just as you would with any other attribute (i.e., instance

Re: UTF8 character set problem

2006-11-01 Thread Andy Dustman
On 10/30/06, Pythoni <[EMAIL PROTECTED]> wrote: > > Here are MySQL settings, both on Linux and XP windows > > > LINUX MySQL settings > +--++ > | Variable_name| Value | > +--+---

Re: Incompatible unicode django / mysql

2006-11-01 Thread Andy Dustman
On 11/1/06, mamcxyz <[EMAIL PROTECTED]> wrote: > > I having this error: > > OperationalError: (1267, "Illegal mix of collations > (latin1_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for > operation '='") > > When I try to run code like this: > > City.objects.filter(name='Medellín') > > I h

Re: Yup, two more 0.91 -> 0.95 questions ...

2006-11-01 Thread ZebZiggle
Wow ... I had no idea about that. I must have a ton of duplicate records in production now. (more homework). What's the correct way to set a related object to null? -S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Yup, two more 0.91 -> 0.95 questions ...

2006-11-01 Thread Russell Keith-Magee
On 11/2/06, ZebZiggle <[EMAIL PROTECTED]> wrote: > > Thx Russ! > > >> player.user.id = None > >> player.save() > > >Yes. (assuming that the desired behaviour is to create a new > > player as a result of your save) > > I assume you mean that player will get a new ID, but not that I'll end >

secure argument to set_cookie should accept False

2006-11-01 Thread Shannon -jj Behrens
Hi, I'm looking at ttp://code.djangoproject.com/browser/django/trunk/django/http/__init__.py#L199. It seems very natural to pass a value of False to the secure argument instead of None, but if you do this, it gets treated as if you passed secure=True. That's because the code is checking for eq

Inclusion Tab for Log in form

2006-11-01 Thread Merric Mercer
I am thinking of using an Inclusion Tag on each of my generic views, as a log on form, visible only to unauthenticated users. It's very straight foward to create an inclusion tag that returns a bland login form, but is it possible to create one that can uses the manipulators/validators that Dj

REST-like web services in Django

2006-11-01 Thread [EMAIL PROTECTED]
Hi everyone, Just thought I'd throw out an implementation I've been kicking around for an app I'm building. Just wanted to get the groups thoughts. I know this violates MVC in a way, you can do this writing out url files and views seperately, but some of the flexibility of having models define s

Incompatible unicode django / mysql

2006-11-01 Thread mamcxyz
I having this error: OperationalError: (1267, "Illegal mix of collations (latin1_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='") When I try to run code like this: City.objects.filter(name='Medellín') I have a working site where I need to perform a data upgrade, and is

Re: Does Django have convenient multilevel access?

2006-11-01 Thread carlwenrich
thanks much. --~--~-~--~~~---~--~~ 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 this group, send email to [EMAIL PROTECTED] F

stats for object views

2006-11-01 Thread zenx
Hi, I have created a stats field (PositiveIntegerField) in my objects and I want to use it for saving how many times the object has been showed to visitors but I don't want to make a database request everytime an object is viewed due to performance issues. I have seen http://code.djangoproject.com

Re: Does Django have convenient multilevel access?

2006-11-01 Thread Guillermo Fernandez Castellanos
Hi, I have a system with 3 levels of permissions in an app at work, and it has been relatively easy to do. You have three things that will help you: - The ability of creating "groups" with different permissions. - The @login_required and @permission_required, that will allow you a per-view restr

Does Django have convenient multilevel access?

2006-11-01 Thread carlwenrich
I know that you set up the admin interface with password-controlled access, but what I'm asking is whether you can set it up (easily) to allow public access to public info, password-contolled access to logged in users, and admin access to administrators, in other words, at least 3 levels. --~--~

Does Django have convenient multilevel access?

2006-11-01 Thread carlwenrich
I know that you set up the admin interface with password-controlled access, but what I'm asking is whether you can set it up (easily) to allow public access to public info, password-contolled access to logged in users, and admin access to administrators, in other words, at least 3 levels. --~--~

Re: Many-to-Many with Intermediate Table - How to?

2006-11-01 Thread yary
Wow, I hate being verbose and wrong at the same time in public. Take my previous post with a grain of salt while I rethink it! sorry... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Many-to-Many with Intermediate Table - How to?

2006-11-01 Thread yary
Russell Keith-Magee wrote: ... > That said, 'm2m with intermediate' is a relatively common use case, so > if you have any neat ideas on how to represent such a structure, feel > free to suggest them. The idea has been discussed before, but no > obvious solution has emerged (the real sticking point

Does django have built-in modules, classes, libraries, etc?

2006-11-01 Thread walterbyrd
I am still trying to get a sense of django. For example: does django have a class to build forms, and another for building reports, and another making calendars, etc? Or, does django not need that stuff, since you can probably get most of it from 3rd party scripts? --~--~-~--~~

Re: Yup, two more 0.91 -> 0.95 questions ...

2006-11-01 Thread ZebZiggle
Thx Russ! >> player.user.id = None >> player.save() >Yes. (assuming that the desired behaviour is to create a new > player as a result of your save) I assume you mean that player will get a new ID, but not that I'll end up with a duplication player record? --~--~-~--~~

Using admin js in template code

2006-11-01 Thread Guillermo Fernandez Castellanos
Hi, I've a model with a DateTimeField in it, and I'm creating a form to add objects. So, I create the form for the DateTimeField. Up to here, everything ok, it works. Now I would like to add the js helpers we can find when we use the admin to create an object (the little calendar and watch with

Re: translate app-name

2006-11-01 Thread patrickk
anyone? http://groups.google.com/group/django-users/browse_frm/thread/ 5a77015fbbf36ab2 thanks, patrick Am 24.10.2006 um 22:33 schrieb [EMAIL PROTECTED]: > > http://groups.google.com/group/django-users/browse_thread/thread/ > 5a77015fbbf36ab2/e80f1666cd824099?lnk=gst&q=installed+apps > +tra

Re: looking for Django Contractors

2006-11-01 Thread Cheng Zhang
On Nov 1, 2006, at 2:33 PM, Benjamin Ward wrote: > Hey good people, > > I'm wondering where i should post a Job availability? Is there a site > that could be recommended? > > I'm wanting to find some talented Django developers to work on a site > i'm building. It's a new site for the Record Labe

Image Upload..

2006-11-01 Thread Ray Dookie
Let me first say, I'm a Django noob and only recently picked up python last week after using Ruby on Rails for the past few months.Here's what I want to Do :I have 2 tables : CarsidtitledescriptionImages idcar_idimage_url - stores the path to the image.what i want do do.. is in a form allow say 5

Re: Index of an item in a QuerySet

2006-11-01 Thread Gábor Farkas
Frankie Robertson wrote: > On 01/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: >> samuel wrote: > I'm probably just not seeing it, but how do I go about getting the > index of an item in a query set? I.E., this article is the Xth article > in this queryset of articles sorted by date.

Re: Django SOAP server

2006-11-01 Thread Jure Čuhalev
On 11/1/06, tomass <[EMAIL PROTECTED]> wrote: > I had to change some code in the soap.py as it was pre-magic-removal, > but it's still not working for me. The changes I made were to change > "from django.utils.httpwrappers import HttpResponseServerError, > HttpResponse" to "from django.http impor

Re: slowly losing my ming w/ a django error in command line on windows

2006-11-01 Thread programguru
Interesting, DOS converts all of my lowercase folder names into UPPERCASE! After reading your post, and several others, I decided to change my folder names to upper case, and it solved the issue. Now, does anyone know if there is a way to configure DOS NOT to convert my folder names into upperca

Re: slowly losing my ming w/ a django error in command line on windows

2006-11-01 Thread programguru
Interesting, DOS converts all of my lowercase folder names into UPPERCASE! After reading your post, and several others, I decided to change my folder names to upper case, and it solved the issue. Now, does anyone know if there is a way to configure DOS NOT to convert my folder names into upperca

Re: Re: slowly losing my ming w/ a django error in command line on windows

2006-11-01 Thread programguru
Interesting, DOS converts all of my lowercase folder names into UPPERCASE! After reading your post, and several others, I decided to change my folder names to upper case, and it solved the issue. Now, does anyone know if there is a way to configure DOS NOT to convert my folder names into upperc

Re: Index of an item in a QuerySet

2006-11-01 Thread Frankie Robertson
On 01/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > samuel wrote: > >>> I'm probably just not seeing it, but how do I go about getting the > >>> index of an item in a query set? I.E., this article is the Xth article > >>> in this queryset of articles sorted by date. > >> If you're looping th

Re: Index of an item in a QuerySet

2006-11-01 Thread Gábor Farkas
samuel wrote: >>> I'm probably just not seeing it, but how do I go about getting the >>> index of an item in a query set? I.E., this article is the Xth article >>> in this queryset of articles sorted by date. >> If you're looping through them in the template with the 'for' tag, >> each time throu

linking related-objects in admin-interface

2006-11-01 Thread patrickk
I´d like to link related objects displayed in the admin-interface like this http://www.vonautomatisch.at/django/django_admin_1.jpg as you can see, the foreign-key fields are a link. question is: how do I get the URL to link these fields. moreover, it ´d be nice to check the permissions first .

Re: django for non-web apps?

2006-11-01 Thread sago
I've used Django as a web-service server. Still using HTTP, but with XML (sometime SOAP, but mainly custom dialects). I've then built other front-ends onto this using GUI technologies, rather than web-based. Its something I fell into from neccesity, but has been a practical and efficient way to

AW: serving xml files

2006-11-01 Thread Patrick Lauber
Thank you very much -Ursprüngliche Nachricht- Von: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Mikhail Gusarov Gesendet: Mittwoch, 1. November 2006 13:35 An: django-users@googlegroups.com Betreff: Re: serving xml files You ([EMAIL PROTECTED]) wrote: PL> I n

Re: serving xml files

2006-11-01 Thread Mikhail Gusarov
You ([EMAIL PROTECTED]) wrote: PL> I need to serve .xml files but the HTTP-Header Content-Type is HTML/Text. PL> How do i change this? Use from django.template import loader return HttpResponse(loader.render_to_string('geo/countries.xml', {'country_list': coutnry_list}),

serving xml files

2006-11-01 Thread Patrick Lauber
Hi, I need to serve .xml files but the HTTP-Header Content-Type is HTML/Text. How do i change this? My code in the view looks like: def countries(request): country_list = Countries.objects.all().order_by('name') return render_to_response('geo/countries.xml', {'country_list': country_lis

Re: Trouble with custom filters

2006-11-01 Thread [EMAIL PROTECTED]
Ok, it turns out that I wasn't loading the filters in my template. I had to do: {% load tags %} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Django SOAP server

2006-11-01 Thread tomass
Hi Folks, I'm interested in serving SOAP requests through Django. I've taken a look at the pages below, but I'm not sure what the current state of development is, as I couldn't get the example in 552 working. http://code.djangoproject.com/ticket/552 http://code.djangoproject.com/ticket/115 I ha

Trouble with custom filters

2006-11-01 Thread [EMAIL PROTECTED]
I can't seem to get custom filters working. My project looks like this: projectdir/templatetags/ projectdir/templatetags/__init__.py projectdir/templatetags/tags.py tags.py looks like this: def get_tag_wrapper(matchobj): from wsrn.pictures.models import Picture image_name = matchobj.gr

Re: Changing admin template for only certain models

2006-11-01 Thread Aidas Bendoraitis
Hello iain! Yesterday I faced the same problem with changing change_list_results.html, so I circumvented it adding custom javascript in admin/myapp/mymodel/change_list.html. The Javascript adds additional rows to the table with links using DOM. Depending on the results you want to achieve, you c

access_log timestamp

2006-11-01 Thread Carl Holm
Hello, After accessing various "admin" URLs, I am noticing a seemingly random toggling of the Apache access_log timestamps from between offset -0800, and -0600. Not sure if this is is a mod_python issue, or something to do with the Apache configuration. The setup is: Fedora 5 Apache 2.2.0-5.

Best way to handle "inline" editing of objects?

2006-11-01 Thread foot
Hiya, We've got a couple of "large models" (large as in they have lots of fields), which are closely related (reference each other through Foreign Keys) and are edited "inline" through a single very large form. This is currently achieved by using the 'follow' keyword argument passed to an AutoMa