Re: e React and Django auth

2022-08-26 Thread Hubert Kanyamahanga
Hi Ade, First of all, you will need to implement the authentication in your backend with drf and this https://django-rest-framework-simplejwt.readthedocs.io/en/latest/getting_started.html module will do almost everything for you. Then after you can look at how to consume your API with ReactJs. Le

Re: e React and Django auth

2022-08-26 Thread Adebileje Nurudeen
Hello... Have you seen someone that can put you through or help you out on the bugs you're facing?? If not, then I am assuring you that I can proffer to the problem and as well give details on how you'll solve it in case of next time... You can message me through my mail lordnar...@gmail.com if

Re: How to turn off SMTP login during forgot password in django-auth module

2022-03-23 Thread Sujit Pal
Update on this... the issue got solved as follows. Discovered next morning that the mail did go out but was caught in our corporate phishing net because it was going out from webmaster@localhost (apparently some sort of default email address for forgot_password). Adding the DEFAULT_FROM_EMAIL t

How to turn off SMTP login during forgot password in django-auth module

2022-03-22 Thread Sujit Pal
I implemented registration / login / forgot password functionality in my application following the steps described here -https://simpleisbetterthancomplex.com/tutorial/2016/09/19/how-to-create-password-reset-view.html I have it working with a google email and password sending on smtp.gmail.com.

Re: Fixtures for django auth groups

2019-12-04 Thread Arulselvam K
I solved the issue, Thanks lot Tim Grahma. Regards, Arul On Tue, 3 Dec 2019 at 22:41, Tim Graham wrote: > Take a look at > https://docs.djangoproject.com/en/stable/howto/initial-data/. > > On Tuesday, December 3, 2019 at 10:31:01 AM UTC-5, Arulselvam K wrote: >> >> I want to create fixtures for

Re: Fixtures for django auth groups

2019-12-03 Thread Tim Graham
Take a look at https://docs.djangoproject.com/en/stable/howto/initial-data/. On Tuesday, December 3, 2019 at 10:31:01 AM UTC-5, Arulselvam K wrote: > > I want to create fixtures for auth groups to get some preloaded auth > groups. Kindly educate me on how to create fixtures fixtures for built in

Fixtures for django auth groups

2019-12-03 Thread Arulselvam K
I want to create fixtures for auth groups to get some preloaded auth groups. Kindly educate me on how to create fixtures fixtures for built in django models Thanks and regards, Arulselvam K -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: Use Email to Login With Django Auth

2018-11-02 Thread William Vincent
Here you go: https://wsvincent.com/django-login-with-email-not-username/. On Thursday, November 1, 2018 at 8:09:13 AM UTC-4, Ryan Shepard wrote: > > How could i go about allowing people to also use their email to sign into > Django instead of a username? I have done research my self and tried >

Re: Use Email to Login With Django Auth

2018-11-02 Thread William Vincent
Yes that's me. I'm actually procrastinating on my book by writing up an example of login with email right now. Look for it shortly... Thanks for the kind words. On Friday, November 2, 2018 at 9:43:23 AM UTC-4, Anirudh Jain wrote: > > Hey William > > Is it you who runs the website wsvincent.com ?

Re: Use Email to Login With Django Auth

2018-11-02 Thread Anirudh Jain
Hey William Is it you who runs the website wsvincent.com ? Great stuff you have out there. Keep working man !! On Fri, 2 Nov 2018, 19:08 William Vincent As others have noted, the short answer is use django-allauth. Here's a > basic implementation that might help: https://github.com/wsvincent/dja

Re: Use Email to Login With Django Auth

2018-11-02 Thread William Vincent
As others have noted, the short answer is use django-allauth. Here's a basic implementation that might help: https://github.com/wsvincent/djangox. On Thursday, November 1, 2018 at 8:09:13 AM UTC-4, Ryan Shepard wrote: > > How could i go about allowing people to also use their email to sign into

Re: Use Email to Login With Django Auth

2018-11-02 Thread Anirudh Jain
Use django allauth library. It's great. On Thu, 1 Nov 2018, 17:39 Ryan Shepard How could i go about allowing people to also use their email to sign into > Django instead of a username? I have done research my self and tried > creating my own backend for it. But it doesn't work. > > -- > You recei

Re: Use Email to Login With Django Auth

2018-11-02 Thread Derek
And here's a helpful blog post walking you through the basics: https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html On Thursday, 1 November 2018 23:54:56 UTC+2, Timothy Cook wrote: > > I use this and it works great. > https://django-allauth.readthedocs.

Re: Use Email to Login With Django Auth

2018-11-01 Thread Timothy Cook
I use this and it works great. https://django-allauth.readthedocs.io/en/latest/installation.html On Thu, Nov 1, 2018 at 9:08 AM Ryan Shepard wrote: > How could i go about allowing people to also use their email to sign into > Django instead of a username? I have done research my self and tried

Re: Use Email to Login With Django Auth

2018-11-01 Thread Ryan Shepard
That helps a bunch, thank you! On Thursday, November 1, 2018 at 12:44:20 PM UTC-5, Andrew Pinkham wrote: > > You may be interested in django-improved-user, as it provides an > email-based User model. > > https://pypi.org/project/django-improved-user/ > > Full disclosure: I am one of the origina

Re: Use Email to Login With Django Auth

2018-11-01 Thread maunish dave
Do not use django login authentication instead make your own authentication page On Fri 2 Nov, 2018, 12:12 AM Deb Das, wrote: > You can query for the given email and get the username, then getting the > username do normal Django authentication. > > On Thu 1 Nov, 2018, 5:39 PM Ryan Shepard >> Ho

Re: Use Email to Login With Django Auth

2018-11-01 Thread Deb Das
You can query for the given email and get the username, then getting the username do normal Django authentication. On Thu 1 Nov, 2018, 5:39 PM Ryan Shepard How could i go about allowing people to also use their email to sign into > Django instead of a username? I have done research my self and tr

Re: Use Email to Login With Django Auth

2018-11-01 Thread Andrew Pinkham
You may be interested in django-improved-user, as it provides an email-based User model. https://pypi.org/project/django-improved-user/ Full disclosure: I am one of the original authors. If you have any trouble with the package or documentation, please open an issue! Andrew https://jambonsw.co

Re: Use Email to Login With Django Auth

2018-11-01 Thread Mikhailo Keda
use email as username) check this code - https://bitbucket.org/voron-raven/chat/src/1073edbed7700a5bea87bf5b9c08297e7db57af6/core/views.py#lines-267:283 and modify POST to set email as username -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Use Email to Login With Django Auth

2018-11-01 Thread ansh srivastav
Your question is not clear, please be a bit specific. [image: Mailtrack] Sender notified by Mailtrack 11/01

Use Email to Login With Django Auth

2018-11-01 Thread Ryan Shepard
How could i go about allowing people to also use their email to sign into Django instead of a username? I have done research my self and tried creating my own backend for it. But it doesn't work. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Implementing django auth system with relational models

2016-08-18 Thread Shamaila Moazzam
ok thanx @ ludovic coues... i will try this and then tell you regards On Thursday, August 18, 2016 at 2:38:46 AM UTC+5, ludovic coues wrote: > > Ok, sorry, I made a off by one error on the link :) > > Try that: > > # shops/admin.py > from django.contrib import admin > from products.models im

Re: Implementing django auth system with relational models

2016-08-18 Thread ludovic coues
No idea. I've never looked into model managers. Maybe they can help in non-repeating code, maybe they won't work due to the lack of access to the currently logged user. 2016-08-18 12:55 GMT+02:00 M Hashmi : > Ludovic, > > Shouldn't she be using model managers for this? > > Just curious. > > Regard

Re: Implementing django auth system with relational models

2016-08-18 Thread M Hashmi
Ludovic, Shouldn't she be using model managers for this? Just curious. Regards, Mudassar On Wed, Aug 17, 2016 at 2:37 PM, ludovic coues wrote: > Ok, sorry, I made a off by one error on the link :) > > Try that: > > # shops/admin.py > from django.contrib import admin > from products.model

Re: Implementing django auth system with relational models

2016-08-17 Thread ludovic coues
Ok, sorry, I made a off by one error on the link :) Try that: # shops/admin.py from django.contrib import admin from products.models import Product from .models import Shop class ShopAdmin(admin.ModelAdmin): def formfield_for_manytomany(self, db_field, request, **kwargs): if db_field

Re: Implementing django auth system with relational models

2016-08-17 Thread Shamaila Moazzam
shops/admin.py from .models import Shop admin.site.register(Shop) products/admin.py from .models import Product, Variation, ProductImage, Category, ProductFeatured, color_product, size_product class ProductImageInline(admin.TabularInline): model = ProductImage extra = 0 max_num = 10 clas

Re: Implementing django auth system with relational models

2016-08-17 Thread Shamaila Moazzam
On Wednesday, August 17, 2016 at 6:37:51 PM UTC+5, Shamaila Moazzam wrote: > > Hi, > > I am a beginner and please forgive me if my question is not up to the > standard. I've got two models one is Product which is saved in db already > and another one is Shop. I am trying to related both models

Re: Implementing django auth system with relational models

2016-08-17 Thread ludovic coues
Could you share your admin.py file ? You might be interested into this part of the documentation: https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_foreignkey 2016-08-17 17:20 GMT+02:00 Shamaila Moazzam : > @Ludovic there is no error. Just I d

Re: Implementing django auth system with relational models

2016-08-17 Thread Shamaila Moazzam
@Ludovic there is no error. Just I don't want to get all the products pre-populated. I need empty products field and only when user uploads products then it should show me products. Please advise On Wednesday, August 17, 2016 at 6:37:51 PM UTC+5, Shamaila Moazzam wrote: > > Hi, > > I am a beginn

Re: Implementing django auth system with relational models

2016-08-17 Thread Shamaila Moazzam
@Mudassar this is exactly what I need. On Wednesday, August 17, 2016 at 6:37:51 PM UTC+5, Shamaila Moazzam wrote: > > Hi, > > I am a beginner and please forgive me if my question is not up to the > standard. I've got two models one is Product which is saved in db already > and another one is

Re: Implementing django auth system with relational models

2016-08-17 Thread M Hashmi
So what you are saying is that you don't need to get all the products instead only products uploaded by a particular user? This makes sense because you are getting the whole model called with the key so if I am getting your question right you just need to apply some sort of filter to get user relat

Re: Implementing django auth system with relational models

2016-08-17 Thread ludovic coues
Do you have any error with the code you posted ? It look like you already have a foreign key to your user. 2016-08-17 15:33 GMT+02:00 Shamaila Moazzam : > Hi, > > I am a beginner and please forgive me if my question is not up to the > standard. I've got two models one is Product which is saved in

Implementing django auth system with relational models

2016-08-17 Thread Shamaila Moazzam
Hi, I am a beginner and please forgive me if my question is not up to the standard. I've got two models one is Product which is saved in db already and another one is Shop. I am trying to related both models with following code. class Product(models.Model): user = models.ForeignKey(setting

Django app that adds multiple inheritance for Django auth groups?

2016-04-01 Thread Stodge
Is anyone aware of a Django app that adds multiple inheritance to Django auth groups? I know about django-hierarchical-auth but I want the ability to specify multiple parents for a group to make it easier to manage and group permissions. Thanks -- You received this message because you are

Re: Django Auth\Auth

2015-02-02 Thread Mario Gudelj
project > How do I customize and use django Auth/Auth feature? On sign up I have to > store many details than just first_name, last_name, email and password. Can > any one help me :) ? > > -- > You received this message because you are subscribed to the Google Groups > "Dj

Django Auth\Auth

2015-02-01 Thread Ajay M
Hi, I'm a new bee to Django, I need to use signup/login facilities in my project How do I customize and use django Auth/Auth feature? On sign up I have to store many details than just first_name, last_name, email and password. Can any one help me :) ? -- You received this message becaus

Re: Authenticating against django auth db from apache

2014-08-19 Thread Héctor Urbina
I deleted my browser's cache and it worked!. I just thought that closing my session on the django project's page would also close my session on this directory... H. On Tuesday, August 19, 2014 3:49:07 PM UTC-4, Héctor Urbina wrote: > > Hello Collin, > > Yes, commenting out the check_password li

Re: Authenticating against django auth db from apache

2014-08-19 Thread Héctor Urbina
Hello Collin, Yes, commenting out the check_password line fixes the problem. On settings, I'm importing User from django.contrib.auth.models. I discovered that commenting out that stops the ImportError. However, the authentication doesn't happen when I visit my secret location. Apache simply sh

Re: Authenticating against django auth db from apache

2014-08-14 Thread Collin Anderson
Does commenting out the check_password line in wsgi.py actually fix the problem? Are you importing "auth" somewhere in your settings? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Authenticating against django auth db from apache

2014-08-14 Thread Héctor Urbina
Hello, I'm following intructions in https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/apache-auth/, but the wsgi.py script is giving the following error: ImportError: Could not import settings 'uddo.settings' (Is it on sys.path? Is there an import error in the settings file?): cannot

Re: Django auth customing error

2014-05-31 Thread Kelvin Wong
In your helpdesk app you have leftover references to auth.User. Replace all of them with something like this: user = models.ForeignKey(settings.AUTH_USER_MODEL) K On Saturday, May 31, 2014 6:25:28 AM UTC-7, Jackie wrote: > > I want to custom the django auth app, since the default auth a

Django auth customing error

2014-05-31 Thread Jackie
I want to custom the django auth app, since the default auth app can not meet our project's requierment. Then I figure it out on my own by checking the django document at here. https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#a-full-example. I tried to do that example ex

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
es the logging go? >> >> On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: >>> >>> Ok. Now try to get django-ldap-auth working. See if you can enable the >>> logging handler and grab some more information. >>> >>> http://pythonhosted.org/*

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
w try to get django-ldap-auth working. See if you can enable the >> logging handler and grab some more information. >> >> http://pythonhosted.org/django-auth-ldap/logging.html >> >> Regards >> Guddu >> >> On Wed, May 15, 2013 at 10:56 AM, Cody Scott w

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
go? > > > On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: > >> Ok. Now try to get django-ldap-auth working. See if you can enable the >> logging handler and grab some more information. >> >> http://pythonhosted.org/**django-auth-ldap/logging.html<http://pyth

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
I have that code but where does the logging go? On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: > > Ok. Now try to get django-ldap-auth working. See if you can enable the > logging handler and grab some more information. > > http://pythonhosted.org/django-auth-ld

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Ok. Now try to get django-ldap-auth working. See if you can enable the logging handler and grab some more information. http://pythonhosted.org/django-auth-ldap/logging.html Regards Guddu On Wed, May 15, 2013 at 10:56 AM, Cody Scott wrote: > Ok The problem was that I had the file named ldap

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
does this show you? import ldap print ldap.__file__ We should try to get this working first before moving to django-auth-ldap Regards Guddu On Wed, May 15, 2013 at 10:17 AM, Cody Scott wrote: > http://dpaste.org/EboQU/ > > On Wednesday, 15 May 2013 10:09:01 UTC-4, Guddu wrote: > >&

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
Ok The problem was that I had the file named ldap.py. I got it to work, I had to add a print to l.result(result) put I get a tuple of a number and an empty list (#, []) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
eparate python file and ran it without django or >> django-auth-ldap. >> >> l = ldap.initialize() >> AttributeError: 'module' object has no attribute 'initialize' >> >> so python-ldap is not installed properly? >> >> I am not

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
What does this give you? import ldap dir(ldap) Regards Guddu On Wed, May 15, 2013 at 10:04 AM, Cody Scott wrote: > I put that code in a separate python file and ran it without django or > django-auth-ldap. > > l = ldap.initialize() > AttributeError: 'module' object has

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
I put that code in a separate python file and ran it without django or django-auth-ldap. l = ldap.initialize() AttributeError: 'module' object has no attribute 'initialize' so python-ldap is not installed properly? I am not able to login, no error just invalid credent

Re: django-auth-ldap

2013-05-14 Thread Anurag Chourasia
Setting up of groups is not a requirement. In my case I am searching for group membership just to grant/deny access based on Group membership also. I sent my settings to you just to show you how I was using sAMAccountName for user search. So what exactly is not working in your case? You are not ab

Re: django-auth-ldap

2013-05-14 Thread Cody Scott
Do I need to set up groups? I have a setting for AUTH_LDAP_SERVER_URI AUTH_LDAP_BIND_DN AUTH_LDAP_BIND_PASSWORD AUTH_LDAP_USER_SEARCH AUTH_LDAP_USER_ATTR_MAP = { "username": "sAMAccountName", "email": "mail" } I am using a custom auth model. Maybe that is the reason it is not working?

Re: django-auth-ldap

2013-05-14 Thread Anurag Chourasia
om the login form. Regards, Guddu On Tue, May 14, 2013 at 2:52 PM, Cody Scott wrote: > I am trying to get django-auth-ldap working with an Active Directory LDAP > Server. > > I don't understand the documentation for the Search/Bind or Direct Bind. > > Is 'uid' the L

django-auth-ldap

2013-05-14 Thread Cody Scott
I am trying to get django-auth-ldap working with an Active Directory LDAP Server. I don't understand the documentation for the Search/Bind or Direct Bind. Is 'uid' the LDAP attribute uid? My LDAP doesn't use this attribute. I tried putting 'samaccountName' an at

Re: django auth user - difference between last login and now

2013-04-17 Thread Bill Freeman
One way is to replace/wrap/monkey-patch the login view to save a copy of the last login element for the looked up user in a local variable, and then, if login is successful, and the last login was long enough ago, modify the successful login redirect to your "instructions" page. On Tue, Apr 16, 2

Re: django auth user - difference between last login and now

2013-04-16 Thread Jaimin Patel
Any suggestion on this question? On Friday, April 12, 2013 10:35:54 AM UTC-4, Jaimin Patel wrote: > > Hello, > > I would like to provide some instructions if user come after gap of 1 week > or so. I was hoping that I can do that by - > > (datetime.now()-user.last_login) > timedelta(days=7) > > T

django auth user - difference between last login and now

2013-04-12 Thread Jaimin Patel
Hello, I would like to provide some instructions if user come after gap of 1 week or so. I was hoping that I can do that by - (datetime.now()-user.last_login) > timedelta(days=7) Though by the time it comes to my view last login is already updated by auth user model of django, so in my applica

Re: django auth against local users

2012-08-13 Thread Joris
> > You keep saying "local machine". Do you mean the machine the user is > browsing from? That's not possible, for what should be obvious security > reasons. > -- > DR. > No that would indeed be silly. By local machine I mean local to the django install: i.e. the server. I figured that was o

Re: django auth against local users

2012-08-13 Thread Daniel Roseman
On Monday, 13 August 2012 09:26:18 UTC+1, Joris wrote: > > Dear list > I've seen a number of differnent auth backends for django, but for some > reason could not find a way to have Django auth against the local system > users on the local machine (e.g. /etc/passwd). In my ca

django auth against local users

2012-08-13 Thread Joris
Dear list I've seen a number of differnent auth backends for django, but for some reason could not find a way to have Django auth against the local system users on the local machine (e.g. /etc/passwd). In my case Django is running on an intranet site (CentOS6) that is also connected to wi

Django auth context processor: not to query for user for each request

2011-09-24 Thread Alexey Moskvin
Hi, I enabled django auth middleware, so now I have a user variable in my request context. In this case for each page request user object is queried from the database. Is it possible to set up this middleware to use a cached user object (for example, put by me in session)? User objects are not

Re: Django Auth

2011-07-11 Thread Kenneth Gonsalves
On Mon, 2011-07-11 at 12:45 -0700, Gizmo wrote: > please am new to django, and am looking for something more > appropriate for django auth what features do you want? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this m

Re: Django Auth

2011-07-11 Thread Kiril Vladimirov
You might want to search for something that could *expand* Django Auth to the way you like it. But trust me, you don't need anything else. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the w

Re: Django Auth

2011-07-11 Thread Cal Leeming [Simplicity Media Ltd]
django, and am looking for something more appropriate for django auth -- 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 from this group, send email to dj

Django Auth

2011-07-11 Thread Gizmo
please am new to django, and am looking for something more appropriate for django auth -- 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 from this g

Implementation of sso with django auth.

2011-07-05 Thread Ricardob
I'm trying to implement single sign-on using only django auth. Let's assume two django projects, on different sub-domains: site.com(auth) and app1.site.com(app1) The auth table in site.com is master. site.com handles: login, logout, account registration, etc. site.com sets SESSION_COO

Re: About using Django Auth with my app, Auto saving the User

2011-03-24 Thread Amanjeev Sethi
Thanks a lot. -- 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 from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit t

Re: About using Django Auth with my app, Auto saving the User

2011-03-21 Thread Lior Sion
If instead of printing "not valid" you'll print the form itself with the errors (as described here for example: http://docs.djangoproject.com/en/dev/topics/forms/#customizing-the-form-template) you would see what the errors are. Alternatively, read about form validation (http://docs.djangoproject.c

Re: About using Django Auth with my app, Auto saving the User

2011-03-20 Thread AJ
No, the form submits, with other values too, to the view but it just does not validate. AJ -- 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 from this group, send

Re: About using Django Auth with my app, Auto saving the User

2011-03-20 Thread AJ
My form is not valid and I cannot figure out why. I am using Django's ModelForm to generate a form (As above). I printout out the request.POST and all it has is "csrfmiddlewaretokenname" Just putting it here. -- You received this message because you are subscribed to the Google Groups "Django

Re: About using Django Auth with my app, Auto saving the User

2011-03-19 Thread AJ
OK. I believe that the form is invalid. "if post_form.is_valid():" actually fails and it prints "not working". I am using the default form that Django creates from class PostForm(ModelForm): class Meta: model = Post Is it not good? On Mar 18, 10:10 pm, AJ wrote: > I

Re: About using Django Auth with my app, Auto saving the User

2011-03-18 Thread AJ
I have tried both solutions but could not achieve the results. here is the actual code that I started working with. This is the simplest version that I did to test this feature. Model-- class Post (models.Model): name = models.Ch

Re: About using Django Auth with my app, Auto saving the User

2011-03-17 Thread Shawn Milochik
Here's an alternative way to do it. Something like (in view): post.save(user = request.user) And in your save override: user = kwargs.pop('user') self.user = user super(Post, self).save(*args, **kwargs) The reason you pop off the 'user' value instead of just reading it is that

Re: About using Django Auth with my app, Auto saving the User

2011-03-17 Thread AJ
My apologies, I guess that was a rude thing to write but believe me, my intention was not to be rude at all. I know that no one here owes me an answer and I respect that folks still help. Please accept my apologies if I came off as a rude person in my last message. Thanks a lot for your help. --A

Re: About using Django Auth with my app, Auto saving the User

2011-03-17 Thread Daniel Roseman
On Thursday, March 17, 2011 2:33:50 PM UTC, AJ wrote: > > No one? > > On Mar 16, 10:05 pm, AJ wrote: > > I have a model like this: > > > > class Post (models.Model): > > name = models.CharField(max_length=1000, help_text="required, name > > of the post") > > description = models.Tex

Re: About using Django Auth with my app, Auto saving the User

2011-03-17 Thread AJ
No one? On Mar 16, 10:05 pm, AJ wrote: > I have a model like this: > > class Post (models.Model): >     name = models.CharField(max_length=1000, help_text="required, name > of the post") >     description = models.TextField(blank=True) >     custom_hashed_url = models.CharField(unique=True, max_l

About using Django Auth with my app, Auto saving the User

2011-03-16 Thread AJ
I have a model like this: class Post (models.Model): name = models.CharField(max_length=1000, help_text="required, name of the post") description = models.TextField(blank=True) custom_hashed_url = models.CharField(unique=True, max_length=1000, editable=False) def save(self, *args, **k

calling django auth from apache RewriteMap

2011-01-12 Thread Brian Craft
I'm interested in using RewriteMap (from mod_rewrite) to check for a django user session. That is, RewriteMap would invoke some script which would return session info, which could be used by mod_rewrite to allow or deny access. Basically, this would require writing a standalone python script that r

Re: Problem with django auth login_required and lighttpd

2011-01-11 Thread Eric Chamberlain
John, We have a similar configuration, try adding: FORCE_SCRIPT_NAME = '' to settings.py On Jan 11, 2011, at 2:44 PM, John Finlay wrote: > I'm trying to serve django pages using mod_fastcgi from a lighttpd server. > Everything works well using the setup recommended in the documentation excep

Problem with django auth login_required and lighttpd

2011-01-11 Thread John Finlay
I'm trying to serve django pages using mod_fastcgi from a lighttpd server. Everything works well using the setup recommended in the documentation except for the initial login. The porblem seems to be that when the user tries: http://server/ the login page comes up with a url of: http://serve

Re: django auth for existing cgi

2010-12-07 Thread Brian Craft
Copying things from request.META to the env parameter of Popen allows me to get the cgi off the ground. Now I have the problem that the cgi is generating a cookie and content type, which django returns to the browser as page content. Is there a way to pass it back transparently? Or, failing that,

Re: django auth for existing cgi

2010-12-06 Thread Wayne Smith
On Mon, Dec 6, 2010 at 4:42 PM, bc wrote: > Is there any simple way to use django authentication/authorization to > control access to an existing (not django) cgi? > > I could use subprocess.Popen to invoke the cgi after checking > authorization, but the environment needs to be set up to look lik

django auth for existing cgi

2010-12-06 Thread bc
Is there any simple way to use django authentication/authorization to control access to an existing (not django) cgi? I could use subprocess.Popen to invoke the cgi after checking authorization, but the environment needs to be set up to look like a cgi call (setting QUERY_STRING, etc.). Is there a

Re: Django auth tutorial

2010-11-03 Thread Sebastian Alonso
Thanks a lot peter! I think I'll get started with that info and move further if needed. thanks seba 2010/11/3 Peter Herndon > > On Nov 3, 2010, at 12:31 PM, Sebastian Alonso wrote: > > > Hi everyone, I'm a complete django newbie, and I need to use the Auth > system. The problem is that I

Re: Django auth tutorial

2010-11-03 Thread Peter Herndon
On Nov 3, 2010, at 12:31 PM, Sebastian Alonso wrote: > Hi everyone, I'm a complete django newbie, and I need to use the Auth > system. The problem is that I haven't been able to find a good tutorial such > as que django one, with all the examples, pretty simple, very easy, with the > templ

Django auth tutorial

2010-11-03 Thread Sebastian Alonso
Hi everyone, I'm a complete django newbie, and I need to use the Auth system. The problem is that I haven't been able to find a good tutorial such as que django one, with all the examples, pretty simple, very easy, with the templates included, etc... My main issue is that i dont get on well wit

Django auth/many to many issue?

2010-07-09 Thread zweb
if i do, request.user.groups = [group1] Sometimes it saves this in DB auth_user_group , sometimes it does not. I do not have any save() stmt. What is the expected behavior? I do not want it to save it in DB without explicit save, How do I achieve that? -- You received this message because you

Django auth/many to many issue?

2010-07-09 Thread zweb
if i do, request.user.groups = [group1] Sometimes it saves this in DB auth_user_group , sometimes it does not. I do not have any save() stmt. What is the expected behavior? I do not want it to save it in DB without explicit save, How do I achieve that? -- You received this message because you

Re: Bug in Django auth

2010-05-10 Thread zweb
thanks so much Allison. That was the reason. test account I was using had is_superuser set to 1 in DB. Spent 4 hours debugging it. Thanks a lot. On May 10, 2:44 pm, Alisson Patrício wrote: > Maybe you're logged in with a superuser, superuser can do everything :) > > > > On Mon, May 10, 2010 a

Re: Bug in Django auth

2010-05-10 Thread Alisson Patrício
Maybe you're logged in with a superuser, superuser can do everything :) On Mon, May 10, 2010 at 3:52 PM, zweb wrote: > I displayed following values in my html template. I am running it on > wsgi, python 2.5 and Django 1.1.1 on webfaction. > {{perms.user}}Value displayed: set([]) > {{perms.co

Bug in Django auth

2010-05-10 Thread zweb
I displayed following values in my html template. I am running it on wsgi, python 2.5 and Django 1.1.1 on webfaction. {{perms.user}}Value displayed: set([]) {{perms.core}}Value displayed: set([]) {{perms.core.add_project}} Value Displayed: True ( BUG: should be false as perms.user and per

wierd template issue with perms (django auth)

2010-05-10 Thread zweb
I have {% if perms.core.add_project %} which is expected to be false but it is returning true. I am running it on webfaction (mod_wsgi, python 2.5 , django 1,1,1). I do {{perms.user}} in my html on webfaction and I get - perms: set([u'core.view_project']) which is correct. and {{perms.core.add_

Re: Beyound django auth - custom login function - where?

2010-05-01 Thread derek
On Apr 30, 4:44 pm, Aitch wrote: > I'm fearful this is a really dumb question but I'll go ahead anyway. > > My app is starting to need to go beyond basic auth. e.g. when a user > logs in, I need to check various related statuses, provide distinct > messages, set session vars and such like. > > Wha

Beyound django auth - custom login function - where?

2010-04-30 Thread Aitch
I'm fearful this is a really dumb question but I'll go ahead anyway. My app is starting to need to go beyond basic auth. e.g. when a user logs in, I need to check various related statuses, provide distinct messages, set session vars and such like. What's not clear to me is, if I provide my own lo

Re: basic django auth fails on valid user

2010-03-25 Thread Tom Evans
On Thu, Mar 25, 2010 at 2:48 PM, Jim N wrote: > Thanks Tim, > > Yes, I just saw this.  I was subclassing auth.User because I didn't > know the right way to do it. > > Now I am on the right track. > > Just one thing I can't figure out. > > "When a user profile model has been defined and specified i

Re: basic django auth fails on valid user

2010-03-25 Thread Jim N
Thanks Tim, Yes, I just saw this. I was subclassing auth.User because I didn't know the right way to do it. Now I am on the right track. Just one thing I can't figure out. "When a user profile model has been defined and specified in this manner, each User object will have a method -- get_profi

Re: basic django auth fails on valid user

2010-03-24 Thread Tim Shaffer
I think this could all be simplified a bit if you used a UserProfile model instead of subclassing auth.User. http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users Was there a specific reason you were subclassing auth.User? -- You received this message beca

Re: basic django auth fails on valid user

2010-03-24 Thread Jim N
OK, so it seems what's happening is that the password is being stored in `api_qotduser` plain text. I *believe* Django expects a hashed password? More strangeness: I switched to using check_password and NOW Django is querying `api_qotduser`, where before it was querying `auth_user`. New login vi

  1   2   >