Re: Count filtered by status

2009-03-20 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 15:48 +1100, Malcolm Tredinnick wrote: [...] > {% regroup status_counts by provider as s_counts %} > > {% for object in s_counts %} >{% ifchanged object.provider %} > {{ object.provider__name }} > {{

Re: Count filtered by status

2009-03-20 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 15:32 +1100, Malcolm Tredinnick wrote: > [...] > You then have something you can either merge with the provider objects > in the view (assigning each dictionary to an attribute on the provider > object that matches the "provider" key), or use some other way in the >

Re: Count filtered by status

2009-03-20 Thread Malcolm Tredinnick
On Fri, 2009-03-20 at 03:01 -0700, Jamie Pittock wrote: > Hi all, > > I have two models, Provider and Record. Record has the foreign key > provider_id. In my template I'm displaying how many records a > provider has by using object.record__set.count. If Record had a > status field, how would

Re: Sending attachments with django-contact-form

2009-03-20 Thread Dana
Your the man john, that worked with basically no modification, thanks a ton! On Mar 16, 8:27 pm, John Hensley wrote: > On Mar 16, 2009, at 3:46 PM, Dana wrote: > > > > > I am wondering what the simplest way to send an attachment with   > > django- > > contact-form

Re: how can i custom the comments framework ?

2009-03-20 Thread 馒头大神
thanks for you response ! i will visit this link ! 2009/3/21 Alex Gaynor > > > On Fri, Mar 20, 2009 at 12:48 PM, 小长乐 wrote: > >> >>hi every body , >>i'm new in django,and now i have a problem in my project .the >> built-in comment framework

Re: Compressing templates

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 9:22 PM, chachra wrote: > > Excellent. This would work. Except that this work would have to be > done on every page load, unless template (pre-rendered versions) get > cached? > > Thanks! > > > On Mar 20, 5:30 pm, Alex Gaynor

Re: Compressing templates

2009-03-20 Thread chachra
Excellent. This would work. Except that this work would have to be done on every page load, unless template (pre-rendered versions) get cached? Thanks! On Mar 20, 5:30 pm, Alex Gaynor wrote: > On Fri, Mar 20, 2009 at 8:28 PM, chachra wrote: > >

Re: I'm having some trouble with GenericForeignKey

2009-03-20 Thread Brian McKeever
Thank you. I appreciate the quick response. --~--~-~--~~~---~--~~ 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,

Re: Problem getting application to run with Apache2 and wsgi

2009-03-20 Thread Malcolm Tredinnick
On Fri, 2009-03-20 at 20:47 -0400, Jack Orenstein wrote: > I'm running Django 1.02 and my application is running with the > development server. I'm trying to move it over to Apache2 + wsgi. > > Here is my httpd.conf setup for wsgi: > > LoadModule wsgi_module modules/mod_wsgi.so >

Re: django. postgre and errors (integrity errors not raised as expected in unit tests)

2009-03-20 Thread Malcolm Tredinnick
On Fri, 2009-03-20 at 16:26 -0700, LD wrote: > Hi, > > Today I enforced strange situation, hope it is strange only for me nad > you will quickly tell me what stupidness I am doing. > > Well, today I have switched from sqlite to postgre. Everything was > perfect since I've tried to run set of

Problem getting application to run with Apache2 and wsgi

2009-03-20 Thread Jack Orenstein
I'm running Django 1.02 and my application is running with the development server. I'm trying to move it over to Apache2 + wsgi. Here is my httpd.conf setup for wsgi: LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias /foobar/ "/var/www/html/foobar/wsgi_handler.py"

RE: Permission model's CharField fields, name and codename, too short

2009-03-20 Thread Malcolm Tredinnick
On Fri, 2009-03-20 at 13:40 -0400, Giovannetti, Mark wrote: [...] > Yes, the search I performed turned up a few others, too. > One was two years old, the other is 7 months old. Opening a new ticket would not have helped that at all. Normally people create dupes because they are unaware of the

Re: I'm having some trouble with GenericForeignKey

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 6:28 PM, Brian McKeever wrote: > > What am I doing wrong? > Is there any other way to do what I want? > I'm basically trying to implement the GOF's strategy design pattern > (the real code is more complicated than this example). > > ## my models > class

django. postgre and errors (integrity errors not raised as expected in unit tests)

2009-03-20 Thread LD
Hi, Today I enforced strange situation, hope it is strange only for me nad you will quickly tell me what stupidness I am doing. Well, today I have switched from sqlite to postgre. Everything was perfect since I've tried to run set of unit tests for my project. Every time my tests deals with

I'm having some trouble with GenericForeignKey

2009-03-20 Thread Brian McKeever
What am I doing wrong? Is there any other way to do what I want? I'm basically trying to implement the GOF's strategy design pattern (the real code is more complicated than this example). ## my models class Donkey(models.Model): name = models.CharField(max_length=11) class Barn(

Re: ManyToOne from User

2009-03-20 Thread Malcolm Tredinnick
On Fri, 2009-03-20 at 13:14 -0400, Amit Prahesh wrote: > Hello, > > I have a model that should have a group of users related to it. > Basically much like Django's Group. Now, normally this kind of > relation is easily done by puting in the user object a ManyToOne field > to the 'container'

Re: Compressing templates

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 8:28 PM, chachra wrote: > > Agreed. I was just wondering if people using Django do this often, and > if there is a "django way" of doing it! > > I have the fabric bit working, albeit serially. But looking at some > library to compress html

Re: Compressing templates

2009-03-20 Thread chachra
Agreed. I was just wondering if people using Django do this often, and if there is a "django way" of doing it! I have the fabric bit working, albeit serially. But looking at some library to compress html templates, before launching new code. Thanks! On Mar 20, 4:23 pm, Alex Gaynor

Re: Dynamic app_label

2009-03-20 Thread Malcolm Tredinnick
On Fri, 2009-03-20 at 11:38 -0400, Dan Mallinger wrote: > Thanks Malcolm. I'll try and look into this when I have a little > time. It would be nice to be able to contribute By the way, I believe this problem really shouldn't be that hard to fix, so it isn't a bad way to start out diving into

Re: precision for float numbers in templates rendering

2009-03-20 Thread Malcolm Tredinnick
On Fri, 2009-03-20 at 07:29 -0700, ihome wrote: > Hi, > > I have to load lots of float numbers into my html pages in list or > list of list format. Even though django template allows me to use a > filter to control the precision of float numbers it is still a pain. > So are the use of "%.2f"

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread elm
Thanks ... I will keep trying My temporary solution is to have my own apache process running on another port (i.e. 8000) (Here we don't experience the coding problems) We have configured the main apache (on port 80) to act as a proxy to my "private" apache ... and the user experiences a clean

Re: Compressing templates

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 7:19 PM, chachra wrote: > > Hi, > > Sorry if this has been discussed before. I am minifying my js/css > using a simply python script + yui compressor. > > I would like to write a "deploy script" that takes all my code + > removes all white spaces,

Compressing templates

2009-03-20 Thread chachra
Hi, Sorry if this has been discussed before. I am minifying my js/css using a simply python script + yui compressor. I would like to write a "deploy script" that takes all my code + removes all white spaces, newlines etc. from all my template (.html) files. This should help improve page loads

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread Ian Kelly
On Mar 20, 3:00 pm, elm wrote: > Thanxs for the advice Ian!!! > > But unfortunately I haven't been succesful. > > I have set the NLS_LANG to .UTF8 in the directive at the > apache conf file: > > >     SetHandler python-program >     PythonHandler

Re: RichTextField widget for django

2009-03-20 Thread Joshua Partogi
Thanks Greg :-) On Mar 21, 1:27 am, Greg Fuller wrote: > http://code.google.com/p/django-fckconnector/http://code.google.com/p/django-tinymce/ > > On Mar 20, 7:37 am, Joshua Partogi wrote: > > > Dear all, > > > Does anyone know where I can get an

Re: Showing forms based on on selected fields

2009-03-20 Thread Briel
Hi. If you want to do anything clientside, meaning you want to react on input fields being selected or certain values being input ect you need javascript. Django can only react on data being sent or urls being asked for, not what the user is typing. Now it's not clear exactly you what it is you

Re: DRY - fixing some duplicate code

2009-03-20 Thread adelevie
I didn't take a detailed look at the code, but can't you just make a function that is called by both view functions? On Mar 20, 12:15 pm, nerdydork wrote: > I have the following two functions (not complete, but should give you > an idea of what I'm

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Brandon Taylor
Hmm. I might downgrade my cs_Oracle and see if that makes a difference. I double-checked my import statements and they match what you have: from tagging.models import Tag from tagging.fields import TagField but still, no dice. I'll post my findings here. It may well be a bug in cx_Oracle-5.0.1.

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread elm
Thanxs for the advice Ian!!! But unfortunately I haven't been succesful. I have set the NLS_LANG to .UTF8 in the directive at the apache conf file: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE reportes_edd.settings

Re: troubleshooting runserver

2009-03-20 Thread QUILAD
Yes, it was the firewall. Thanks Colin! On Mar 20, 12:46 pm, Colin Bean wrote: > On Fri, Mar 20, 2009 at 11:28 AM, QUILAD wrote: > > > I'm starting my first Django python project.  Running on Linux RH4 > > server. > > > When I run > > manage.py runserver

Re: add https to django

2009-03-20 Thread djanm...@gmail.com
Hi, > I'd recommend you use all the power of your webserver for this (apache > or nginx or whatever). There should be no specific modifications on > the django site if you do it right. Thank you for your recommandation, actualy i try with a short django application. > I think this gui has the

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Ian Kelly
On Mar 20, 1:52 pm, Brandon Taylor wrote: > Hmm. Well, I guess the only thing left to ask is what version of > Django and Tagging you're running? > > I'm using Oracle 10g, cx_Oracle-5.0.1, Django and Tagging from svn. > Other than that, I'm at a loss :) The same, but

Re: RichTextField widget for django

2009-03-20 Thread Paulo Köch
Thank you! Cheers, Paulo Köch On Fri, Mar 20, 2009 at 14:27, Greg Fuller wrote: > > http://code.google.com/p/django-fckconnector/ > http://code.google.com/p/django-tinymce/ > > On Mar 20, 7:37 am, Joshua Partogi wrote: >> Dear all, >> >> Does

Re: Django versioning and backup best practice

2009-03-20 Thread Fabio Natali
Hernan Olivera wrote: [...] > Anyway, It was a little dataentry system. Now I am working in a bigger > project with mysql or postgress, depending on performance issues. I > will test both. (Django is my friend) Hi Hernan! Thank you very much for sharing your thoughts and experience, I

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Brandon Taylor
Ugh, sorry, that's: fields.py, not forms.py On Mar 20, 2:54 pm, Brandon Taylor wrote: > When you say "fixed the import" how so? I'm not seeing where I can > import TagField from any other location in tagging other than > forms.py. > > On Mar 20, 2:52 pm, Brandon Taylor

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Brandon Taylor
When you say "fixed the import" how so? I'm not seeing where I can import TagField from any other location in tagging other than forms.py. On Mar 20, 2:52 pm, Brandon Taylor wrote: > Hmm. Well, I guess the only thing left to ask is what version of > Django and Tagging

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Brandon Taylor
Hmm. Well, I guess the only thing left to ask is what version of Django and Tagging you're running? I'm using Oracle 10g, cx_Oracle-5.0.1, Django and Tagging from svn. Other than that, I'm at a loss :) b On Mar 20, 2:12 pm, Ian Kelly wrote: > On Mar 20, 12:08 pm,

Re: troubleshooting runserver

2009-03-20 Thread Colin Bean
On Fri, Mar 20, 2009 at 11:28 AM, QUILAD wrote: > > I'm starting my first Django python project.  Running on Linux RH4 > server. > > When I run > manage.py runserver 10.112.112.12:8080 > > I get: > > Validating models... > 0 errors found > > Django version 1.0.2 final, using

Django web site upload problem

2009-03-20 Thread YuDe
Hi, I have been browsing the documentation, but I could not find obvious link to instructions of uploading the file that created through tutorials. I have a server and use winSCP to upload htmls. Is there a page that instruct us how to publish webpages? This should be very easy. Thank You.

troubleshooting runserver

2009-03-20 Thread QUILAD
I'm starting my first Django python project. Running on Linux RH4 server. When I run manage.py runserver 10.112.112.12:8080 I get: Validating models... 0 errors found Django version 1.0.2 final, using settings 'repairwf.settings' Development server is running at http://10.112.112.12:8080/

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread Ian Kelly
On Mar 20, 11:16 am, Ian Kelly wrote: > As far as I know, the NLS_LANG environment variable is the only way to > specify the client encoding in cx_Oracle.  If that can't be relied > upon within your Apache process, then I think you would need to run > Django either as a

Re: Django annotate with Count() problem

2009-03-20 Thread eli
> Seems like you're seeing this:http://code.djangoproject.com/ticket/10060 Yes, It's a big bug. > Try to add distinct() to query set. It's work.. Thanks Alex... distinct is not very fast but it's last way to fix the problem... Proper query: e = File.objects.annotate(comment_cnt=Count('comment',

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Ian Kelly
On Mar 20, 12:08 pm, Brandon Taylor wrote: > Nope, still not working. If you're not defining tags = TagField() in > the model, how are you defining it? As a CharField? I'd like to see > how your model is set up. > > Of course, if I create a CharField and call it tags, it

Re: Django annotate with Count() problem

2009-03-20 Thread Alex Koshelev
Try to add distinct() to query set. On Fri, Mar 20, 2009 at 10:06 PM, eli wrote: > > Hi, > > I have a problem with Django Orm annotate method.. > > My models (application: app): > > class File(models.Model): >  name = models.CharField(max_length=255) >  file =

Re: Django annotate with Count() problem

2009-03-20 Thread eli
I'm using latest SVN version of Django (10105 revision) regards. --~--~-~--~~~---~--~~ 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

Re: Django annotate with Count() problem

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 3:06 PM, eli wrote: > > Hi, > > I have a problem with Django Orm annotate method.. > > My models (application: app): > > class File(models.Model): > name = models.CharField(max_length=255) > file = MyFileField(upload_to=...) > > class

Django annotate with Count() problem

2009-03-20 Thread eli
Hi, I have a problem with Django Orm annotate method.. My models (application: app): class File(models.Model): name = models.CharField(max_length=255) file = MyFileField(upload_to=...) class Visit(models.Model): file = models.ForeignKey(File) class Comment(models.Model): file =

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Brandon Taylor
Nope, still not working. If you're not defining tags = TagField() in the model, how are you defining it? As a CharField? I'd like to see how your model is set up. Of course, if I create a CharField and call it tags, it will show up. Even overriding the form for the admin, and overriding tags:

Re: get translated text from ugettext_lazy() result

2009-03-20 Thread Matej
Yes this was it. My field is ui = models.SmallIntegerField(default=0,choices=RATING_CHOICES) Thank you very much. On Feb 26, 10:31 pm, Arien wrote: > [fixed top-posting] > > > > On Thu, Feb 26, 2009 at 09:31,Matej wrote: > > On Feb 26, 3:38 pm,

Poll system (polldaddy) ?.

2009-03-20 Thread rdgmor...@gmail.com
Hello group, I like to know an software (poll system) that doing a per month classification of totalization of votes. I was testing the polldaddy software, but the same do not show-me a per-month classification of all votes. If somebody know of any softwares that resolves this limitation and

ManyToOne from User

2009-03-20 Thread Amit Prahesh
Hello, I have a model that should have a group of users related to it. Basically much like Django's Group. Now, normally this kind of relation is easily done by puting in the user object a ManyToOne field to the 'container' model. However, I don't actually have a User object since I'm using the

RE: Permission model's CharField fields, name and codename, too short

2009-03-20 Thread Giovannetti, Mark
> -Original Message- > From: django-users@googlegroups.com > [mailto:django-us...@googlegroups.com] On Behalf Of Malcolm Tredinnick > Sent: March 19, 2009 22:18 > To: django-users@googlegroups.com > Subject: Re: Permission model's CharField fields, name and > codename, too short > >

Re: can't connect with dbshell

2009-03-20 Thread Adrian R.
On 20 Mrz., 17:21, Ramiro Morales wrote: > On Wed, Mar 18, 2009 at 7:23 PM, waltbrad wrote: > > > First time I think I've ever tried this. I'm using postgres and the > > database is configured correctly and I have psql.exe on my path. > > > So at the

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread Ian Kelly
On Mar 20, 6:51 am, elm wrote: > > Are you sharing the web server with web applications written using > > something else, such as PHP? If PHP is playing with the language > > settings, you might be hitting an ordering problem. That is, it works > > if any PHP code gets

Showing forms based on on selected fields

2009-03-20 Thread DanielM
Hi there, i am trying to implement a contact form where some fields are shown by default and others shall be shown if some of default is selected. What my options of implementing this feature would be? 1. Javascript into the template - but then how would i change the shown template if anything

Re: how can i custom the comments framework ?

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 12:48 PM, 小长乐 wrote: > >hi every body , >i'm new in django,and now i have a problem in my project .the > built-in comment framework has several fields like name ,urls,comment > and so on! but in my project ,i only want the users to input the >

how can i custom the comments framework ?

2009-03-20 Thread 小长乐
hi every body , i'm new in django,and now i have a problem in my project .the built-in comment framework has several fields like name ,urls,comment and so on! but in my project ,i only want the users to input the comment field only,so how can i custom the comments framework ? or any

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Brandon Taylor
Hmm. Curious. The exact same code works with MySQL and SQLite3 for me. Oh well, let me switch it up and see if it's happy. Kind regards, b On Mar 20, 11:37 am, Ian Kelly wrote: > On Mar 20, 8:26 am, Brandon Taylor wrote: > > > Hi Ian, > > >

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Ian Kelly
On Mar 20, 8:26 am, Brandon Taylor wrote: > Hi Ian, > > Thanks for the response. The test case is adding the TagField() to any > model. > > Here's an excerpt from my model class: > > #models.py > from django.db import models > from django.contrib import admin > from

Re: Django versioning and backup best practice

2009-03-20 Thread Hernan Olivera
Hi Fabio! I have used a similark workflow withouth problems, no matters with the db svn backup. I have also deleted (sometimes renamed) my development db file to prevent overwriting the svn version, but if you are ordered and write appropiate messages when commit, it's easy to fix (I have

Re: can't connect with dbshell

2009-03-20 Thread Ramiro Morales
On Wed, Mar 18, 2009 at 7:23 PM, waltbrad wrote: > > First time I think I've ever tried this. I'm using postgres and the > database is configured correctly and I have psql.exe on my path. > > So at the dos prompt I can: > > C:\>psql -d postgres -U admin > > type in the

DRY - fixing some duplicate code

2009-03-20 Thread nerdydork
I have the following two functions (not complete, but should give you an idea of what I'm doing): http://dpaste.com/16964/ Lines 5-44 and 51-90 were a basic copy/paste job. How do I pull those out into a separate function, or have the first function call the other and still get the variables I

Re: Django versioning and backup best practice

2009-03-20 Thread Fabio Natali
Hi Andy! Thanks for your kind reply. Andy Mckay wrote: [...] > Best practice imho is not to use SQL lite for anything other than > quickly playing around. I would strongly recommend postgres (other > people my recommend others). - I'll manage quite a small bunch of data, say personal

Re: can't connect with dbshell

2009-03-20 Thread Adrian R.
Same problem here and no additional information. Could somebody please help us? Thank you! On 18 Mrz., 23:23, waltbrad wrote: > First time I think I've ever tried this. I'm using postgres and the > database is configured correctly and I have psql.exe on my path. > > So at

Re: Dynamic app_label

2009-03-20 Thread Dan Mallinger
Thanks Malcolm. I'll try and look into this when I have a little time. It would be nice to be able to contribute Cheers, Dan On Thu, Mar 19, 2009 at 6:38 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Thu, 2009-03-19 at 12:53 -0700, Dan wrote: > > Hi all, > > > > Is there a

Re: Absolute URL

2009-03-20 Thread Rajesh D
On Mar 20, 6:16 am, Alfonso wrote: > Hi, > > Insanely simple answer here I think but I'm trying to sort some url > errors in a mapping app.  Virtual earth requires an absolute url to > the KML file django is generating for me and I can't seem to work out > how to

Re: Map events in space on a django app

2009-03-20 Thread Alessandro
On Fri, Mar 20, 2009 at 11:02 AM, Dougal Matthews wrote: > You might find this useful. It's an app aimed at google map usage with django. > > http://code.google.com/p/django-googlemap/ it seems a bit outdated, I think it's not 1.0 compatible. I'll look into this code,

precision for float numbers in templates rendering

2009-03-20 Thread ihome
Hi, I have to load lots of float numbers into my html pages in list or list of list format. Even though django template allows me to use a filter to control the precision of float numbers it is still a pain. So are the use of "%.2f" each to dump the float numbers. Does anyone know whether

Re: RichTextField widget for django

2009-03-20 Thread Greg Fuller
http://code.google.com/p/django-fckconnector/ http://code.google.com/p/django-tinymce/ On Mar 20, 7:37 am, Joshua Partogi wrote: > Dear all, > > Does anyone know where I can get an opensource plug and play > RichTextField widget for django out there? > > Thank you very

Re: Django-Tagging not working with Oracle

2009-03-20 Thread Brandon Taylor
Hi Ian, Thanks for the response. The test case is adding the TagField() to any model. Here's an excerpt from my model class: #models.py from django.db import models from django.contrib import admin from tagging.models import Tag from tagging.forms import TagField class

RichTextField widget for django

2009-03-20 Thread Joshua Partogi
Dear all, Does anyone know where I can get an opensource plug and play RichTextField widget for django out there? Thank you very much in advance. -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.wordpress.com/ Follow me on twitter:

Re: Variables in parent template

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 7:20 AM, Antonio wrote: > > Hello. > > My site actually uses templates extending a base template "base.html". > Now I would like to include in each page of the site a search form. > Obviously I have to work on base template. > > The "immediate" solution

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread elm
> Are you sharing the web server with web applications written using > something else, such as PHP? If PHP is playing with the language > settings, you might be hitting an ordering problem. That is, it works > if any PHP code gets executed first in a specific process and doesn't > otherwise, or

Variables in parent template

2009-03-20 Thread Antonio
Hello. My site actually uses templates extending a base template "base.html". Now I would like to include in each page of the site a search form. Obviously I have to work on base template. The "immediate" solution is writing raw html to display the form. But is that the only solution? I was

Re: Getting logged in username in admin

2009-03-20 Thread Joshua Partogi
Thanks Alex. It worked beautifully now. Regards, On Mar 20, 12:43 am, Alex Gaynor wrote: > On Thu, Mar 19, 2009 at 9:32 AM, Joshua Partogi wrote: > > > > > > > Dear all, > > > How do I get the current logged in user to be used and inserted to a

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread Graham Dumpleton
On Mar 20, 10:06 pm, elm wrote: > Thanks for the hint, > > > > > Indeed, that's the latin1 encoding of 'OTOÑO', notutf8.  Maybe Oracle > > is getting somehow getting the client encoding confused.  Try setting > > the environment variable NLS_LANG = '.UTF8' for the

Re: Django versioning and backup best practice

2009-03-20 Thread Andy Mckay
On 20-Mar-09, at 3:15 AM, Fabio Natali wrote: > However, on updating the website, I must be very *careful* and run a > selective update/merge: I must not overwrite the data.db file which is > on the web server and actually the most important piece of the story. Best practice imho is not to use

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread elm
Thanks for the hint, > > Indeed, that's the latin1 encoding of 'OTOÑO', notutf8. Maybe Oracle > is getting somehow getting the client encoding confused. Try setting > the environment variable NLS_LANG = '.UTF8' for the Apache process. I will explore that path. It clearly has some relation

Absolute URL

2009-03-20 Thread Alfonso
Hi, Insanely simple answer here I think but I'm trying to sort some url errors in a mapping app. Virtual earth requires an absolute url to the KML file django is generating for me and I can't seem to work out how to define that in the urls.py. of course I can just prepend the site root to the

Django versioning and backup best practice

2009-03-20 Thread Fabio Natali
Dear all! My Django project comes in 3 copies: - svn repository - local development on my pc - real web site I use an sqlite file to store my data. I keep it in my project folder itself. My workflow: - work locally - update the svn repo - log onto the web server and run an update from the

Re: Map events in space on a django app

2009-03-20 Thread Dougal Matthews
You might find this useful. It's an app aimed at google map usage with django. http://code.google.com/p/django-googlemap/ Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/3/20 Alessandro : > > On Fri, Mar 20, 2009 at 3:23 AM, Andy Mckay

Count filtered by status

2009-03-20 Thread Jamie Pittock
Hi all, I have two models, Provider and Record. Record has the foreign key provider_id. In my template I'm displaying how many records a provider has by using object.record__set.count. If Record had a status field, how would I display how many records with a particular status a provider had?

Re: problem about "You appear not to have the 'sqlite3' program installed or on your path."

2009-03-20 Thread Johan
If i remember correctly anywhere on the path should be fine. On Mar 20, 11:05 am, osamu wrote: > I'm stuck here as well, donno where i should put sqlite3.exe in order > to use it --~--~-~--~~~---~--~~ You received this message because you are

Re: How to properly use limit_choices_to on self-joins

2009-03-20 Thread Laran Evans
Bump. Anyone? Is this so easy that nobody's challenged to answer it? Or is this something weird that I'm doing? - laran On Mar 19, 1:20 pm, Laran Evans wrote: > I have a Company class. A Company has many Clients, each of which is > also a Company. The problem I have is

Re: problem about "You appear not to have the 'sqlite3' program installed or on your path."

2009-03-20 Thread osamu
I'm stuck here as well, donno where i should put sqlite3.exe in order to use it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Model field validation available in 0.96 but removed in 1.0?

2009-03-20 Thread bruno desthuilliers
On 20 mar, 06:50, Crispin Wellington wrote: > Hey there. > > I want to add a custom validator to a model field. In django 0.96 there > was the validator_list parameter that could easily do this for me. Now > it is no more. Also django.core.validators is gone.

Re: My web page can not be Internationalized

2009-03-20 Thread Eric
There is the source code: //when you fill up all the form option and submit it , it will execute this if request.method == 'POST': lang_code=request.POST.get("language",request.LANGUAGE_CODE) if check_for_language(lang_code) and lang_code !=

Re: Map events in space on a django app

2009-03-20 Thread Alessandro
On Fri, Mar 20, 2009 at 3:23 AM, Andy Mckay wrote: > > > You need two fields on a model, longitude and latitude. The rest of it > is pure Javascript to place the pin on a map. You can see javascript I > used for my site on http://www.cleartrain.ca, if you really want to > see