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/
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
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
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
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
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
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
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
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
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
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
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
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
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.
>
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
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
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
17 matches
Mail list logo