Re: auth_user' doesn't exist

2023-12-02 Thread 'Kasper Laudrup' via Django users
On 02/12/2023 07.56, Nurlanbek Musaev wrote: hello everyone I get an error when I do makemigrations. I tried many things. It didn't happen django.db.utils.ProgrammingError: (1146, "Table 'prodb1.auth_user' doesn't exist") If you've just tried many things you need to try m

Re: auth_user' doesn't exist

2023-12-02 Thread Larry Martell
On Sat, Dec 2, 2023 at 9:00 AM Nurlanbek Musaev wrote: > hello everyone > I get an error when I do makemigrations. I tried many things. It didn't > happen > django.db.utils.ProgrammingError: (1146, "Table 'prodb1.auth_user' doesn't > exist") Have you run the initial m

auth_user' doesn't exist

2023-12-02 Thread Nurlanbek Musaev
hello everyone I get an error when I do makemigrations. I tried many things. It didn't happen django.db.utils.ProgrammingError: (1146, "Table 'prodb1.auth_user' doesn't exist") -- You received this message because you are subscribed to the Google Groups "Django users" g

If save a new row, then save a new user in AUTH_USER

2022-06-11 Thread Gabriel Araya Garcia
Tengo una template, la cual sirve para incorporar vendedores, en esta, existe un campo username. ¿ Que debería hacer cuando graba un nuevo registro vaya e inserte también dicho vendedor en auth_user. En mi template tengo varios campos del mismo nombre que usa auth_user, por lo cual sería

Getting Error in auth_user table

2021-01-27 Thread Ajit Mourya
django.db.utils.ProgrammingError: there is no unique constraint matching given keys for referenced table "auth_user" please explain why this error is popup while migrations. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How to reset is_active field of auth_user

2020-08-25 Thread Mike Dewhirst
On Mon, Aug 24, 2020, 5:46 PM Kamakshi Aggarwal wrote: >   > Now if user leaves the company how should I set "is_active" field to > False. > There are two ways to do it. One is to write a view which lets someone in HR turn it off. The other is to use Django Admin with the correct privileges and

Re: How to reset is_active field of auth_user

2020-08-24 Thread Amresh Giri
;>> RemoteUserAuthentication for that(single sign on). Only employees can sign >>> in. >>> Once employee signs in,is_active filed is set to True by default in >>> auth_user table. >>> >>> Now if user leaves the company how should I set "is_act

Re: How to reset is_active field of auth_user

2020-08-24 Thread Kamakshi Aggarwal
django application in our company. We are using >> RemoteUserAuthentication for that(single sign on). Only employees can sign >> in. >> Once employee signs in,is_active filed is set to True by default in >> auth_user table. >> >> Now if user leaves the

Re: How to reset is_actibe field of auth_user

2020-08-24 Thread Amresh Giri
gt; in. > Once employee signs in,is_active filed is set to True by default in > auth_user table. > > Now if user leaves the company how should I set "is_active" field to False. > > Thanks > Kamakshi > > -- > You received this message because you are

How to reset is_actibe field of auth_user

2020-08-24 Thread Kamakshi Aggarwal
Hi, We are using django application in our company. We are using RemoteUserAuthentication for that(single sign on). Only employees can sign in. Once employee signs in,is_active filed is set to True by default in auth_user table. Now if user leaves the company how should I set "is_active&q

Re: ProgrammingError: relation "auth_user" does not exist.

2016-12-23 Thread Collin Anderson
seUser as > instructed in django documentation, but I am encountering relation > "auth_user" does not exist error. > > #models.py > from django.db import models > from django.contrib.auth.models import (BaseUserManager, AbstractBaseUser) > > class MyUserManager(BaseUse

ProgrammingError: relation "auth_user" does not exist.

2016-12-22 Thread Biplab Gautam
I tried to set up custom user model by inheriting from AbstractBaseUser as instructed in django documentation, but I am encountering relation "auth_user" does not exist error. #models.py from django.db import models from django.contrib.auth.models import (BaseUserManager, Abstra

Re: Django user shows 2 users rows sql table auth_user has over 3000 rows

2016-12-21 Thread NoviceSortOf
To answer my own question on doing a psql dump of the data base found the 2 records in books_user auth_user --now that the custom user has been entered on models. Should of known from the line -- import from books.models import user On Wednesday, December 21, 2016 at 9:46:20 PM UTC+1

Django user shows 2 users rows sql table auth_user has over 3000 rows

2016-12-21 Thread NoviceSortOf
>From the command line in Python >>from books.models import user >>custs = list(rusers.objects.all()) >>print custs >>[, ] >From SQL SELECT * FROM auth_user WHERE username LIKE '%TEST%' -- None found. auth_user has been vacuumed, and reindexed during the test

IntegrityError : AUTH_USER DJango 1.8

2015-09-21 Thread Jose Paul
Daer All, I am trying to run DJango 1.8 test cases . I am getting several IntegrityError error on AUTH_USER table . SQL generated by test case INSERT INTO "AUTH_USER" ("PASSWORD", "LAST_LOGIN", "IS_SUPERUSER", "USERNAME", "FI

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-05-06 Thread ephan
> However, when I rolled my own custom user class and tried to use the built > in UserAdmin and UserCreationForm classes, I had a problem with the Admin. > Everything in my project seemed to obey the swappable Meta tag in the User > class except for the UserCreationForm. I alw

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-03-20 Thread scottanderso...@gmail.com
On Friday, March 1, 2013 2:51:50 AM UTC-5, Russell Keith-Magee wrote: > > The good news is that you can still re-use the form logic in those two > forms -- a form is just a class, so you can subclass them. If you User > model subclasses AbstractUser, all the core fields have the same name and

Re: IntegrityError after updating to custom user field: django_admin_log still has fk to auth_user

2013-03-02 Thread Peter of the Norse
This sound like a South kind of problem. Your tables were created with a foreign key from django_admin_log to auth_user, but you’re not longer using auth_user. You’ll have to drop the foreign key and recreate it to remove this error. On Feb 27, 2013, at 4:17 PM, Ben Roberts wrote: > This r

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-02-28 Thread Russell Keith-Magee
On Thu, Feb 28, 2013 at 5:11 AM, Eric Psalmond wrote: > "UserCreationForm > > Depends on the >

IntegrityError after updating to custom user field: django_admin_log still has fk to auth_user

2013-02-28 Thread Ben Roberts
This ring any bells? I updated my existing site to utilize my new Django 1.5 custom user field, and now I can't update anything in Admin because i get the following error: (django_admin_log still has a fk to auth_user, apparently!) Any way to resolve this? Traceback (most recent call last

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-02-27 Thread Eric Psalmond
User and AbstractBaseUser, it totally makes >> sense. However, when I rolled my own custom user class and tried to use >> the built in UserAdmin and UserCreationForm classes, I had a problem with >> the Admin. Everything in my project seemed to obey the swappable Meta tag >

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-02-27 Thread carlos
d tried to use the built > in UserAdmin and UserCreationForm classes, I had a problem with the Admin. > Everything in my project seemed to obey the swappable Meta tag in the User > class except for the UserCreationForm. I always got an error of: Table > does not exist: "auth_user" wheneve

1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-02-27 Thread Eric Psalmond
UserAdmin and UserCreationForm classes, I had a problem with the Admin. Everything in my project seemed to obey the swappable Meta tag in the User class except for the UserCreationForm. I always got an error of: Table does not exist: "auth_user" whenever getting past the first step of setting u

Re: Newbie -- ForeignKey to auth_user?

2012-11-28 Thread 王峰伟
; wrote: >> >>> >>> >>> On Thu, 2008-09-11 at 16:01 -0500, Chris Stromberger wrote: >>> > I would like to include a foreign key in a table that links to a user >>> > in Django's auth_user table. Or maybe this is a dumb idea--if so, &

Re: Adding a custom validation to Django's auth_user in admin

2012-07-08 Thread Tomas Neme
> Ah. I think the method is overriding the edit page. In other words, you have > click on the editpage to see the effect of my fail code. So it doesn't > trigger if you are on the list view page. Does anyone know what to do with > the editable submission? > It should use the same clean_ method,

Re: Adding a custom validation to Django's auth_user in admin

2012-07-08 Thread dd
Ah. I think the method is overriding the edit page. In other words, you have click on the editpage to see the effect of my fail code. So it doesn't trigger if you are on the list view page. Does anyone know what to do with the editable submission? It should use the same clean_ method,

Adding a custom validation to Django's auth_user in admin

2012-07-08 Thread dd
Django has list_editable. I need to edit is_active flag. class MyUserAdminForm(ModelForm): class Meta: model = User def clean_is_active(self): # do something that validates your data print ' I am here... ' print self.cleaned_data print self

Adding a custom validation to Django's auth_user in admin

2012-07-08 Thread John Yeukhon Wong
Django has list_editable. I need to edit is_active flag. class MyUserAdminForm(ModelForm): class Meta: model = User def clean_is_active(self): # do something that validates your data print ' I am here... ' print self.cleaned_data print self

Re: Long usernames in auth_user?

2011-10-28 Thread Ian Clelland
On Wed, Oct 26, 2011 at 3:00 PM, Kurtis Mullins wrote: > Check out userena as well. But a custom authentication back-end was the > approach I originally took. And to answer your question, yes -- your chances > of finding people w/ email addresses longer than 75 chars are

Re: Long usernames in auth_user?

2011-10-26 Thread Andre Terra
Then again, you can't assume an email to not have spaces as "John Doe"@example.com is a valid email per the RFC. If you *really* need flexibility, have a UserProfile model with a OneToOne relation to User and your imagination will be the only limit. Cheers, AT On 10/26/11, Kurtis Mullins

Re: Long usernames in auth_user?

2011-10-26 Thread Kurtis Mullins
Check out userena as well. But a custom authentication back-end was the approach I originally took. And to answer your question, yes -- your chances of finding people w/ email addresses longer than 75 chars are less than finding people w/ 30 chars -- but still a limitation none-the-less as there

Re: Long usernames in auth_user?

2011-10-26 Thread Joakim Hove
OK; thanks I was afraid it was not entirely straightforward. On Oct 26, 10:52 pm, Donald Stufft wrote: > This is a known limitation and it's something that people _want_ to get fixed > (but just merely increasing the length isn't helpful, because soon someone > comes

Re: Long usernames in auth_user?

2011-10-26 Thread Andre Terra
On Wed, Oct 26, 2011 at 6:52 PM, Donald Stufft wrote: > The other method is to create your own auth handler (...) > http://djangosnippets.org/snippets/1001/ Cheers, AT -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Long usernames in auth_user?

2011-10-26 Thread Donald Stufft
This is a known limitation and it's something that people _want_ to get fixed (but just merely increasing the length isn't helpful, because soon someone comes along with the new length + 1 and the same problem occurs). The issue is that the django.contrib.auth User model while providing a

Long usernames in auth_user?

2011-10-26 Thread Joakim Hove
Hello, I have been using a (in general quite popular I think ...) convention where the e-mail address has been used as username. I have solved this by asking the user for an e-mail address and a password, and then used the supplied e-mail address both as username and e-mail address when

Re: http auth using django auth_user table

2011-07-11 Thread Cal Leeming [Simplicity Media Ltd]
On Mon, Jul 11, 2011 at 12:02 PM, Tom Evans wrote: > On Sun, Jul 10, 2011 at 2:30 PM, Cal Leeming [Simplicity Media Ltd] > wrote: > > The only connection this question has with Django, is the encryption > method > > that Django

Re: http auth using django auth_user table

2011-07-11 Thread Tom Evans
On Sun, Jul 10, 2011 at 2:30 PM, Cal Leeming [Simplicity Media Ltd] wrote: > The only connection this question has with Django, is the encryption method > that Django uses, and therefore is inappropriate for this forum. > Please refer to 

Re: http auth using django auth_user table

2011-07-10 Thread Ali Rıza KELEŞ
2011/7/10 Cal Leeming [Simplicity Media Ltd] : > The only connection this question has with Django, is the encryption method > that Django uses, and therefore is inappropriate for this forum. Yes, right. It had seemed me connected. Sorry for wasting your

Re: http auth using django auth_user table

2011-07-10 Thread Cal Leeming [Simplicity Media Ltd]
term - first result) to find the answer you needed, which shows either lack of intuition or total laziness on your part. Cal On Sun, Jul 10, 2011 at 1:45 PM, Ali Rıza KELEŞ <ali.r.ke...@gmail.com>wrote: > Hi, > > I want to use django auth_user table for authentication of anothe

http auth using django auth_user table

2011-07-10 Thread Ali Rıza KELEŞ
Hi, I want to use django auth_user table for authentication of another application which uses "apache basic auth" with module auth_mysql. The code below runs well with MD5 passwords without salt. But django works sha1 and with salt. What should I do? Thanks.. AuthName "Hi

AW: auth_user

2011-02-09 Thread Szabo, Patrick (LNG-VIE)
[mailto:django-users@googlegroups.com] Im Auftrag von Shawn Milochik Gesendet: Mittwoch, 09. Februar 2011 13:34 An: django-users@googlegroups.com Betreff: Re: auth_user This is how you store additional information about users if you're using the contrib.auth User. http://docs.djangoproject.com

Re: auth_user

2011-02-09 Thread Shawn Milochik
This is how you store additional information about users if you're using the contrib.auth User. http://docs.djangoproject.com/en/1.2/topics/auth/#storing-additional-information-about-users Shawn -- You received this message because you are subscribed to the Google Groups "Django users"

auth_user

2011-02-09 Thread Szabo, Patrick (LNG-VIE)
Hi, I'm wondering if I can just add new columns in to the auth_user table without ruining something in the model. I'd like to add data like titel. Thanks in advance. Kind regards . . . . . . . . . . . . . . . . . . . . . . . . . . Patrick Szabo XSLT-Entwickler LexisNexis Marxergasse 25

Re: auth_user first_name and last_name editing

2010-11-29 Thread derek
Have you looked at: http://docs.djangoproject.com/en/dev/topics/auth/#module-django.contrib.auth.forms Failing that, http://docs.djangoproject.com/en/dev/ref/generic-views/ may help get you going quickly. On Nov 25, 8:08 pm, BozoJoe wrote: > So no builtin views and urls

Re: auth_user first_name and last_name editing

2010-11-25 Thread BozoJoe
So no builtin views and urls in any modules? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: auth_user first_name and last_name editing

2010-11-24 Thread Scott Gould
wrote: > HI, > > I'm using django-registration and django-profiles to handle user > creation and adding additional profile fields.  However I'm at a lost > as to how to allow the user to create/edit their first_name and > last__name in the auth_user table? > > Do I need t

auth_user first_name and last_name editing

2010-11-24 Thread BozoJoe
HI, I'm using django-registration and django-profiles to handle user creation and adding additional profile fields. However I'm at a lost as to how to allow the user to create/edit their first_name and last__name in the auth_user table? Do I need to do custom work to get a form for the user

Re: Altering the auth_user model?

2010-03-25 Thread Bjunix
some of them "required" (show up as bold on the form) > > > > e,g, the first name and last name. How would I do that? > > > > > Thanks > > > > Derek > > Thierry > > Thanks, but I already am using the UserProfile for *additional* fields >

Re: Altering the auth_user model?

2010-03-25 Thread derek
t name and last name. How would I do that? > > > > Thanks > > > Derek > Thierry Thanks, but I already am using the UserProfile for *additional* fields - I need to be able to change the behaviour of the *existing* fields in the auth_user (aka User). Derek -- You received this

Re: Altering the auth_user model?

2010-03-24 Thread Thierry Chich
Le mercredi 24 mars 2010 16:53:12, Sandman a écrit : > Hi Derek, > > One way to do this would be to create a proxy model that can be used > throughout your project. > > Check out > http://docs.djangoproject.com/en/dev/topics/db/models/#proxy-models for > more info. Hi, This is what is said in

Re: Altering the auth_user model?

2010-03-24 Thread Sandman
Hi Derek, One way to do this would be to create a proxy model that can be used throughout your project. Check out http://docs.djangoproject.com/en/dev/topics/db/models/#proxy-models for more info. Take care, Rajiv. On 3/24/10 7:44 AM, Derek wrote: > I am currently using UserProfile to create

Altering the auth_user model?

2010-03-24 Thread Derek
I am currently using UserProfile to create additional fields that are needed for my users. I would like to be able to alter the existing User model to use the same fields, but make some of them "required" (show up as bold on the form) e,g, the first name and last name. How would I do that?

Re: Triggen after insert on auth_user, crash the add new user with this error: InternalError at /operators/ current transaction is aborted, commands ignored until end of transaction block

2009-11-11 Thread Михаил Лукин
Why don't you use Django signals [1] for this? [1] http://docs.djangoproject.com/en/dev/topics/signals/ 2009/11/11 NMarcu <marcu.nico...@gmail.com> > > Hello all, > > I have a section for adding new user, on auth_user table (default > django auth method), and work just fi

Triggen after insert on auth_user, crash the add new user with this error: InternalError at /operators/ current transaction is aborted, commands ignored until end of transaction block

2009-11-11 Thread NMarcu
Hello all, I have a section for adding new user, on auth_user table (default django auth method), and work just fine. I added a trigger on that event, to add something in a new table and my app crashed. I got this error: InternalError at /operators/ current transaction is aborted, commands

complete a form from auth_user

2009-10-15 Thread luca72
Hello i need to put in the forms.ChoiceField the value of the django uath_user table i can do it? how can import the table in the forms.py file Thanks luca --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Why no index on auth_user username field?

2009-04-18 Thread Malcolm Tredinnick
On Sat, 2009-04-18 at 21:22 -0700, meppum wrote: > I noticed that there is a unique constraint and maybe that infers an > index, but if it doesn't, why isn't an index on this column needed? The unique constraint does provide an index. Otherwise inserts would be very inefficient for the database,

Re: auth_user foreign key question

2009-03-13 Thread Kier
Thank you so much. I've just started the tutorials on their website and from what I've seen so far I like it a lot. On Mar 13, 12:40 pm, Rajesh D wrote: > On Mar 13, 9:51 am, Kier wrote: > > > I'm new to django so forgive me if this is a noobish

Re: auth_user foreign key question

2009-03-13 Thread Rajesh D
On Mar 13, 9:51 am, Kier wrote: > I'm new to django so forgive me if this is a noobish question. I'm > creating a website where users can log in and create projects. I would > like to keep up with which user created which project and allow him to > easily get a list of

auth_user foreign key question

2009-03-13 Thread Kier
I'm new to django so forgive me if this is a noobish question. I'm creating a website where users can log in and create projects. I would like to keep up with which user created which project and allow him to easily get a list of projects he created. Also I want a user to only be able to edit a

Re: How to use Fixtures and/or Initial SQL for project auth_user data?

2008-12-05 Thread Russell Keith-Magee
On Sat, Dec 6, 2008 at 1:54 AM, Jeff Kowalczyk <[EMAIL PROTECTED]> wrote: > > During early prototyping, I'm relying on specific auth_user content in > the project admin, as my app model use User as a ForeignKeyField. > > Project layout is:myproject/myapp > > Initial

How to use Fixtures and/or Initial SQL for project auth_user data?

2008-12-05 Thread Jeff Kowalczyk
During early prototyping, I'm relying on specific auth_user content in the project admin, as my app model use User as a ForeignKeyField. Project layout is:myproject/myapp Initial SQL myproject/myapp/mymodel/sql/mymodel.sql works fine, and I'm interested in initial_data.[xml/yaml/json

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
ually named 'staff_id' either declare it as 'staff' > and do not specify db_column or declare it as whatever you want and specify > db_column = 'staff_id'. > > Karen > > >> >> On Thu, Sep 11, 2008 at 4:09 PM, Malcolm Tredinnick < >> [EMAIL PROTECTED]> wrote: >>

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Karen Tracey
ick < > [EMAIL PROTECTED]> wrote: > >> >> >> On Thu, 2008-09-11 at 16:01 -0500, Chris Stromberger wrote: >> > I would like to include a foreign key in a table that links to a user >> > in Django's auth_user table. Or maybe this is a dumb idea--if so,

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
EMAIL PROTECTED]> wrote: > > > On Thu, 2008-09-11 at 16:01 -0500, Chris Stromberger wrote: > > I would like to include a foreign key in a table that links to a user > > in Django's auth_user table. Or maybe this is a dumb idea--if so, > > interested in hearing why. >

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
gt;> >> On Thu, 2008-09-11 at 16:01 -0500, Chris Stromberger wrote: >> > I would like to include a foreign key in a table that links to a user >> > in Django's auth_user table. Or maybe this is a dumb idea--if so, >> > interested in hearing why. >> >

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Malcolm Tredinnick
On Thu, 2008-09-11 at 16:01 -0500, Chris Stromberger wrote: > I would like to include a foreign key in a table that links to a user > in Django's auth_user table. Or maybe this is a dumb idea--if so, > interested in hearing why. > > > So the table ("restaurant") w

Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
I would like to include a foreign key in a table that links to a user in Django's auth_user table. Or maybe this is a dumb idea--if so, interested in hearing why. So the table ("restaurant") with the foreign key includes (mysql): staff_id int(11) NOT NULL, foreign key(staff_id)

Re: request: auth_user User model, not enough characters in email

2008-08-28 Thread David Zhou
On Aug 28, 2008, at 8:17 AM, Bram de Jong wrote: > it's obviously a very small hack in the django source code, but it > would be nice if the email-field would have a few more characters. > I have a few pesky users who actually use my site and have a vry > long email address. If you have

request: auth_user User model, not enough characters in email

2008-08-28 Thread Bram de Jong
hello all, it's obviously a very small hack in the django source code, but it would be nice if the email-field would have a few more characters. I have a few pesky users who actually use my site and have a vry long email address. - bram -- http://www.freesound.org

Re: Primary Key for auth_user is User.__str__() ??

2006-09-26 Thread gkelly
Alan, I've tried using ForeignKey also. It gives me different problems. See http://groups.google.com/group/django-users/browse_thread/thread/ad493aadb30b3cde/ I'd love to get some more input. Thanks, Grant --~--~-~--~~~---~--~~ You received this message

Re: Primary Key for auth_user is User.__str__() ??

2006-09-26 Thread Alan Green
On 9/26/06, gkelly <[EMAIL PROTECTED]> wrote: > > I have the following model and view: > > http://pastebin.ca/182428 > > If I manually edit > /usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/contrib/auth/models.py > and change User.__str__(self) to return a string like >

Re: Primary Key for auth_user is User.__str__() ??

2006-09-26 Thread gkelly
bump. please help. this is driving me nuts. --~--~-~--~~~---~--~~ 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,

Primary Key for auth_user is User.__str__() ??

2006-09-25 Thread gkelly
I have the following model and view: http://pastebin.ca/182428 If I manually edit /usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/contrib/auth/models.py and change User.__str__(self) to return a string like 'TEST'+self.username, then 'testuser' above will become