Hi all,
I am using django_auth_ldap to authenticate users. I want to limit
them to members of a group 'MT' but I cannot get it to work even
though it looks like I am doing things as
http://packages.python.org/django-auth-ldap/
shows me :-(
This is my relevant stuff from settings.py:
import
Thanks Tom that clarifies a lot, learning every day.
My filesystem is ext4, encoding is irrelevant here right?
So, I guess the best thing to do is to convert my database into utf-8
using a method as described here:
http://www.bothernomore.com/2008/12/16/character-encoding-hell/
That way I'm consi
On Aug 24, 3:22 pm, Tom Evans wrote:
> On Wed, Aug 24, 2011 at 1:47 PM, Michel30 wrote:
> > Hi all,
>
> > I have written an application using Django 1.3 , apache2 and a mysql
> > db.
> > I'm using the db to store filepaths and filenames for legacy purposes
&
Hi all,
I have written an application using Django 1.3 , apache2 and a mysql
db.
I'm using the db to store filepaths and filenames for legacy purposes
while serving them to users with apache.
Now mysql is using latin-1 (with the filenames most likely stored in
CP-1252) while Django uses utf-8.
I
ing to do with it.
>
> On Aug 16, 4:04 am, Michel30 wrote:
>
>
>
>
>
>
>
> > Hmm the workaround MS suggests actually works, so I have a
> > workaround :-)
>
> > But understanding why Django's authentication backend doesn't suppo
Hmm the workaround MS suggests actually works, so I have a
workaround :-)
But understanding why Django's authentication backend doesn't support
this would be good
On Aug 16, 9:10 am, Michel30 wrote:
> Addidtionally I found this kb article that I believe describes what is
&g
Addidtionally I found this kb article that I believe describes what is
going on:
http://support.microsoft.com/kb/899927/en-us
On Aug 16, 8:59 am, Michel30 wrote:
> I have made a CMS-like application to store and retrieve documents
> using Django 1.3, mysql and Apache.
>
> One req
I have made a CMS-like application to store and retrieve documents
using Django 1.3, mysql and Apache.
One requirement was that only authenticated users could use it and
that after closing the browser the session should be expired.
So, I implemented an LDAP authentication backend, set the
"SESSION
t how to get that into the SQL part..
On Jul 12, 3:29 pm, bruno desthuilliers
wrote:
> On Jul 12, 12:26 pm, Michel30 wrote:
>
> > Hi guys,
>
> > I've been trying your suggestions but I'm afraid I'm stretching the
> > limits of my Python/Django abilities
Hi guys,
I've been trying your suggestions but I'm afraid I'm stretching the
limits of my Python/Django abilities ;-)
Bruno got it right: what I want is a queryset of "model" with distinct
docid having the highest version number, sorted by revisiondate.
If have the following result of my
found_e
Hi guys,
I've been trying your suggestions but I'm afraid I'm stretching the
limits of my Python/Django abilities ;-)
Bruno got it right: what I want is a queryset of "model" with distinct
docid having the highest version number, sorted by revisiondate.
If have the following result of my
found_e
Hi guys,
I've been trying your suggestions but I'm afraid I'm stretching the
limits of my Python/Django abilities ;-)
Bruno got it right: what I want is a queryset of "model" with distinct
docid having the highest version number, sorted by revisiondate.
If have the following result of my
found_e
ltd.co.uk> wrote:
>
> > On Mon, Jul 11, 2011 at 2:57 PM, Michel30 wrote:
>
> >> Hi all,
>
> >> I have a basic search function that uses Q objects.
> >> After profiling it I found that the actual (mysql) database query
> >> finishes in fractio
Hi all,
I have a basic search function that uses Q objects.
After profiling it I found that the actual (mysql) database query
finishes in fractions of seconds but the iterating after this can take
up to 50 seconds per 10.000 results.
I have been trying to speed it up but I have had not much resul
hmm had a send accident..
I tried
Documentrevision.objects.values('documentid').annotate(Max('versionnumber')).filter
and it retrieves a list of values, but I need the objects to use later
on
On May 25, 2:40 pm, Michel30 wrote:
> I've tried annotate before but
I've tried annotate before but I ran into the issue that it returns a
list of values I believe?
I tried:
On May 25, 1:40 pm, Jani Tiainen wrote:
> On Wed, 2011-05-25 at 02:59 -0700, Michel30 wrote:
> > Hello all,
>
> > I have the following model:
>
> > cla
Hello all,
I have the following model:
class Documentrevision(models.Model):
docrevid = models.AutoField(primary_key=True,
db_column='DocRevID')
documentid = models.ForeignKey(Document, db_column='DocumentID')
submitterid = models.ForeignKey('Author', db_column='SubmitterID')
docu
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.
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
oglegroups.com
> Betreff: Re: outer joins, raw sql or one-to-many?
>
> On Tue, 2011-05-10 at 00:26 -0700, Michel30 wrote:
> > {{ some_thing.firstname }}
>
> maybe
> {{ some_thing.submitter.firstname }}
> --
> regards
> KGhttp://lawgon.livejournal.com
> Coim
tname }}
There is no data while I expected it to follow the relation back to
the Author table..
On May 10, 9:18 am, Michel30 wrote:
> Hi Kenneth,
>
> I tried that before using:
> submitterid = models.ForeignKey('Author', to_field='authorid')
>
> On May 10, 9:07 am, K
Hi Kenneth,
I tried that before using:
submitterid = models.ForeignKey('Author', to_field='authorid')
On May 10, 9:07 am, Kenneth Gonsalves wrote:
> On Mon, 2011-05-09 at 23:56 -0700, Michel30 wrote:
> > Now, for every documentid I retrieve I want to find it
Hey all,
I'm having trouble wrapping my head around querying multiple tables
with relations between them.
I'm writing an (cms-like) app that will use an existing mysql
database. I modeled that, got my code up and running and am now in the
process of trying to retrieve and submit data to it.
Here i
ocid', '')
> > and
> > request.GET.get('version', '')
>
> > Look at the documentation here:
>
> >http://docs.djangoproject.com/en/1.3/ref/request-response/#django.htt...
>
> > Raúl
>
> > On Thu, Apr 21, 2011 at 3:59 PM, Mic
Hey guy's,
I'm trying to replicate behaviour of a legacy CMS and stick it into a
new Django project.
Here is an example of my url:
http://hostname:port/cgi-bin/DocDB/ShowDocument?docid=19530&version=1
I want to filter the docid and version with a regex in a urlpattern to
use later in a function
25 matches
Mail list logo