Django admin upload image to few folders

2011-07-23 Thread Vusal Alishov
Hello, I want to upload image in django-admin interface to few
folders.
My models image field such: image =
models.ImageField(upload_to='images')
How can I do 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.



django nani

2011-07-31 Thread Vusal Alishov
Hello, i've problem with django-nani, in admin panel ist of objects
don't shown.

-- 
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: csrf token not working

2011-07-03 Thread Vusal Alishov
example :
in views:
def foo(request):
c = {"foo": "bar"}
c.update(csrf(request))
return render('test.html',c)

2011/7/3 Hervé Edorh 

> hi,
> step 3, put "django.core.context_processors.csrf" in your
> TEMPLATE_CONTEXT_PROCESSORS and if you use django 1.3 use "render()"
> in place of render_to_response in yours views. Or if you want to use
> render_to_response put "context_instance=RequestContext(request)" at
> the end of render_to_response
>
> On Jul 2, 4:15 pm, Bobby Roberts  wrote:
> > I'm looking at the docs athttps://
> docs.djangoproject.com/en/dev/ref/contrib/csrf/
> > for CSRF implementation.  I've got steps 1 and 2 done but the csrf
> > token is not even showing in the form even though i have {%csrf_token
> > %} within the form html any ideas what would cause it not to
> > create a token?
>
> --
> 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.