On Thu, May 19, 2011 at 7:33 AM, Michel30 wrote:
> This gives me a file field, a browse button and a submit button. What
> I'd like to have is a submit button only, click that opens a file
> dialog.
> Any ideas?
You cannot do that. File controls are strictly only opened by browsers
under direct u
This is the traceback:
Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py" in get_response
111. response = callback(request,
*callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/
decorators.
As Daniel said, I dont' think also that the entire view is that, but
if it helps, I'll let you a piece of my code for a form (gpl, no
problem if you copy it).
@permission_required('spaces.add_space')
def create_space(request):
"""
Create new spaces. In this view the author field is automa
On Wednesday, May 18, 2011 2:16:00 PM UTC+1, Michel30 wrote:
>
> Hey all,
>
> I have a Django 1.3 app that retrieves user credentials from LDAP.
> Most views require the user to be authenticated so I use the
> @login_required decorator.
>
> Now, in a form a user can upload a document using a fo
Hey all,
I have a Django 1.3 app that retrieves user credentials from LDAP.
Most views require the user to be authenticated so I use the
@login_required decorator.
Now, in a form a user can upload a document using a form:
{%
csrf_token %}
{{ form }}
I want to log the user's first and lastname
5 matches
Mail list logo