Re: Django Donations App

2011-05-04 Thread Eugene MechanisM
https://launchpad.net/django-donation

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Limited set of languages available in Django i18n?

2011-05-04 Thread Tom Evans
On Wed, May 4, 2011 at 1:32 AM, Karen Tracey  wrote:
> On Tue, May 3, 2011 at 8:11 AM, Tom Evans  wrote:
>>
>> If you require your site
>> to be in Mongolian, it can be in Mongolian, even though Django does
>> not itself have a Mongolian translation,
>
> Need a better example. Django has had a Mongolian translation for a year
> now: http://code.djangoproject.com/changeset/13092.
>
> Karen

Darn, perhaps I should have stuck with Martian :)

Cheers

Tom

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to get view

2011-05-04 Thread doniyor
Hi there,
my problem is simple, i cannot redirect /wiwi/ to  /s/?o=key=./
because the second request does not have a view, but i set its view in
this way:

 View, args, kwargs = resolve(“/s/?o=key“)
 Kwargs['request']= request
 Return view(*args,**kwargs)


Why cannot i get now the view of second request ?

Thanks,
Btw, i am novice in django.

Doni

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



ANN: Two-level caching for Django

2011-05-04 Thread Malcolm Box
Hi,

We recently hit a bottleneck accessing a memcached server from Django on a
big site. To solve it, I created two-level cache with a local cache on each
Django box, and a global cache on the memcached machines.

Under the sort of loads we were seeing, this dramatically reduced the load
on the memcached servers. Best of all, it's a one line change to existing
code using Django's cache framework.

I've released the code here: https://gist.github.com/953524 in case it's
useful to anyone else. Some more background here:
http://attentionshard.wordpress.com/2011/04/03/scaling-to-30k-two-level-caches/

Hope this helps someone.

Cheers,

Malcolm

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to add datepicker (available in admin)

2011-05-04 Thread GKR
thanks but its giving an error like 

name 'AdminDateWidget' is not defined

please help it might be a configuration problem 

please help

thanks


-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to get view

2011-05-04 Thread Daniel Roseman
On Wednesday, May 4, 2011 9:34:08 AM UTC+1, doniyor wrote:
>
> Hi there, 
> my problem is simple, i cannot redirect /wiwi/ to  /s/?o=key=./ 
> because the second request does not have a view, but i set its view in 
> this way: 
>
>  View, args, kwargs = resolve(“/s/?o=key“) 
>  Kwargs['request']= request 
>  Return view(*args,**kwargs) 
>
>
> Why cannot i get now the view of second request ? 
>
> Thanks, 
> Btw, i am novice in django. 
>
> Doni


What on earth does any of this mean?  

You said that you don't have a view, then you say you want to get the view 
that you don't have. This makes no sense.

Please explain *exactly* what you're trying to do and why - forget the code, 
explain it in words.
--
DR.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



how to use jquery for date picker

2011-05-04 Thread GKR
how to use jquery for date picker

please help

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to use jquery for date picker

2011-05-04 Thread vikalp sahni
http://jqueryui.com/demos/datepicker/

Furthermore i think, this is not the right list for Jquery related queries.

Regards,
//Vikalp

On Wed, May 4, 2011 at 4:15 PM, GKR  wrote:

> how to use jquery for date picker
>
> please help
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to use jquery for date picker

2011-05-04 Thread GKR
sorry for that but I am going to use that for django

thanks

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to use jquery for date picker

2011-05-04 Thread vikalp sahni
are you planing to use that in place of django current date time picker
widget??

Which means are you looking to change the behaviour of Django Form,
DateTimeField to use Jquery??

I would suggest not to change default datepickerwidget, as it works like a
charm in admin forms.
You should though try implementing jquery datepicker on any other
application side form Thus not changing
the default behavior of date time widget of django.

Regards,
//Vikalp

On Wed, May 4, 2011 at 4:37 PM, GKR  wrote:

> sorry for that but I am going to use that for django
>
> thanks
>
>  --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Allow only one record in admin.ModelAdmin !

2011-05-04 Thread Toninho Nunes
Hi,

I have a table named Config, I need just only to limit to one record,
are there a method or property to do this? any tip ou advice how to
proceed? I use the admin.ModelAdmin.

details:
Django Version 1.3
Ubuntu 10.10 - 64bits
PostGresql 8.4


Thanks,

Toninho Nunes

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Error: No module named messages.

2011-05-04 Thread Jacob Scherffenberg
Have been working on an Error: No module named debug toolbar for a
couple hours, finally realized that i could just use the ubuntu
package system, to get it.
Thought that was all, but now i get Error: No module named messages.?
What to do?

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django admin site and debug

2011-05-04 Thread 492587


Check your admin.autodiscover () in urls.py it should be after all
models import

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Multiple SQLITE databases vs one BIG PostgreSQL database

2011-05-04 Thread VoodooH
Hello guys,

We currently have a desktop software that uses a sqlite embedded
database. We are now gonna develop the online version for our software
and we need your opinion on these matters :

1. We were thinking of giving our users the option to switch between
the online and offline version of the software by simply moving the
sqlite database between the two applications. This would save us a lot
of dev time for now, but we are afraid that we will have scalability
issues later. There will be around 10 000 users at least, so at least
10 000 sqlite independent databases. The other option of course is a
very big PostgreSQL database. There will be millions, if not tens of
millions of records in this BIG database.

Which version do you recommend between the two ? Should we go for the
fast development sqlite version or build a database from scratch and
make some import/export tools between the two apps ?

2. If we were to go for the big database version, which one yould you
recommend between PostgreSQL, MySQL and ORACLE ?

3. Any ideas on how it would be best to implement a sync tool between
the desktop and the SaaS if we go for the PostgreSQL version ?

Thank you very much !

Regards,
  Radu

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Allow only one record in admin.ModelAdmin !

2011-05-04 Thread vikalp sahni
sorry, didn't get you. << I need just only to limit to one record >>

is it something like you want one user to add only one record to certain
table from admin??



On Wed, May 4, 2011 at 10:41 AM, Toninho Nunes wrote:

> Hi,
>
> I have a table named Config, I need just only to limit to one record,
> are there a method or property to do this? any tip ou advice how to
> proceed? I use the admin.ModelAdmin.
>
> details:
> Django Version 1.3
> Ubuntu 10.10 - 64bits
> PostGresql 8.4
>
>
> Thanks,
>
> Toninho Nunes
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error: No module named messages.

2011-05-04 Thread David Markey
You're probably using a version of django that is too old.. the messages
framework was introduced in 1.2 i think?

On 4 May 2011 10:10, Jacob Scherffenberg  wrote:

> Have been working on an Error: No module named debug toolbar for a
> couple hours, finally realized that i could just use the ubuntu
> package system, to get it.
> Thought that was all, but now i get Error: No module named messages.?
> What to do?
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error: No module named messages.

2011-05-04 Thread Kenneth Gonsalves
On Wed, 2011-05-04 at 02:10 -0700, Jacob Scherffenberg wrote:
> Have been working on an Error: No module named debug toolbar for a
> couple hours, finally realized that i could just use the ubuntu
> package system, to get it.
> Thought that was all, but now i get Error: No module named messages.? 

what version of django?
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



[Django] Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread Aragorn
HI,

I can not understand where is the error. when you insert a
blog comment I receive an email, but this'
the email I receive !


Traceback (most recent call last):

 File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py", line 100, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/home/max/public_html/examplesite.com/django/dbe/blog/
views.py", line 78, in add_comment
   comment.save(notify=notify)

 File "/home/max/public_html/examplesite.com/django/dbe/blog/
models.py", line 44, in save
   self.body)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
41: ordinal not in range(128)


,
POST:,
COOKIES:{'csrftoken': 'e6f50f68eea775e6913acfa18363c8a9'},
META:{'CONTENT_LENGTH': '70',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
 'CSRF_COOKIE': 'e6f50f68eea775e6913acfa18363c8a9',
 'DOCUMENT_ROOT': '/etc/apache2/htdocs',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4',
 'HTTP_CACHE_CONTROL': 'max-age=0',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'csrftoken=e6f50f68eea775e6913acfa18363c8a9',
 'HTTP_HOST': '10.0.0.163',
 'HTTP_ORIGIN': 'http://10.0.0.163',
 'HTTP_REFERER': 'http://10.0.0.163/10/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/
534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24',
 'PATH_INFO': u'/add_comment/10/',
 'PATH_TRANSLATED': '/home/max/public_html/examplesite.com/django/dbe/
apache/myblog.wsgi/add_comment/10/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.0.0.6',
 'REMOTE_PORT': '6069',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/add_comment/10/',
 'SCRIPT_FILENAME': '/home/max/public_html/examplesite.com/django/dbe/
apache/myblog.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '10.0.0.163',
 'SERVER_ADMIN': 'y...@email.com',
 'SERVER_NAME': '10.0.0.163',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': 'Apache/2.2.16 (Ubuntu) Server at
10.0.0.163 Port 80\n',
 'SERVER_SOFTWARE': 'Apache/2.2.16 (Ubuntu)',
 'mod_wsgi.application_group': 'www.examplesite.com|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.handler_script': '',
 'mod_wsgi.input_chunked': '0',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': 'examplesite.com',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 2),
 'wsgi.errors': ,
 'wsgi.file_wrapper': ,
 'wsgi.input': ,
 'wsgi.multiprocess': True,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 1)}>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [Django] Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread David Markey
What is your database?


On 4 May 2011 12:44, Aragorn  wrote:

> HI,
>
> I can not understand where is the error. when you insert a
> blog comment I receive an email, but this'
> the email I receive !
>
>
> Traceback (most recent call last):
>
>  File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
> base.py", line 100, in get_response
>   response = callback(request, *callback_args, **callback_kwargs)
>
>  File "/home/max/public_html/examplesite.com/django/dbe/blog/
> views.py", line 78, in add_comment
>   comment.save(notify=notify)
>
>  File "/home/max/public_html/examplesite.com/django/dbe/blog/
> models.py", line 44, in save
>   self.body)
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
> 41: ordinal not in range(128)
>
>
>  GET:,
> POST: [u'e6f50f68eea775e6913acfa18363c8a9'], u'author': [u'cm']}>,
> COOKIES:{'csrftoken': 'e6f50f68eea775e6913acfa18363c8a9'},
> META:{'CONTENT_LENGTH': '70',
>  'CONTENT_TYPE': 'application/x-www-form-urlencoded',
>  'CSRF_COOKIE': 'e6f50f68eea775e6913acfa18363c8a9',
>  'DOCUMENT_ROOT': '/etc/apache2/htdocs',
>  'GATEWAY_INTERFACE': 'CGI/1.1',
>  'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/
> html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
>  'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
>  'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
>  'HTTP_ACCEPT_LANGUAGE': 'it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4',
>  'HTTP_CACHE_CONTROL': 'max-age=0',
>  'HTTP_CONNECTION': 'keep-alive',
>  'HTTP_COOKIE': 'csrftoken=e6f50f68eea775e6913acfa18363c8a9',
>  'HTTP_HOST': '10.0.0.163',
>  'HTTP_ORIGIN': 'http://10.0.0.163',
>  'HTTP_REFERER': 'http://10.0.0.163/10/',
>  'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/
> 534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24',
>  'PATH_INFO': u'/add_comment/10/',
>  'PATH_TRANSLATED': '/home/max/public_html/examplesite.com/django/dbe/
> apache/myblog.wsgi/add_comment/10/',
>  'QUERY_STRING': '',
>  'REMOTE_ADDR': '10.0.0.6',
>  'REMOTE_PORT': '6069',
>  'REQUEST_METHOD': 'POST',
>  'REQUEST_URI': '/add_comment/10/',
>  'SCRIPT_FILENAME': '/home/max/public_html/examplesite.com/django/dbe/
> apache/myblog.wsgi',
>  'SCRIPT_NAME': u'',
>  'SERVER_ADDR': '10.0.0.163',
>  'SERVER_ADMIN': 'y...@email.com',
>  'SERVER_NAME': '10.0.0.163',
>  'SERVER_PORT': '80',
>  'SERVER_PROTOCOL': 'HTTP/1.1',
>  'SERVER_SIGNATURE': 'Apache/2.2.16 (Ubuntu) Server at
> 10.0.0.163 Port 80\n',
>  'SERVER_SOFTWARE': 'Apache/2.2.16 (Ubuntu)',
>  'mod_wsgi.application_group': 'www.examplesite.com|',
>  'mod_wsgi.callable_object': 'application',
>  'mod_wsgi.handler_script': '',
>  'mod_wsgi.input_chunked': '0',
>  'mod_wsgi.listener_host': '',
>  'mod_wsgi.listener_port': '80',
>  'mod_wsgi.process_group': 'examplesite.com',
>  'mod_wsgi.request_handler': 'wsgi-script',
>  'mod_wsgi.script_reloading': '1',
>  'mod_wsgi.version': (3, 2),
>  'wsgi.errors': ,
>  'wsgi.file_wrapper':  mod_wsgi.Adapter object at 0x7f1963280c60>,
>  'wsgi.input': ,
>  'wsgi.multiprocess': True,
>  'wsgi.multithread': True,
>  'wsgi.run_once': False,
>  'wsgi.url_scheme': 'http',
>  'wsgi.version': (1, 1)}>
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread Aragorn
Sqlite3

On 4 Mag, 13:50, David Markey  wrote:
> What is your database?
>
> On 4 May 2011 12:44, Aragorn  wrote:
>
>
>
> > HI,
>
> > I can not understand where is the error. when you insert a
> > blog comment I receive an email, but this'
> > the email I receive !
>
> > Traceback (most recent call last):
>
> >  File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
> > base.py", line 100, in get_response
> >   response = callback(request, *callback_args, **callback_kwargs)
>
> >  File "/home/max/public_html/examplesite.com/django/dbe/blog/
> > views.py", line 78, in add_comment
> >   comment.save(notify=notify)
>
> >  File "/home/max/public_html/examplesite.com/django/dbe/blog/
> > models.py", line 44, in save
> >   self.body)
>
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
> > 41: ordinal not in range(128)
>
> >  > GET:,
> > POST: > [u'e6f50f68eea775e6913acfa18363c8a9'], u'author': [u'cm']}>,
> > COOKIES:{'csrftoken': 'e6f50f68eea775e6913acfa18363c8a9'},
> > META:{'CONTENT_LENGTH': '70',
> >  'CONTENT_TYPE': 'application/x-www-form-urlencoded',
> >  'CSRF_COOKIE': 'e6f50f68eea775e6913acfa18363c8a9',
> >  'DOCUMENT_ROOT': '/etc/apache2/htdocs',
> >  'GATEWAY_INTERFACE': 'CGI/1.1',
> >  'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/
> > html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
> >  'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
> >  'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
> >  'HTTP_ACCEPT_LANGUAGE': 'it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4',
> >  'HTTP_CACHE_CONTROL': 'max-age=0',
> >  'HTTP_CONNECTION': 'keep-alive',
> >  'HTTP_COOKIE': 'csrftoken=e6f50f68eea775e6913acfa18363c8a9',
> >  'HTTP_HOST': '10.0.0.163',
> >  'HTTP_ORIGIN': 'http://10.0.0.163',
> >  'HTTP_REFERER': 'http://10.0.0.163/10/',
> >  'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/
> > 534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24',
> >  'PATH_INFO': u'/add_comment/10/',
> >  'PATH_TRANSLATED': '/home/max/public_html/examplesite.com/django/dbe/
> > apache/myblog.wsgi/add_comment/10/',
> >  'QUERY_STRING': '',
> >  'REMOTE_ADDR': '10.0.0.6',
> >  'REMOTE_PORT': '6069',
> >  'REQUEST_METHOD': 'POST',
> >  'REQUEST_URI': '/add_comment/10/',
> >  'SCRIPT_FILENAME': '/home/max/public_html/examplesite.com/django/dbe/
> > apache/myblog.wsgi',
> >  'SCRIPT_NAME': u'',
> >  'SERVER_ADDR': '10.0.0.163',
> >  'SERVER_ADMIN': 'y...@email.com',
> >  'SERVER_NAME': '10.0.0.163',
> >  'SERVER_PORT': '80',
> >  'SERVER_PROTOCOL': 'HTTP/1.1',
> >  'SERVER_SIGNATURE': 'Apache/2.2.16 (Ubuntu) Server at
> > 10.0.0.163 Port 80\n',
> >  'SERVER_SOFTWARE': 'Apache/2.2.16 (Ubuntu)',
> >  'mod_wsgi.application_group': 'www.examplesite.com|',
> >  'mod_wsgi.callable_object': 'application',
> >  'mod_wsgi.handler_script': '',
> >  'mod_wsgi.input_chunked': '0',
> >  'mod_wsgi.listener_host': '',
> >  'mod_wsgi.listener_port': '80',
> >  'mod_wsgi.process_group': 'examplesite.com',
> >  'mod_wsgi.request_handler': 'wsgi-script',
> >  'mod_wsgi.script_reloading': '1',
> >  'mod_wsgi.version': (3, 2),
> >  'wsgi.errors': ,
> >  'wsgi.file_wrapper':  > mod_wsgi.Adapter object at 0x7f1963280c60>,
> >  'wsgi.input': ,
> >  'wsgi.multiprocess': True,
> >  'wsgi.multithread': True,
> >  'wsgi.run_once': False,
> >  'wsgi.url_scheme': 'http',
> >  'wsgi.version': (1, 1)}>
>
> > --
> > 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
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.- Nascondi testo citato
>
> - Mostra testo citato -

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to use jquery for date picker

2011-05-04 Thread Kenneth Gonsalves
On Wed, 2011-05-04 at 16:46 +0530, vikalp sahni wrote:
> are you planing to use that in place of django current date time
> picker
> widget?? 

if you had been following the thread, he wants to implement this outside
admin.
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread David Markey
sqlite3 uses unicode by default so you should be ok.


Is that the full stack trace? Can you post another?

On 4 May 2011 13:06, Aragorn  wrote:

> Sqlite3
>
> On 4 Mag, 13:50, David Markey  wrote:
> > What is your database?
> >
> > On 4 May 2011 12:44, Aragorn  wrote:
> >
> >
> >
> > > HI,
> >
> > > I can not understand where is the error. when you insert a
> > > blog comment I receive an email, but this'
> > > the email I receive !
> >
> > > Traceback (most recent call last):
> >
> > >  File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
> > > base.py", line 100, in get_response
> > >   response = callback(request, *callback_args, **callback_kwargs)
> >
> > >  File "/home/max/public_html/examplesite.com/django/dbe/blog/
> > > views.py", line 78, in add_comment
> > >   comment.save(notify=notify)
> >
> > >  File "/home/max/public_html/examplesite.com/django/dbe/blog/
> > > models.py", line 44, in save
> > >   self.body)
> >
> > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
> > > 41: ordinal not in range(128)
> >
> > >  > > GET:,
> > > POST: > > [u'e6f50f68eea775e6913acfa18363c8a9'], u'author': [u'cm']}>,
> > > COOKIES:{'csrftoken': 'e6f50f68eea775e6913acfa18363c8a9'},
> > > META:{'CONTENT_LENGTH': '70',
> > >  'CONTENT_TYPE': 'application/x-www-form-urlencoded',
> > >  'CSRF_COOKIE': 'e6f50f68eea775e6913acfa18363c8a9',
> > >  'DOCUMENT_ROOT': '/etc/apache2/htdocs',
> > >  'GATEWAY_INTERFACE': 'CGI/1.1',
> > >  'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/
> > > html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
> > >  'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
> > >  'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
> > >  'HTTP_ACCEPT_LANGUAGE': 'it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4',
> > >  'HTTP_CACHE_CONTROL': 'max-age=0',
> > >  'HTTP_CONNECTION': 'keep-alive',
> > >  'HTTP_COOKIE': 'csrftoken=e6f50f68eea775e6913acfa18363c8a9',
> > >  'HTTP_HOST': '10.0.0.163',
> > >  'HTTP_ORIGIN': 'http://10.0.0.163',
> > >  'HTTP_REFERER': 'http://10.0.0.163/10/',
> > >  'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/
> > > 534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24',
> > >  'PATH_INFO': u'/add_comment/10/',
> > >  'PATH_TRANSLATED': '/home/max/public_html/examplesite.com/django/dbe/
> > > apache/myblog.wsgi/add_comment/10/',
> > >  'QUERY_STRING': '',
> > >  'REMOTE_ADDR': '10.0.0.6',
> > >  'REMOTE_PORT': '6069',
> > >  'REQUEST_METHOD': 'POST',
> > >  'REQUEST_URI': '/add_comment/10/',
> > >  'SCRIPT_FILENAME': '/home/max/public_html/examplesite.com/django/dbe/
> > > apache/myblog.wsgi',
> > >  'SCRIPT_NAME': u'',
> > >  'SERVER_ADDR': '10.0.0.163',
> > >  'SERVER_ADMIN': 'y...@email.com',
> > >  'SERVER_NAME': '10.0.0.163',
> > >  'SERVER_PORT': '80',
> > >  'SERVER_PROTOCOL': 'HTTP/1.1',
> > >  'SERVER_SIGNATURE': 'Apache/2.2.16 (Ubuntu) Server at
> > > 10.0.0.163 Port 80\n',
> > >  'SERVER_SOFTWARE': 'Apache/2.2.16 (Ubuntu)',
> > >  'mod_wsgi.application_group': 'www.examplesite.com|',
> > >  'mod_wsgi.callable_object': 'application',
> > >  'mod_wsgi.handler_script': '',
> > >  'mod_wsgi.input_chunked': '0',
> > >  'mod_wsgi.listener_host': '',
> > >  'mod_wsgi.listener_port': '80',
> > >  'mod_wsgi.process_group': 'examplesite.com',
> > >  'mod_wsgi.request_handler': 'wsgi-script',
> > >  'mod_wsgi.script_reloading': '1',
> > >  'mod_wsgi.version': (3, 2),
> > >  'wsgi.errors': ,
> > >  'wsgi.file_wrapper':  > > mod_wsgi.Adapter object at 0x7f1963280c60>,
> > >  'wsgi.input': ,
> > >  'wsgi.multiprocess': True,
> > >  'wsgi.multithread': True,
> > >  'wsgi.run_once': False,
> > >  'wsgi.url_scheme': 'http',
> > >  'wsgi.version': (1, 1)}>
> >
> > > --
> > > 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
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.- Nascondi testo
> citato
> >
> > - Mostra testo citato -
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [Django] Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread Xavier Ordoquy

Le 4 mai 2011 à 13:44, Aragorn a écrit :

> HI,
> 
> I can not understand where is the error. when you insert a
> blog comment I receive an email, but this'
> the email I receive !

Hi,

I noticed you have overridden the save method. Could you tell us more about 
what you are doing the that method ?
I suspect you try to send a mail telling you you have a new comment, don't you ?

Regards,
Xavier.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Generiview that show mutiple class model

2011-05-04 Thread Pascal Moutia
Hi, 
I've been having a problem i'd like to show mutiple class from a model in a 
generic view but I can't find a way to it,
Can some one tel me do I have to write my own view or is there any generic view 
that can do this ? 


Thank you ! :D

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Multiple SQLITE databases vs one BIG PostgreSQL database

2011-05-04 Thread Brian Bouterse
SQlite has issues with efficiently serving multiple database connections
simultaneously.  It is still ACID compliant, but the performance can crawl
with multiple users.  I think this has to do with the locking being
filesystem based.  That being said it sounds like your db's would all be
used by independent clients so this probably isn't an issue for you.  If you
need to in the future relate data that is isolated in individual sqlite
databases then it would have been better to have things in one place.  To
recap, IMHO, if you have a portability requirement, a single user at a time
per db, and no need to relate data in between these small independent
databases then go with SQlite.

If you decide to go with a big db, go with Postgres.  It's the best in the
business for the money and complexity.  I have used mysql a lot before too,
and I do not recommend it.  Oracle is complicated and closed.

Best,
Brian

On Wed, May 4, 2011 at 6:32 AM, VoodooH  wrote:

> Hello guys,
>
> We currently have a desktop software that uses a sqlite embedded
> database. We are now gonna develop the online version for our software
> and we need your opinion on these matters :
>
> 1. We were thinking of giving our users the option to switch between
> the online and offline version of the software by simply moving the
> sqlite database between the two applications. This would save us a lot
> of dev time for now, but we are afraid that we will have scalability
> issues later. There will be around 10 000 users at least, so at least
> 10 000 sqlite independent databases. The other option of course is a
> very big PostgreSQL database. There will be millions, if not tens of
> millions of records in this BIG database.
>
> Which version do you recommend between the two ? Should we go for the
> fast development sqlite version or build a database from scratch and
> make some import/export tools between the two apps ?
>
> 2. If we were to go for the big database version, which one yould you
> recommend between PostgreSQL, MySQL and ORACLE ?
>
> 3. Any ideas on how it would be best to implement a sync tool between
> the desktop and the SaaS if we go for the PostgreSQL version ?
>
> Thank you very much !
>
> Regards,
>  Radu
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Brian Bouterse
ITng Services

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: removing the source of a OneToOneField relationship

2011-05-04 Thread Seth Gordon
On 05/04/2011 12:43 AM, Andy McKay wrote:
> 
> On 2011-05-03, at 2:05 PM, Seth Gordon wrote:
>> I get an exception, complaining that Target.source does not allow
>> null values.
> 
> You'll probably want to allow null values on your OneToOne field then:
> 
> http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Field.null

Ah, but I don’t want Source.target to be a nullable value.  Every Source
should point to a Target, but not every Target needs to have a Source.

> --
>   Andy McKay
>   a...@clearwind.ca
>   twitter: @andymckay
>  
> 

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Generiview that show mutiple class model

2011-05-04 Thread Xavier Ordoquy

Le 4 mai 2011 à 14:38, Pascal Moutia a écrit :

> Hi, 
> I've been having a problem i'd like to show mutiple class from a model in a 
> generic view but I can't find a way to it,
> Can some one tel me do I have to write my own view or is there any generic 
> view that can do this ? 

What do you mean multiple class from a model ?
Multiple instances maybe ?

If so you can go for a list view with the correct queryset.

Regards,
Xavier.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Allow only one record in admin.ModelAdmin !

2011-05-04 Thread Toninho Nunes
No, this table will have only a single record, for any user and will
be the same record at all. The user can change, delete and save, but
can not add two records.

On 4 maio, 07:22, vikalp sahni  wrote:
> sorry, didn't get you. << I need just only to limit to one record >>
>
> is it something like you want one user to add only one record to certain
> table from admin??
>
> On Wed, May 4, 2011 at 10:41 AM, Toninho Nunes wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I have a table named Config, I need just only to limit to one record,
> > are there a method or property to do this? any tip ou advice how to
> > proceed? I use the admin.ModelAdmin.
>
> > details:
> > Django Version 1.3
> > Ubuntu 10.10 - 64bits
> > PostGresql 8.4
>
> > Thanks,
>
> > Toninho Nunes
>
> > --
> > 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
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Generiview that show mutiple class model

2011-05-04 Thread Pascal Moutia
First tank you Xavier for you respond let me get you more precisions:
this is my app models.py (normaly the models.py have more classes always with a 
ForeignKey to Info):

class Info (models.Model):
nom = models.CharField(max_length=100)
prenom = models.CharField(max_length=100)
rue = models.CharField(max_length=200)
cpostal = models.CharField(max_length=10)
ville = models.CharField(max_length=100)
mail = models.CharField(max_length=100)
tel = models.CharField(max_length=100)
#pic  = models.ImageField()

def __unicode__(self):
return self.nom

class Naissance(models.Model):
info = models.ForeignKey(Info)
date = models.DateTimeField(blank=False)

def __unicode__(self):
return self.date

and my urls.py configuration for the generic view : 

 url(r'^cv/(?P\d+)/$', DetailView.as_view(
model = Info,
template_name = 'Cv/cv_detail.html')),

So i need to show all classes from my models.py in detailview on one template 
what could be the query set?

thank you.
On May 4, 2011, at 2:45 PM, Xavier Ordoquy wrote:

> 
> Le 4 mai 2011 à 14:38, Pascal Moutia a écrit :
> 
>> Hi, 
>> I've been having a problem i'd like to show mutiple class from a model in a 
>> generic view but I can't find a way to it,
>> Can some one tel me do I have to write my own view or is there any generic 
>> view that can do this ? 
> 
> What do you mean multiple class from a model ?
> Multiple instances maybe ?
> 
> If so you can go for a list view with the correct queryset.
> 
> Regards,
> Xavier.
> 
> -- 
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Generiview that show mutiple class model

2011-05-04 Thread Xavier Ordoquy

Le 4 mai 2011 à 14:56, Pascal Moutia a écrit :

> First tank you Xavier for you respond let me get you more precisions:
> this is my app models.py (normaly the models.py have more classes always with 
> a ForeignKey to Info):
> 
> class Info (models.Model):
>nom = models.CharField(max_length=100)
>prenom = models.CharField(max_length=100)
>rue = models.CharField(max_length=200)
>cpostal = models.CharField(max_length=10)
>ville = models.CharField(max_length=100)
>mail = models.CharField(max_length=100)
>tel = models.CharField(max_length=100)
>#pic  = models.ImageField()
> 
>def __unicode__(self):
>return self.nom
> 
> class Naissance(models.Model):
>info = models.ForeignKey(Info)
>date = models.DateTimeField(blank=False)
> 
>def __unicode__(self):
>return self.date
> 
> and my urls.py configuration for the generic view : 
> 
> url(r'^cv/(?P\d+)/$', DetailView.as_view(
>model = Info,
>template_name = 'Cv/cv_detail.html')),
> 
> So i need to show all classes from my models.py in detailview on one template 
> what could be the query set?

You need to access the data linked to your Info model.
Say you have an Info instance named info.
You can access all the Naissance linked to info by simply doing 
info.naissance_set.all() which will return an equivalent to a list of Naissance 
objects. Note that in that case, it might have been better with a OneToOneField.

Please, have a look at the tutorial available for Django.
It explains the basics, including how to get choices linked to a poll which is 
the same as what you are doing.

Regards,
Xavier.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Multiple SQLITE databases vs one BIG PostgreSQL database

2011-05-04 Thread David Goehrig
I'd recommend going the PostgreSQL route.  I have a number of apps that use the 
architecture where Postgres is running in a federated multi-master setup with 
client side SQLite db used as local cache. Building a data sync service between 
the two using django to ship models via a RESTishAPI degerates into a trivial 
task. 

For one large deployment with tens of millions of documents with tens of 
millions of users we have no problems on a handfull of commodity servers. 

-=-=- d...@nexttolast.com -=-=-

On May 4, 2011, at 6:32 AM, VoodooH  wrote:

> Hello guys,
> 
> We currently have a desktop software that uses a sqlite embedded
> database. We are now gonna develop the online version for our software
> and we need your opinion on these matters :
> 
> 1. We were thinking of giving our users the option to switch between
> the online and offline version of the software by simply moving the
> sqlite database between the two applications. This would save us a lot
> of dev time for now, but we are afraid that we will have scalability
> issues later. There will be around 10 000 users at least, so at least
> 10 000 sqlite independent databases. The other option of course is a
> very big PostgreSQL database. There will be millions, if not tens of
> millions of records in this BIG database.
> 
> Which version do you recommend between the two ? Should we go for the
> fast development sqlite version or build a database from scratch and
> make some import/export tools between the two apps ?
> 
> 2. If we were to go for the big database version, which one yould you
> recommend between PostgreSQL, MySQL and ORACLE ?
> 
> 3. Any ideas on how it would be best to implement a sync tool between
> the desktop and the SaaS if we go for the PostgreSQL version ?
> 
> Thank you very much !
> 
> Regards,
>  Radu
> 
> -- 
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Admin template

2011-05-04 Thread Rich
I'm still not able to narrow down on which template I need to modify,
perhaps it is a group of templates.

This is the screen shot of the admin panel.
https://picasaweb.google.com/108522207223325173920/May42011DjangoAdmin?authkey=Gv1sRgCIbMrMaet7XudQ#5602847506056859010

In Uploader, I click on Add button which displays this panel:
https://picasaweb.google.com/108522207223325173920/May42011DjangoAdmin?authkey=Gv1sRgCIbMrMaet7XudQ#5602847508038833618

I need to create a button to automatically generate a password for a
user.

Any ideas which specific template I need to modify?

Richard

On May 3, 5:45 pm, Shawn Milochik  wrote:
> On 05/03/2011 05:39 PM, roberto wrote:
>
> > django-google-toolbar ? or django-debug-toolbar ?
>
> The latter. The former must have been a typo.
>
> https://github.com/robhudson/django-debug-toolbar

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [Django] Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread Massimo
Yes, I get an email when someone writes a
comment. (Sorry but I do not speak English). If I run with "python manage.py
runserver" the email arrives well, if run with apache wsgy  the result is
the error !

2011/5/4 Xavier Ordoquy 

>
> Le 4 mai 2011 à 13:44, Aragorn a écrit :
>
> > HI,
> >
> > I can not understand where is the error. when you insert a
> > blog comment I receive an email, but this'
> > the email I receive !
>
> Hi,
>
> I noticed you have overridden the save method. Could you tell us more about
> what you are doing the that method ?
> I suspect you try to send a mail telling you you have a new comment, don't
> you ?
>
> Regards,
> Xavier.
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Generiview that show mutiple class model

2011-05-04 Thread Pascal Moutia
Ok thank you for your solutions :)

Le 4 mai 2011 à 15:09, Xavier Ordoquy  a écrit :

> 
> Le 4 mai 2011 à 14:56, Pascal Moutia a écrit :
> 
>> First tank you Xavier for you respond let me get you more precisions:
>> this is my app models.py (normaly the models.py have more classes always 
>> with a ForeignKey to Info):
>> 
>> class Info (models.Model):
>>   nom = models.CharField(max_length=100)
>>   prenom = models.CharField(max_length=100)
>>   rue = models.CharField(max_length=200)
>>   cpostal = models.CharField(max_length=10)
>>   ville = models.CharField(max_length=100)
>>   mail = models.CharField(max_length=100)
>>   tel = models.CharField(max_length=100)
>>   #pic  = models.ImageField()
>> 
>>   def __unicode__(self):
>>   return self.nom
>> 
>> class Naissance(models.Model):
>>   info = models.ForeignKey(Info)
>>   date = models.DateTimeField(blank=False)
>> 
>>   def __unicode__(self):
>>   return self.date
>> 
>> and my urls.py configuration for the generic view : 
>> 
>>url(r'^cv/(?P\d+)/$', DetailView.as_view(
>>   model = Info,
>>   template_name = 'Cv/cv_detail.html')),
>> 
>> So i need to show all classes from my models.py in detailview on one 
>> template what could be the query set?
> 
> You need to access the data linked to your Info model.
> Say you have an Info instance named info.
> You can access all the Naissance linked to info by simply doing 
> info.naissance_set.all() which will return an equivalent to a list of 
> Naissance objects. Note that in that case, it might have been better with a 
> OneToOneField.
> 
> Please, have a look at the tutorial available for Django.
> It explains the basics, including how to get choices linked to a poll which 
> is the same as what you are doing.
> 
> Regards,
> Xavier.
> 
> -- 
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Multiple SQLITE databases vs one BIG PostgreSQL database

2011-05-04 Thread Brian Bouterse
You're probably right about using Postgres.  Postgres is rock solid,
scalable, and easy to use.

I've recently had a need to create a bridge between PostgreSQL and SQlite.
 Primarily because I use SQlite in my dev environments, but use PostgreSQL
in production.  I have been planning to write something to allow all data to
be moved back and forth.  It sounds like you have a data sync service.  Any
thoughts on open sourcing that code?  Anyone else know of a project that
already does this?

Thanks,
Brian

On Wed, May 4, 2011 at 9:02 AM, David Goehrig  wrote:

> I'd recommend going the PostgreSQL route.  I have a number of apps that use
> the architecture where Postgres is running in a federated multi-master setup
> with client side SQLite db used as local cache. Building a data sync service
> between the two using django to ship models via a RESTishAPI degerates into
> a trivial task.
>
> For one large deployment with tens of millions of documents with tens of
> millions of users we have no problems on a handfull of commodity servers.
>
> -=-=- d...@nexttolast.com -=-=-
>
> On May 4, 2011, at 6:32 AM, VoodooH  wrote:
>
> > Hello guys,
> >
> > We currently have a desktop software that uses a sqlite embedded
> > database. We are now gonna develop the online version for our software
> > and we need your opinion on these matters :
> >
> > 1. We were thinking of giving our users the option to switch between
> > the online and offline version of the software by simply moving the
> > sqlite database between the two applications. This would save us a lot
> > of dev time for now, but we are afraid that we will have scalability
> > issues later. There will be around 10 000 users at least, so at least
> > 10 000 sqlite independent databases. The other option of course is a
> > very big PostgreSQL database. There will be millions, if not tens of
> > millions of records in this BIG database.
> >
> > Which version do you recommend between the two ? Should we go for the
> > fast development sqlite version or build a database from scratch and
> > make some import/export tools between the two apps ?
> >
> > 2. If we were to go for the big database version, which one yould you
> > recommend between PostgreSQL, MySQL and ORACLE ?
> >
> > 3. Any ideas on how it would be best to implement a sync tool between
> > the desktop and the SaaS if we go for the PostgreSQL version ?
> >
> > Thank you very much !
> >
> > Regards,
> >  Radu
> >
> > --
> > 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
> django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> >
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Brian Bouterse
ITng Services

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-04 Thread Ariel
I am using debian 6 in spanish.

On Wed, May 4, 2011 at 2:41 AM, Karen Tracey  wrote:

> On Tue, May 3, 2011 at 10:22 AM, Ariel  wrote:
>
>> In my apache enviroment settings I have already set that:
>>
>> export LANG='en_US.UTF-8'
>> export LC_ALL='en_US.UTF-8'
>>
>> But I still get the same error. Bedsides I am using wsgi no modpython.
>>
>
> modpython/mod_wsgi makes no difference, that note really should be in
> someplace non-specific to the deployment method. This is fundamentally a
> Python issue: Python thinks the only encoding supported by the file system
> is ascii, so it tries to convert all file names to ascii only.
>
> I've heard of times when setting the environment vars hasn't worked -- the
> problem then was that the installed locale support on the machine was
> insufficient to allow setting the locale to anything other than C. See for
> example: http://code.djangoproject.com/wiki/ExpectedTestFailures
>
> How to fix it will depend on what OS you are using; the instructions for
> Ubuntu are on that referenced page and I have no idea how to do anything
> similar on other distros. But maybe someone else could give a clue if you
> mentioned what OS you are using.
>
>
> Karen
> --
> http://tracey.org/kmt/
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Odp: Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-04 Thread Ariel
And how can I change the filename of the image when it is uploaded ???

2011/5/4 urukay 

> Or try to change the name of the file when uploading the image/file.
> That's how solved it. Had couple problems with it also in development
> enviroment and now it's working ok. Haven't tested yet in production,
> but it should work too.
>
> Radovan
>
> On 3. Máj, 22:56 h., Tomasz Zieliński
>  wrote:
> > W dniu wtorek, 3 maja 2011, 21:34:28 UTC+2 użytkownik Ariel napisał:
> >
> > > Yes, only on the production enviroment.
> >
> > Try to create a file with UTF8 characters in its name, from your code.
> > Then you'll know if those Apache settings are in effect.
> >
> > --
> > Tomasz Zielinski
> > pyconsultant.eu
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django admin site and debug

2011-05-04 Thread bitgandtter
its really rear this error the aplication its runing in mod_python in
a shared web hosting python 2.5.1 and work perfect the only thing is
that when i change the DEBUG flag to false the administration
interface keep working and autenticate all fine but throwme the 404
error when i try to access the pages that admin my tables.

my urlconf look like this

from django.conf.urls.defaults import patterns, include

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns( '',
( r'^admin/', include( admin.site.urls ) ),
( r'', include( 'role.company.urls' ) ),
 )

and in the role.company.urls i dont put anything about debug or url
that can override the admin ones

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [Django] Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread Xavier Ordoquy
Hi,

Have you tried the development server (runserver) on the computer that runs the 
wsgy ?
What LANG does apache declares (/etc/apache/envvars) ?
How much of the body do you change in the save function ?

Xavier.

Le 4 mai 2011 à 15:16, Massimo a écrit :

> Yes, I get an email when someone writes a
> comment. (Sorry but I do not speak English). If I run with "python manage.py 
> runserver" the email arrives well, if run with apache wsgy  the result is the 
> error !
> 
> 2011/5/4 Xavier Ordoquy 
> 
> Le 4 mai 2011 à 13:44, Aragorn a écrit :
> 
> > HI,
> >
> > I can not understand where is the error. when you insert a
> > blog comment I receive an email, but this'
> > the email I receive !
> 
> Hi,
> 
> I noticed you have overridden the save method. Could you tell us more about 
> what you are doing the that method ?
> I suspect you try to send a mail telling you you have a new comment, don't 
> you ?
> 
> Regards,
> Xavier.
> 
> --
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 
> -- 
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Allow only one record in admin.ModelAdmin !

2011-05-04 Thread dfolland
Here is a way that I set up a settings model.

class YourSettings(models.Model):
ID_CHOICES = ((1,'Settings is a single record'),)
id = models.IntegerField(primary_key=True, choices=ID_CHOICES,
default=1)
... then the other fields for your settings.

On May 4, 12:11 am, Toninho Nunes  wrote:
> Hi,
>
> I have a table named Config, I need just only to limit to one record,
> are there a method or property to do this? any tip ou advice how to
> proceed? I use the admin.ModelAdmin.
>
> details:
> Django Version 1.3
> Ubuntu 10.10 - 64bits
> PostGresql 8.4
>
> Thanks,
>
> Toninho Nunes

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



UML to Django - online generation service

2011-05-04 Thread jcabot
Hi everybody,

You can now try for free a new online code-generation service that
transforms plain UML class diagrams to Django models. Check
http://modeling-languages.com/content/uml2python-full-code-generator-python-applications
for more info.

Any feedback will be highly appreciated!

Jordi

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django orm group_by difficulties

2011-05-04 Thread Satan Study Django
Hi all. There was a need for group_by (as I am inclined to assume),
and all else fails.

Models:
class States (models.Model):
state = models.CharField (max_length = 70)

class Person (models.Model):
name = models.CharField (max_length = 100)
login = models.CharField (max_length = 30)

class Hosts (models.Model):
host = models.CharField (max_length = 30)
ip = models.IPAddressField ()

class Home (models.Model):
person = models.ForeignKey (Person)
state = models.ForeignKey (States)
date = models.DateTimeField ()
host = models.ForeignKey (Hosts)
time_spent = models.PositiveIntegerField (null = True)

class Online (models.Model):
date = models.DateTimeField ()
person = models.ForeignKey (Person)
host = models.ForeignKey (Hosts)

Objective: To select all of the Online users and their past record of
the Home (in particular, the field state). In other words: from Home
to choose the last entry of the user that is in Online.

mysql-query will look something like this:
SELECT
MAX (`main_home`. `Date`), p.login, st.state
FROM `main_home`, main_states st, main_person p
WHERE
  p.id = main_home.person_id
and
  st.id = `main_home`. state_id
and
  `Main_home`. `Person_id`
IN
(SELECT U0. `Person_id` FROM `main_online` U0)
GROUP BY `main_home`. `Person_id`, `main_home`. `Person_id`
ORDER BY `main_home`. `Date` DESC

Leave any sensible expression for the task does not work well in any
way. Here are the options:
ok = Home.objects.order_by ('-date'). filter (person__in =
Online.objects.all (). values ​​('person__pk'))
ok.query.group_by = ['person_id']
(Makes not the recent records)

ok = Home.objects.values ​​('date'). filter (person__in =
Online.objects.all (). values ​​('person__pk')). annotate (Max
('date')). order_by ('-date')
ok.query.group_by = ['person_id']
(Also gives not just the expected result)

Found an alternative solution: denormalize database (adding to the
model, for example, Person, fields with necessary data)

I can also use the direct sql query in the code. But on cellular it
level does not seem right -)

Tables innodb.

I'd be glad of any help.

If I forgot something - ask.
Django study has just started, according to this request chide
severely in order to consolidate the material.

Thank you for your attention.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Odp: Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-04 Thread urukay
In form use this field:

class MyImageField(ImageField):

def __init__(self, *args, **kwargs):
super(MyImageField, self).__init__(*args, **kwargs)

def clean(self, *args, **kwargs):
data = super(MyImageField, self).clean(*args, **kwargs)
try:
data.name = slugify_name(data.name)
filename = data.name
ext = os.path.splitext(filename)[1]
ext = ext.lower()
except AttributeError:
pass
return data

Just write the function slugify_name which will replace all non-ascii
characters.

R.

On 4. Máj, 15:19 h., Ariel  wrote:
> And how can I change the filename of the image when it is uploaded ???
>
> 2011/5/4 urukay 
>
> > Or try to change the name of the file when uploading the image/file.
> > That's how solved it. Had couple problems with it also in development
> > enviroment and now it's working ok. Haven't tested yet in production,
> > but it should work too.
>
> > Radovan
>
> > On 3. Máj, 22:56 h., Tomasz Zieliński
> >  wrote:
> > > W dniu wtorek, 3 maja 2011, 21:34:28 UTC+2 użytkownik Ariel napisał:
>
> > > > Yes, only on the production enviroment.
>
> > > Try to create a file with UTF8 characters in its name, from your code.
> > > Then you'll know if those Apache settings are in effect.
>
> > > --
> > > Tomasz Zielinski
> > > pyconsultant.eu
>
> > --
> > 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
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



stop repetition in template

2011-05-04 Thread pankaj sharma
hello friends,
 i have database of colleges.
i want to show all cities

so what is did is..
in template..

   {% for college in list %}
{{college.city}}
   {% endfor %}

in views.py

def list(request):
college_list=College.objects.all()
return render_to_response(
'college/list.html',
{'list':college_list}
)



so suppose i have two colleges in one city so it is showing the city
name twice  .. so how do i stop repetition..

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: stop repetition in template

2011-05-04 Thread Brian Bouterse
I would handle this at the views layer.  Right now your queryset of
college_list is a list of colleges containing cities.  In your view code I
would re-organize it to be a list of cities that contain colleges.  Then you
can iterate through cities and get colleges.  You can build this data
structure dynamically in the view code without explicitly pre-defining it as
a class or model.

Hope this helps.

Brian

On Wed, May 4, 2011 at 12:42 PM, pankaj sharma
wrote:

> hello friends,
>  i have database of colleges.
> i want to show all cities
>
> so what is did is..
> in template..
>
>   {% for college in list %}
>{{college.city}}
>   {% endfor %}
>
> in views.py
>
> def list(request):
>college_list=College.objects.all()
>return render_to_response(
>'college/list.html',
>{'list':college_list}
>)
>
>
>
> so suppose i have two colleges in one city so it is showing the city
> name twice  .. so how do i stop repetition..
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Brian Bouterse
ITng Services

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ANN: Two-level caching for Django

2011-05-04 Thread Andre Terra
Great work! Thanks a lot, I might need to use this soon.


Sincerely,
Andre Terra (airstrike)

On Wed, May 4, 2011 at 5:31 AM, Malcolm Box  wrote:

> Hi,
>
> We recently hit a bottleneck accessing a memcached server from Django on a
> big site. To solve it, I created two-level cache with a local cache on each
> Django box, and a global cache on the memcached machines.
>
> Under the sort of loads we were seeing, this dramatically reduced the load
> on the memcached servers. Best of all, it's a one line change to existing
> code using Django's cache framework.
>
> I've released the code here: https://gist.github.com/953524 in case it's
> useful to anyone else. Some more background here:
> http://attentionshard.wordpress.com/2011/04/03/scaling-to-30k-two-level-caches/
>
> Hope this helps someone.
>
> Cheers,
>
> Malcolm
>
>
>  --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: stop repetition in template

2011-05-04 Thread Javier Guerra Giraldez
On Wed, May 4, 2011 at 11:42 AM, pankaj sharma
 wrote:
> in template..
>
>               {% for college in list %}
>                {{college.city}}
>               {% endfor %}
>
> in views.py
>
> def list(request):
>    college_list=College.objects.all()
>    return render_to_response(
>    'college/list.html',
>    {'list':college_list}
>    )
>
>
>
> so suppose i have two colleges in one city so it is showing the city
> name twice  .. so how do i stop repetition..

two different solutions, depending on what do you want:

A) if you only need the cities from a given college queryset, in the
view do something like:

 render_to_response(
   'college/list.html',
   {'cities_list':City.objects.filter(college_set__in = college_list)}
   )

B) if you want a list of colleges, separated by city, and only show
the city once for each group of colleges:

in the view:

   return render_to_response(
   'college/list.html',
   {'list':college_list.order_by('city')}
   )

in the template:

  {% for college in list %}
  {% ifchanged %}{{college.city}}{% endifchanged %}
   {{college.name}}
  {% endfor %}


-- 
Javier

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: stop repetition in template

2011-05-04 Thread Brian Bouterse
I like your second solution a lot better than mine.  I've never seen {%
ifchanged %} used properly before.

Brian

On Wed, May 4, 2011 at 1:19 PM, Javier Guerra Giraldez
wrote:

> On Wed, May 4, 2011 at 11:42 AM, pankaj sharma
>  wrote:
> > in template..
> >
> >   {% for college in list %}
> >{{college.city}}
> >   {% endfor %}
> >
> > in views.py
> >
> > def list(request):
> >college_list=College.objects.all()
> >return render_to_response(
> >'college/list.html',
> >{'list':college_list}
> >)
> >
> >
> >
> > so suppose i have two colleges in one city so it is showing the city
> > name twice  .. so how do i stop repetition..
>
> two different solutions, depending on what do you want:
>
> A) if you only need the cities from a given college queryset, in the
> view do something like:
>
>  render_to_response(
>   'college/list.html',
>{'cities_list':City.objects.filter(college_set__in = college_list)}
>   )
>
> B) if you want a list of colleges, separated by city, and only show
> the city once for each group of colleges:
>
> in the view:
>
>   return render_to_response(
>   'college/list.html',
>{'list':college_list.order_by('city')}
>   )
>
> in the template:
>
>  {% for college in list %}
>  {% ifchanged %}{{college.city}}{% endifchanged %}
>   {{college.name}}
>  {% endfor %}
>
>
> --
> Javier
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Getting Django admin to display new autoincremented values in primary key model forms

2011-05-04 Thread wilbur
I am using Django 1.2.4 with a Postgresql 8.4 backend. Before creating
my models in Django, I began with a existing Postgresql database with
tables for which I had defined integer primary keys that used an
autoincrementing sequence on table inserts. When I created my Django
models, I defined the primary keys as IntegerFields with primaryKey
set to true using the same primary key field names as in the pre-
existing database tables.

When I view the individual models/tables in Django admin, the form
fields for the primary key to not automatically display the next value
in the autoincrementing sequence. In attempting to enable this
functionality, I changed the model definition for the primary key to
AutoField instead of IntegerField, and then tried to migrate this
change using South. I received the error:

django.db.utils.DatabaseError: type "serial" does not exist

Not sure what this means, but how do I go about getting the Django
admin to display the next value in the sequence for my model primary
key form fields??

Thanks, Bill

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: stop repetition in template

2011-05-04 Thread pankaj sharma
actually i want both.. like


LIST OF ALL COLLEGES:
college1
city1


college2
city2


college3
city3





LIST OF CITIES

city1
city2
city3


{but is city2 = city3}
then it would show  :



LIST OF ALL COLLEGES:
college1
city1


college2
city2


college3
city3





LIST OF CITIES

city1
city2

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django admin site and debug

2011-05-04 Thread Ivan
Try to replace your patern '^admin/' this '^admin/$', or swap
( r'^admin/', include( admin.site.urls ) )
and ( r'', include( 'role.company.urls' ) )

> my urlconf look like this
>
> from django.conf.urls.defaults import patterns, include
>
> # Uncomment the next two lines to enable the admin:
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns( '',
>     ( r'^admin/', include( admin.site.urls ) ),
>     ( r'', include( 'role.company.urls' ) ),
>  )
>
> and in the role.company.urls i dont put anything about debug or url
> that can override the admin ones

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django orm group_by difficulties

2011-05-04 Thread Jacob Kaplan-Moss
On Wed, May 4, 2011 at 9:23 AM, Satan Study Django
 wrote:
> I can also use the direct sql query in the code. But on cellular it
> level does not seem right -)

Well, if it were me, I'd just use the raw SQL. I'd guess that about 5
to 10% of the time I find that my queries are better expressed in SQL
than in Python. I see nothing wrong with dropping down to raw SQL
where it's easier and clearer. Why make extra work for youself?

Jacob

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django foreign key attribute in the model

2011-05-04 Thread Ján Vorčák
Hi,

I'd like to ask you for some help :)

I have a model with one foreign key


from django.contrib.auth.models import User



class Task(models.Model):
...
submitter = models.ForeignKey(User, related_name='submitter')
...

def get_user_link(self):
return "%(name)s" %
{ 'id' : ???, 'name' : self.submitter }

get_user_link.allow_tags = True

And I user get_user_link to display link to user profile from
administration,
I just don't know how can I access attribute of the ForeignKey value,
for instance id of user (submitter) in order to display it's url

Thank you for your time

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django foreign key attribute in the model

2011-05-04 Thread urukay
Hi,

try self.submitter.id

Radovan

On May 4, 10:58 pm, Ján Vorčák  wrote:
> Hi,
>
> I'd like to ask you for some help :)
>
> I have a model with one foreign key
>
> 
> from django.contrib.auth.models import User
> 
>
> class Task(models.Model):
>     ...
>     submitter = models.ForeignKey(User, related_name='submitter')
>     ...
>
>     def get_user_link(self):
>         return "%(name)s" %
> { 'id' : ???, 'name' : self.submitter }
>
>     get_user_link.allow_tags = True
>
> And I user get_user_link to display link to user profile from
> administration,
> I just don't know how can I access attribute of the ForeignKey value,
> for instance id of user (submitter) in order to display it's url
>
> Thank you for your time

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Getting Django admin to display new autoincremented values in primary key model forms

2011-05-04 Thread pjrhar...@gmail.com
Hi,

See this ticket for details on the error you are seeing:

http://south.aeracode.org/ticket/407

If I understand correctly, it sounds like you're asking for something
that isn't possible anyway.

The id isn't known until the item is inserted into the database,
because the database assigns the ids. It wouldn't be possible for
django to guess this - someone else could add another item after you
load your add item page, taking the id that your item was meant to
have.

Regards,

Peter

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Adding custom filter to stand-alone template

2011-05-04 Thread Up2L8
I'm trying to use the Template library outside of a normal Django
webapp and am having difficulty figuring out the right way to register
a custom filter.
The current implementation works, but I don't like accessing the guts
of the template module (see below), or calling my custom Library a
"builtin".

Whats the right way to do this?  If the answer is "use a different
templating system" then I'm fine with that too... the right tool for
the right job and all that.

Eric
---
#!/bin/env python2.7
import django
import django.template

django.conf.settings.configure()

register = django.template.Library()
@register.filter
def rev(stuff):
return stuff[::-1]

django.template.builtins.append(register) #Eww.. there has to be a
better way!

tmpl = django.template.Template('{{ "abdc"|rev }}')
print tmpl.render(django.template.Context({}))

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Adding custom filter to stand-alone template

2011-05-04 Thread Ethan Jucovy
On Wed, May 4, 2011 at 6:41 PM, Up2L8  wrote:

> I'm trying to use the Template library outside of a normal Django
> webapp and am having difficulty figuring out the right way to register
> a custom filter.
> The current implementation works, but I don't like accessing the guts
> of the template module (see below),


Not sure what you mean by "accessing the guts of the template module".
 Aside from the builtin hack (see below), everything you're doing uses the
documented django.template APIs.

or calling my custom Library a
> "builtin".

Whats the right way to do this?  If the answer is "use a different
> templating system" then I'm fine with that too... the right tool for
> the right job and all that.
>

The way I do this is by faking a django app, with a ./templatetags/
directory containing my template tags, and configuring INSTALLED_APPS in the
settings:
{{{
## main-file.py
from django.conf import settings
settings.configure(INSTALLED_APPS=("myapp",))

## myapp/templatetags/my_filters.py
from django import template
register = template.Library()
@register.filter
def rev(stuff):
   return stuff[::-1]
}}}

.. I can then {% load my_filters %} in templates, just as I would if it were
a full django environment.

This also feels a little hacky, but IMHO cleaner than messing with builtins.

-Ethan

Eric
> ---
> #!/bin/env python2.7
> import django
> import django.template
>
> django.conf.settings.configure()
>
> register = django.template.Library()
> @register.filter
> def rev(stuff):
>return stuff[::-1]
>
> django.template.builtins.append(register) #Eww.. there has to be a
> better way!
>
> tmpl = django.template.Template('{{ "abdc"|rev }}')
> print tmpl.render(django.template.Context({}))
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



hidden rows common elements also visible on list filters

2011-05-04 Thread rahul jain
All,

Hidden rows elements also visible on list filters ?

ex:

I have a list filter on one of the columns ,

list filter for that column displays all the distinct values, but the
problem is that few rows i have disabled.
But list filter still displays those rows as well.

How to fix this ?

Thanks.

RJ

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Hidden rows elements also visible on list filters

2011-05-04 Thread rahul jain
All,

How to fix this ? Hidden rows elements also visible on list filters.

ex:

I have a list filter on one of the columns ,

list filter for that column displays all the distinct values, but the
problem is that few rows i have disabled.
But list filter still displays those rows as well.

How to fix this ?

Thanks.

RJ

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Adding custom filter to stand-alone template

2011-05-04 Thread Ethan Jucovy
On Wed, May 4, 2011 at 7:19 PM, Ethan Jucovy  wrote:

> This also feels a little hacky, but IMHO cleaner than messing with
>> builtins.
>
>
Looking at django/template/__init__.py -- it does seem like INSTALLED_APPS
and django.template.builtins are the only ways to do this.

-Ethan

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



South African Django Developers

2011-05-04 Thread Ryan
Are there any Django developers in Johannesburg, South Africa? If so,
who can I get in touch with? Thanks.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Unable to access Dictionary values in Template (object pk is the dict key)

2011-05-04 Thread Calvin Spealman
You need to construct your query in the view function to filter for
the comments you want. You can't do these sorts of things from the
template, and that is largely by design so that you keep your logic in
one place: your views, and your presentation in one place: your
template.

On Wed, May 4, 2011 at 7:56 PM, AJ  wrote:
> I have a Django View that constructs a dictionary to a template. I have seen
> similar questions but no one shows how to access the dictionary value in the
> template using the object pk as the key (in my case the keys are pks of the
> object).
>
> View code that constructs the dict:
>
> comment_uservote = {}
>   if not current_logged_user.is_anonymous():
>     for comment in comments_all:
>         try:
>             co_vote = Vote.objects.get(user=current_logged_user,
> comment=comment)
>             comment_uservote[comment.id] = co_vote.vote
>         except Vote.DoesNotExist:
>             co_vote = ''
>             comment_uservote[comment.id] = co_vote
>
> I have also tried with comment_uservote[str(comment.id)] but this does not
> help either.
>
> Template (that does not work):
>
> {% for comment in comments %}
>   {{comment_uservote.comment.pk}} 
> {% enfor %}
>
> However, the following works if I add any comment's pk to
> the comment_uservote.
>
> Template (that works but if a direct substitution):
>
> {% for comment in comments %}
>   {{comment_uservote.16}} 
> {% enfor %}
>
> Appreciate your help. Please let me know if you need something more from me.
> Thanks.
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: can not download file from my site ( django + uwsgi )

2011-05-04 Thread Lei Zhang
Finally, I found the reason. It is the file privilege problem.

The Nginx have no privilege about /uwsgi_tmp folder

On Wed, Apr 13, 2011 at 3:25 PM, Roberto De Ioris  wrote:

>
> Il giorno 12/apr/2011, alle ore 04.05, Lei Zhang ha scritto:
>
> > the static file is returned by nginx, and it is works well.
> > But the file returned by dynamic pages does't works very well.
>
>
> You have a pretty standard configuration.
>
> Check the uWSGI logs (they report the response size) to see where is the
> problem
>
> --
> Roberto De Ioris
> http://unbit.it
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Lei Zhang

China: Bldg A1, Chang Yuan Tian Di, Suite 1906 NO. 18 Suzhoujie Ave. Haidian
District, Beijing 100080
M: +86 15210307837 | EMail: zhang.lei@gmail.com | MSN:
zhang.lei@gmail.com

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Hidden rows elements also visible on list filters

2011-05-04 Thread Andy McKay
> problem is that few rows i have disabled.
> But list filter still displays those rows as well.

Are you using the built in django admin, or something else?
By "disabled" what do you mean, a change in the model or something else?

Until you give us a bit more information, we are unlikely to be able to help. 
But here's a bet:  

http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter

The example for DecadeBornListFilter shows how you can define a custom queryset 
and perhaps this will allow you to filter out disabled rows.
--
  Andy McKay
  a...@clearwind.ca
  twitter: @andymckay
 

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: hidden rows common elements also visible on list filters

2011-05-04 Thread vikalp sahni
How have you made rows hidden??

if you talking about admin, You can control by overriding querset method for
that particular table admin.

Example:

class sometableAdmin:
 def queryset(self, request):
  if(whatevercond):
return super(, self).queryset(request)
  else:
return  self.model._default_manager.filter(id=1)



Regards,
//Vikalp

On Thu, May 5, 2011 at 5:45 AM, rahul jain  wrote:

> All,
>
> Hidden rows elements also visible on list filters ?
>
> ex:
>
> I have a list filter on one of the columns ,
>
> list filter for that column displays all the distinct values, but the
> problem is that few rows i have disabled.
> But list filter still displays those rows as well.
>
> How to fix this ?
>
> Thanks.
>
> RJ
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django queryset include more columns in select statement

2011-05-04 Thread Mo Mughrabi
Hi,

I been trying to create a backward relation using queryset and the joining
is working fine, accept that its not including the other joined table in the
selected columns. Below is my models, queryset and query.__str__() print

class Main(models.Model):
slug   = models.SlugField()
is_active  = models.BooleanField(default=True)
site   = models.ForeignKey(Site)
parent = models.ForeignKey('self', blank=True, null=True,
limit_choices_to={'parent' : None})
class Meta:
unique_together = (("slug", "parent"))
def __unicode__(self):
return self.slug

class MainI18n(models.Model):
main= models.ForeignKey(Main)
language= models.CharField(max_length=2,
choices=settings.LANGUAGES)
title   = models.CharField(max_length=100)
label   = models.CharField(max_length=200, blank=True,
null=True)
description = models.TextField(blank=True, null=True)
disclaimer  = models.TextField(blank=True, null=True)
class Meta:
unique_together = (("language", "main"))
def __unicode__(self):
return self.title
class List(models.Model):
main= models.ForeignKey(Main)
slug= models.SlugField(unique=True)
is_active   = models.BooleanField(default=True)
parent  = models.ForeignKey('self', blank=True, null=True)

def __unicode__(self):
return self.slug
class ListI18n(models.Model):
list= models.ForeignKey(List)
language= models.CharField(max_length=2,
choices=settings.LANGUAGES)
title   = models.CharField(max_length=50)
description = models.TextField()
class Meta:
unique_together = (("language", "list"))
def __unicode__(self):
return self.title

and my queryset is

Main.objects.select_related('main',
'parent').filter(list__is_active=True, maini18n__language='en',
list__listi18n__language='en')

and this is what my query is printing

'SELECT `category_main`.`id`, `category_main`.`slug`,
`category_main`.`is_active`, `category_main`.`site_id`,
`category_main`.`parent_id`, T5.`id`, T5.`slug`, T5.`is_active`,
T5.`site_id`, T5.`parent_id` FROM `category_main` INNER JOIN
`category_maini18n` ON (`category_main`.`id` =
`category_maini18n`.`main_id`) INNER JOIN `category_list` ON
(`category_main`.`id` = `category_list`.`main_id`) INNER JOIN
`category_listi18n` ON (`category_list`.`id` =
`category_listi18n`.`list_id`) LEFT OUTER JOIN `category_main` T5 ON
(`category_main`.`parent_id` = T5.`id`) WHERE
(`category_maini18n`.`language` = en  AND `category_list`.`is_active` = True
 AND `category_listi18n`.`language` = en )'

anyone can help show columns from list and listi18n? I tried extra but It
doesn't allow me to pass things like category_list.*

thanks

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



login using TestCase hangs

2011-05-04 Thread LurkingFrog
I've been attempting to write some end to end integration tests using
selenium for my current django app (ver 1.3), and have been having a
problem with the login function hanging.  After much tracing, I have
discovered it hangs when psycopg2 (ver 2.4) tries to execute the
update query for the last login.  I have tested this, and it appears
to be running into a database lock on this record, but only when it is
run from an instance of django.test.TestCase.  I cannot repeat this
when using a stand alone script.

I have tried with both runserver and gunicorn, and both have shown the
same issue.  Using gunicorn with multiple workers to make sure both
should operate simultaneously, I started a stand alone copy of the
selenium calls to the test server while the TestCase was running.  It
got to the point of the update, hung until the test timed out, and
then completed successfully.

I am completely at a loss on how to work around this and was wondering
if anyone has seen this problem before or has any ideas on how to
attack it?

Thanks,
Dave

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.