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 2/

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. urlpatterns.extend(patterns('django.views.generic.simpl

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 connec

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 Grou

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'})) > > giv

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 most

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, sen

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 to

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 l

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 t

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

url config and generic views and non generic views.

2006-03-11 Thread coulix
hello, if i want to use simple generic view only for certain url, but the normal view.py def for others how to combine both without errors. urlpatterns = patterns('django.views.generic.simple', (r'^cefinban/recettes/$', 'cefinban.recettes.views.index') (r'^cefinban/faq/$', 'direct_to_template

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 an

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: > > http://groups.google.com/group/django-users/browse_thread/thread/71fc72ab1f547d3/4d0dbfd

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