Re: Authorization not working on production server

2018-12-07 Thread Sidnei Pereira
Did you log in? Em sexta-feira, 7 de dezembro de 2018 09:21:51 UTC-2, Akash utreja escreveu: > > Hi, > I am building authorization in django framework using python.. The problem > is that my code is working fine on local server but when I run the same in > production it returns "Anonymous User"

Re: Authorization workflow model

2011-09-07 Thread Mario8k
On 6 sep, 06:31, Julien Castets wrote: > Hi, > > I faced to the same problem than you a few weeks ago, and I found this > :https://github.com/dominno/django-moderation#readme > It seems to be what you're searching. > This reusable app seems to work for me. I will try it. Thanks. > Julien Caste

Re: Authorization workflow model

2011-09-07 Thread Mario8k
On 6 sep, 00:55, Mike Dewhirst wrote: > On 6/09/2011 5:46am, Mario8k wrote: > > > Hello, > > > Does anyone knows some solution (reusable app, snippet or any idea) to > > model an authorization workflow of data? > > > That is... supose that a user have restricted some model field, ie, > > cannot

Re: Authorization workflow model

2011-09-07 Thread Mario8k
On 5 sep, 17:27, Shawn Milochik wrote: > You could use a model with three fields: >     A generic foreign key to the instance to be modified. >     A char field containing the fieldname on that instance. >     The new value. > > Of course you'd need another field to store the user (assuming the

Re: Authorization workflow model

2011-09-06 Thread Julien Castets
Hi, I faced to the same problem than you a few weeks ago, and I found this : https://github.com/dominno/django-moderation#readme It seems to be what you're searching. On Tue, Sep 6, 2011 at 5:55 AM, Mike Dewhirst wrote: > On 6/09/2011 5:46am, Mario8k wrote: >> >> Hello, >> >> Does anyone knows

Re: Authorization workflow model

2011-09-05 Thread Mike Dewhirst
On 6/09/2011 5:46am, Mario8k wrote: Hello, Does anyone knows some solution (reusable app, snippet or any idea) to model an authorization workflow of data? That is... supose that a user have restricted some model field, ie, cannot edit directly this field. And now supose that he could request to

Re: Authorization workflow model

2011-09-05 Thread Shawn Milochik
You could use a model with three fields: A generic foreign key to the instance to be modified. A char field containing the fieldname on that instance. The new value. Of course you'd need another field to store the user (assuming the person making the authorization will base their decis

Re: Authorization of static content

2011-02-23 Thread Sam Lai
On 23 February 2011 19:03, Joakim Hove wrote: > Hello, > > I am using Django to create an album application. I was planning to > use djangos user system for authorization, however the final image > viewing will be like: > >     > > Where image.url should resolve to something like > http://static

Re: Authorization of static content

2011-02-23 Thread Joakim Hove
Thank you; that was a very good starting point - I will hopefully find a solution from this. Joakim On 23 Feb, 09:18, Mike Ramirez wrote: > On Wednesday, February 23, 2011 12:03:12 am Joakim Hove wrote: > > > Hello, > > Any suggestions of how to combine django based authorization with > > servi

Re: Authorization of static content

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:03:12 am Joakim Hove wrote: > Hello, > Any suggestions of how to combine django based authorization with > serving of static content? I am the owner of the box in question and > can modify the apache setup way beyond my competence. > > Regards - Joakim Hove Yo

Re: authorization

2009-10-13 Thread Arthur Metasov
2009/10/13 elminio > > Hi, > > By admin I can choose what users can do with model objects. And what > about certain pages. Do I have to write if in everyone view method (to > check is current user may access given view ? > > Or is there any built in tool that makes it possible to restrict > acces

Re: authorization

2009-10-13 Thread nabucosound
And specifically the @login_required decorator... On Oct 13, 12:51 pm, Daniel Roseman wrote: > On Oct 13, 11:42 am, elminio wrote: > > > Hi, > > > By admin I can choose what users can do with model objects. And what > > about certain pages. Do I have to write if in everyone view method (to > >

Re: authorization

2009-10-13 Thread Daniel Roseman
On Oct 13, 11:42 am, elminio wrote: > Hi, > > By admin I can choose what users can do with model objects. And what > about certain pages. Do I have to write if in everyone view method (to > check is current user may access given view ? > > Or is there any built in tool that makes it possible to r

Re: Authorization on data level in django admin

2009-04-02 Thread Malcolm Tredinnick
On Thu, 2009-04-02 at 22:34 -0700, Joshua Partogi wrote: > On Apr 3, 11:23 am, Malcolm Tredinnick > wrote: > > On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote: > > > Dear all, > > > > > In django admin we can give permission to user to edit, delete or > > > create certain model. But what

Re: Authorization on data level in django admin

2009-04-02 Thread Joshua Partogi
On Apr 3, 11:23 am, Malcolm Tredinnick wrote: > On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote: > > Dear all, > > > In django admin we can give permission to user to edit, delete or > > create certain model. But what I want to do now is a user can only > > edit or delete the data that he

Re: Authorization on data level in django admin

2009-04-02 Thread Malcolm Tredinnick
On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote: > Dear all, > > In django admin we can give permission to user to edit, delete or > create certain model. But what I want to do now is a user can only > edit or delete the data that he/she created. > > Is there any way we can do this in dj

Re: Authorization from ssl certificate data

2007-11-12 Thread Graham Dumpleton
On Nov 13, 3:34 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 11/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > So, without having tested it, you might be able to access > > request._req.subprocess_env to get the information (although read the > >mod_pythondocs first, particularl

Re: Authorization from ssl certificate data

2007-11-12 Thread James Bennett
On 11/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > So, without having tested it, you might be able to access > request._req.subprocess_env to get the information (although read the > mod_python docs first, particularly about add_common_vars(), since > that's certainly tripped me up in th

Re: Authorization from ssl certificate data

2007-11-12 Thread Malcolm Tredinnick
On Mon, 2007-11-12 at 15:55 +, Krzysztof Ciesielski wrote: > Hi, I've got a problem with django used with mod_ssl and mod_python. I > wanted to use environmental variables from mod_ssl in order to > automaticly log in users but it appears that those variables are not > accessible trough requ

Re: Authorization from ssl certificate data

2007-11-12 Thread James Bennett
On 11/12/07, Krzysztof Ciesielski <[EMAIL PROTECTED]> wrote: > Hi, I've got a problem with django used with mod_ssl and mod_python. I > wanted to use environmental variables from mod_ssl in order to > automaticly log in users but it appears that those variables are not > accessible trough request

Re: Authorization Model at the Field Level

2007-11-06 Thread Marcin Mierzejewski
Hi Manakel, On Nov 6, 11:53 am, Manakel <[EMAIL PROTECTED]> wrote: > This web application had a Authorization model at the Field level. > [] > TASK has a progress status field and a due date field > realisator user can only change the status field > owner can change both the status field