mod_wsgi and url resolve (so confused, please help)

2012-09-21 Thread The Bear
Hi All I am really stuck with resolving urls now i have moved my app to mod_wsgi environment. Basically my problem is that when using a mod wsgi prefix valid urls will resolve in the usual general browsing way but not using teh resolve function directly so url = reverse('grant_and_save')

Re: Accessing the auth user object in a template?

2011-06-23 Thread Travis Bear
On Jun 23, 1:27 am, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Jun 23, 2011 at 8:28 AM, Travis Bear <travis.b...@gmail.com> wrote: > > Hi, > > > I'm using the django.contrib.auth app to manage user login/logout.  I > > can successfully log in and

Accessing the auth user object in a template?

2011-06-23 Thread Travis Bear
Hi, I'm using the django.contrib.auth app to manage user login/logout. I can successfully log in and out, but I cannot access the {{ user }} object in my templates. If I'm reading these documents correctly, that should be enabled by default: @ zalun

UploadedFile Content-Type

2008-09-04 Thread Bear
Hi. I'm using newforms to upload a file in my project. I want to check the mime type of the uploaded file. Let's say my field name is "file", and check_uploaded_file() is a function that takes the content type and checks it. file = request.FILES['file'] check_uploaded_file(file.content_type)

Upload file / form validation

2008-08-19 Thread Bear
Hi. I'm in trouble here, when I try to upload a file and pass it to my form for validation, it tells me that the form is not valid and that there is no file. But my request.FILES tab seems to be just fine.. Here's my code : class AddMediaForm(forms.Form): file = forms.FileField()

Re: Inserting html into a page dynamically

2008-07-08 Thread Bear
Thx to both of you, I'll do it with AJAX then. I'll have to find a way to make this work anyway if the user doesn't have Javascript enabled. Bibi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Inserting html into a page dynamically

2008-07-07 Thread Bear
Hi I'm new with Django and I can't figure out a method to do what I want, that is to say inserting html dynamically in my page (I'm not very good in english so I'll do my best to explain it with an example) Let's say the goal of the page is to let the user build a "storyboard". A storyboard is

Django Redirect to login when writing to session

2008-01-23 Thread Polar Bear z RPA
Hi, I am not sure if anyone has had this situation or not but I have been struggling with this for days now. I have a form with a few select fields and a few text fields. The form post the information to it's own url so that the details show below the form. I try to write the form dict to a

Does the django admin support the Group?

2007-09-03 Thread Bear
For instance, Group A can access all the tables but Group B just access some of them? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to