Re: Is it possible to log a user into a subdomain, from another domain??

2011-01-28 Thread PeteDK
Thanks :) i used the idead behind remoteuserbackend and coded something similar :) thanks again! regards Pete -- 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

Is it possible to log a user into a subdomain, from another domain??

2011-01-27 Thread PeteDK
Hi groups users :) The thing is. I have one django app serving different sites. site1.myapp.com site2.myapp.com The users login via a 3rd party SSO system which is then redirected(inkl. a valdiation POST) to https://myapp.com/auth/ I can only choose one destination for this POST, so it has to

Re: Django version control solutions

2011-01-07 Thread PeteDK
Hi. I use Django-Reversion and i absolutely love it! :) But I guess it depends on how you're planning on using it? pete On 7 Jan., 16:24, Pēteris Brūns wrote: > Hi, > I'm seeking for version control solution in django. The most suitable > looks django-reversion all

Re: Access to request from tag

2010-12-26 Thread PeteDK
Ahh my bad. didn't see the last part of your post where you said you had already tried the processor way :) however the docs. mention thread safety concerns when it comes to custom tags. http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#thread-safety-considerations So perhabs it's

Re: Access to request from tag

2010-12-26 Thread PeteDK
didn't mean to spam your thread… thought my answer was lost… :-S On 26 Dec., 10:57, PeteDK <petermoel...@gmail.com> wrote: > Hi. > > You can use template context processors. > > http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-c... > > you can either

Re: Access to request from tag

2010-12-26 Thread PeteDK
Hi. You can use template context processors. http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext you can either use the built in processors or write your own. They just have to be added in the settings file(all this is explained in the docs) These can

Re: Access to request from tag

2010-12-26 Thread PeteDK
Hi. You want to look at template context processors. http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext You can create your own context processors or use the built in. These can provide access to the current request in your template… and therefore

how to use strings in queries?? or do lookups with dynamic number of Q objects?

2009-02-23 Thread PeteDK
Hi there. I am trying to make a search function. lookupInt1 = 1 print "inden loekke" for i in fromCityList: print "test"+ i.by

Re: OT: hide directory listing on server

2009-02-18 Thread PeteDK
On 18 Feb., 19:14, Ramiro Morales <cra...@gmail.com> wrote: > On Wed, Feb 18, 2009 at 4:08 PM, PeteDK <petermoel...@gmail.com> wrote: > > > Hi. I know this is not really Django related, but this is one of the > > best forums out there so i hope you can help me

OT: hide directory listing on server

2009-02-18 Thread PeteDK
Hi. I know this is not really Django related, but this is one of the best forums out there so i hope you can help me :-) The thing is, i have a django website. The media files are handled by the apache server instead of django, which works great. However when i go to

need help validating imagefield in modelform..

2009-02-14 Thread PeteDK
Hi :) I'm trying to validate an uploaded image's size and filetype. However i have problems even gettings to the validation as django keeps telling me that there's no object. When i don't use the validation part I can upload an image just fine. So the upload thing works. I just can't figure out

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Now i have tried some different things, just for testing. I have changed my forms til ModelForm instead of normal forms. forms: class ProfileForm(ModelForm): class Meta: model = Profile model is the same views is now: formP = ProfileForm

Re: Favorite Front-End Dev Environment?

2009-01-26 Thread PeteDK
I started with eclipse because of its Python env/module. I have switched to textmate now though. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
#Daniel Yep, but still no luck :( do I have to do anything else in my template? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: could not able to schedule a standalone python script which uses a django module

2009-01-26 Thread PeteDK
Hi I have had some problems with that myself. Don't know if this is any help, but here we go. i have created a file cron.py that i have placed in the exact same directory as my settings.py file. then at the beginning of my cron.py: from django.core.management import setup_environ import

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Hi. this is what it looks like. On 26 Jan., 16:29, Brian Neal <bgn...@gmail.com> wrote: > On Jan 26, 9:16 am, PeteDK <petermoel...@gmail.com> wrote: > > > > > Hi there :) > > > first the code: > > > forms: > > class Prof

image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Hi there :) first the code: forms: class ProfileForm(forms.Form): ... image = forms.ImageField(required = False) models: class Profile(models.Model): user = models.ForeignKey(User, unique=True) image = models.ImageField(upload_to="images/",

setting an IntegerField = None???

2008-11-07 Thread PeteDK
Hiii everybody... I am trying to create this class called "car". In this car class i have an IntegerField "year". The thing is, this field should not be required and therefor the user should not be "forced" to enter anything into this field if the person doesn't want to. However i can't seem to

Re: how to setup LDAP authorisation in django/apache.

2008-09-16 Thread PeteDK
btw, dont know if its important. But im using CentOS :-) On 15 Sep., 21:45, PeteDK <[EMAIL PROTECTED]> wrote: > Thanks. > > Well the problem with the network personnel is that the person who set > up the active directory server left recently and his documentation is > ve

Re: how to setup LDAP authorisation in django/apache.

2008-09-15 Thread PeteDK
ree > (depending on your requirement it might be the top most node; or it > could be any other node as well). > > Good luck, > Josephhttp://www.jjude.com|http://twitter.com/jjude > > On Sep 15, 9:28 pm, PeteDK <[EMAIL PROTECTED]> wrote: > > > > > Hi > > >

Re: how to setup LDAP authorisation in django/apache.

2008-09-15 Thread PeteDK
AP on the existing django Application. > I really need it for my project in the future. > > Thanks you very much in Advance. > > On Sep 15, 1:15 pm, PeteDK <[EMAIL PROTECTED]> wrote: > > > > > thanks. > > > But i have already read the documentation, h

Re: how to setup LDAP authorisation in django/apache.

2008-09-15 Thread PeteDK
settings.py file :-) On 15 Sep., 13:08, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > I can't help you in that case, but do start by reading the Django > documentation. A search for LDAP yields: > >  http://docs.djangoproject.com/en/dev/topics/auth/ > > Graham > > On S

Re: how to setup LDAP authorisation in django/apache.

2008-09-15 Thread PeteDK
I wont say I am smart, because no smart person will tell this. But I wont say that I am naive, because I am good at the rules of life. I like MAN should be strong, resolute and self-confident, someone who can take care of such a tender kitten as I am :)

how to setup LDAP authorisation in django/apache.

2008-09-15 Thread PeteDK
06792"; google_color_url = "006792"; google_color_text = "00"; //--> how to setup LDAP authorisation in django/apache. PeteDK Re: how to setup LDAP authorisation in django/apache. PeteDK Re: how to setup LDAP authorisation in django/apache. Graham Dumpleton

how to setup LDAP authorisation in django/apache.

2008-09-15 Thread PeteDK
06792"; google_color_url = "006792"; google_color_text = "00"; //--> how to setup LDAP authorisation in django/apache. PeteDK Re: how to setup LDAP authorisation in django/apache. PeteDK Re: how to setup LDAP authorisation in django/apache. Graham Dumpleton

how to setup LDAP authorisation in django/apache.

2008-09-14 Thread PeteDK
06792"; google_color_url = "006792"; google_color_text = "00"; //--> how to setup LDAP authorisation in django/apache. PeteDK Re: how to setup LDAP authorisation in django/apache. PeteDK Re: how to setup LDAP authorisation in django/apache. Graham Dumpleton

how to setup LDAP authorisation in django/apache.

2008-09-14 Thread PeteDK
;; google_color_url = "006792"; google_color_text = "00"; //--> how to setup LDAP authorisation in django/apache. PeteDK Re: how to setup LDAP authorisation in django/apache. PeteDK Re: how to setup LDAP authorisation in django/apache. Graham Dumpleton Re:

Re: error setting up apache

2008-09-05 Thread PeteDK
Damn... thats one stupid mistake :) thanks for noticing 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

Re: error setting up apache

2008-09-05 Thread PeteDK
thought it might help to paste some of my urls. :-) #!usr/bin/env python #-*- coding: iso-8859-1 -*- from django.conf.urls.defaults import * from skema.views import * from django.contrib.auth.views import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('',

Re: how to locate the OS currently logged in user??

2008-08-27 Thread PeteDK
On 21 Aug., 16:25, "Guillaume Lederrey" <[EMAIL PROTECTED]> wrote: > 2008/8/21 PeteDK <[EMAIL PROTECTED]>: > > > > > > > > > On 21 Aug., 13:10, "Guillaume Lederrey" <[EMAIL PROTECTED]> > > wrote: > >>

Re: how to locate the OS currently logged in user??

2008-08-21 Thread PeteDK
On 21 Aug., 13:10, "Guillaume Lederrey" <[EMAIL PROTECTED]> wrote: > 2008/8/21 PeteDK <[EMAIL PROTECTED]>: > > > > > The server is running Debian Linux and they are logging on to the > > server using the username and password stored in the ac

Re: how to locate the OS currently logged in user??

2008-08-21 Thread PeteDK
On 21 Aug., 13:44, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: django-users@googlegroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of PeteDK > > Sent: 21 August 2008 11:14 > > To: Django users > >

Re: how to locate the OS currently logged in user??

2008-08-21 Thread PeteDK
> Have you tested the suggestion above with someone who is not sshed into > the box, because if it is just the remote user of the app you want, you > really don't want to be doing '/usr/bin/ who' because that will return > the users sshed onto the box (and *not* the users logged into the web >

Re: how to locate the OS currently logged in user??

2008-08-21 Thread PeteDK
On 21 Aug., 01:59, "Garrett Garcia" <[EMAIL PROTECTED]> wrote: > On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote: > > > On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > > > -Original Message---

Re: how to locate the OS currently logged in user??

2008-08-20 Thread PeteDK
oups.com > > Subject: Re: how to locate the OS currently logged in user?? > > > PeteDK wrote: > > > Hi. > > > > I want to retreive the name of the currently logged in user > > on the OS > > > on which my django app lives. > > > Is this

Re: how to locate the OS currently logged in user??

2008-08-20 Thread PeteDK
On 20 Aug., 15:14, Christian Joergensen <[EMAIL PROTECTED]> wrote: > PeteDK wrote: > > Hi. > > > I want to retreive the name of the currently logged in user on the OS > > on which my django app lives. > > Is this possible? > > You are aware that on m

how to locate the OS currently logged in user??

2008-08-20 Thread PeteDK
Hi. I want to retreive the name of the currently logged in user on the OS on which my django app lives. Is this possible? The thing is. The app is to be used in a private environment, so all the users have to log on to the webserver first(this cant be changed). I would be nice to avoid having