Re: imagefield, admin, wrong link

2006-03-11 Thread Jakub Labath
Hi, I tracked this down. You can overwrite the template that is responsible for the file widget, like this. 1. in your templates directory create widget directory. 2. copy trunk/django/contrib/admin/templates/widget/file.html to the widget folder you created. 3. edit as needed. Regards On

using context_instance=DjangoContext(request) in generic view url.

2006-03-11 Thread coulix
hello i want to replace this view methods : def faq(request): return render_to_response('faq', {'section':'faq'}, context_instance=DjangoContext(request),) by a generic view in url.py, the problem is adding the extra_context part.

Re: mysql - collation and character sets..

2006-03-11 Thread Geert Vanderkelen
On Mar 11, 2006, at 4:52 AM, [EMAIL PROTECTED] wrote: > > in trying to unravel my previous post: > > http://groups.google.com/group/django-users/browse_thread/thread/ > b21804c6f176a61c > .. > what character set and collation does django expect when setting up > the > admin site? When

Re: url config and generic views and non generic views.

2006-03-11 Thread coulix
my mistake, urlpatterns.extend(patterns('django.views.generic.simple', (r'^cefinban/login_ok/$', 'direct_to_template', {'template': 'login_ok'})) ) forgot brackets. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: url config and generic views and non generic views.

2006-03-11 Thread Malcolm Tredinnick
On Sun, 2006-03-12 at 00:31 +, coulix wrote: > urlpatterns = patterns('', >(r'^cefinban/recettes/$', 'cefinban.recettes.views.index'), > ) > > urlpatterns.extend(patterns('django.views.generic.simple',r'^cefinban/login_ok/$', > 'direct_to_template', {'template': 'login_ok'})) > >

Re: url config and generic views and non generic views.

2006-03-11 Thread coulix
urlpatterns = patterns('', (r'^cefinban/recettes/$', 'cefinban.recettes.views.index'), ) urlpatterns.extend(patterns('django.views.generic.simple',r'^cefinban/login_ok/$', 'direct_to_template', {'template': 'login_ok'})) give me an error when accessing login_ok: __init__() takes at

Re: CSS issues

2006-03-11 Thread tomass
Great, works a treat! Thanks so much 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,

Re: url config and generic views and non generic views.

2006-03-11 Thread akaihola
urlpatterns.extend(patterns('', r'^pattern/', 'myproj.myapp.views.myview')) is a simple way to achieve this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: url config and generic views and non generic views.

2006-03-11 Thread Luke Plant
On Saturday 11 March 2006 15:34, coulix wrote: > What's the trick ? to make them cohabit. Hints: 1) the first argument to patterns() is just a prefix that is added to names of the view functions to avoid repeating it for every one. 2) patterns() returns a simple list, and you can combine

MySQL timestamp fields

2006-03-11 Thread [EMAIL PROTECTED]
I've been playing with the inspectdb functionality against a number of databases and ran across a missing conversion this morning. While django.core.db.backends.mysql has provisions for DATE, TIME and DATETIME, it was missing TIMESTAMP which can be mapped to typecasts.typecast_timestamp. Mysql

Re: Can I pass a python iterator to a template?

2006-03-11 Thread Luke Plant
On Friday 10 March 2006 02:19, Mike Kent wrote: > So, am I completely off base here? Is what I want to do not > possible, or is there another way I can tackle this? This could be considered as a bug in the 'for' tag in that it does a len() when it perhaps doesn't need to. If you try to patch

Re: are uploaded files kept in memory?

2006-03-11 Thread Istvan
Opened a ticket on it and it looks like it is being patched to the behavior that I mentioned above. Very nice! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Comments module

2006-03-11 Thread Bryan Murdock
On 3/11/06, PythonistL <[EMAIL PROTECTED]> wrote: > > Does anyone use successfully Comments module(django.contrib.comments). > I followed tutorial about blog at > http://www.rossp.org/blog/2006/jan/23/building-blog-django-1/ > but the blog that uses comments module does not work properly for me.

Comments module

2006-03-11 Thread PythonistL
Does anyone use successfully Comments module(django.contrib.comments). I followed tutorial about blog at http://www.rossp.org/blog/2006/jan/23/building-blog-django-1/ but the blog that uses comments module does not work properly for me. If I post a comment that comment is shown in all tags. Can

Re: models and forward declarations

2006-03-11 Thread bruno modulix
Michael Radziej a écrit : > Rock schrieb: > >>Search for "forward reference" in this group. (Basically you cleverly >>locate your import statement inside a function call.) > > > I found your thread at: > >

Re: Breaking up long lists

2006-03-11 Thread Rob Slotboom
I don't know. I'll have a look. --~--~-~--~~~---~--~~ 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