django and legacy database
I have a legacy database and have user and password with plain-text or md5 encryption Now, I want an app or function, when the user signup, change or reset the password, the record of legacy databases will change synchronously. I would like to keep the existing account app, how can I do? -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django error about syncdb
when i remove django.contrib.admin from INSTALLED_APPS, run syncdb success. I think django is not Compatible with python 2.5.2? On 6月1日, 上午5时42分, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, May 31, 2008 at 2:07 AM, tony yu <[EMAIL PROTECTED]> wrote: > > > version info: > > django svn version, freebsd 7.0, python 2.5.2 > > settings.py: > > INSTALLED_APPS = ( > >'django.contrib.auth', > >'django.contrib.contenttypes', > >'django.contrib.sessions', > >'django.contrib.sites', > >'django.contrib.admin', > >'mysite.polls', > > ) > > > the os stdout: > > [EMAIL PROTECTED] /data/mysite]# python manage.py syncdb > > Creating table auth_message > > Creating table auth_group > > Creating table auth_user > > Creating table auth_permission > > Creating table django_content_type > > Creating table django_session > > Creating table django_site > > Creating table django_admin_log > > Creating table polls_poll > > Creating table polls_choice > > > You just installed Django's auth system, which means you don't have > > any superusers defined. > > Would you like to create one now? (yes/no): yes > > Username (Leave blank to use 'root'): root > > E-mail address: [EMAIL PROTECTED] > > Password: > > Password (again): > > Superuser created successfully. > > Installing index for auth.Message model > > Installing index for auth.Permission model > > Installing index for admin.LogEntry model > > Installing index for polls.Choice model > > Error: One or more models did not validate: > > auth.group: "admin.list_display" refers to '__ipow__', which isn't an > > attribute, method or property. > > That's bizarre. Model validation succeeds once, the tables are added and > indices are created, then when syncdb goes to try and load fixtures it runs > model validation again and this time it dies. > > I assume you have not changed anything in the django/contrib/auth/models.py > file? > > Did this happen the very first time you ran syncdb or not until you added > something (django.contrib.admin, mysite.polls)? If you try removing > mysite.polls from INSTALLED_APPS does the problem go away? If it does, then > the problem is somewhere in what you've done with mysite/polls, though I > have no idea what. > > Karen > > > > > Karen, thank you. > > > On 5月30日, 下午9时22分, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > > On Fri, May 30, 2008 at 4:55 AM, tony yu <[EMAIL PROTECTED]> wrote: > > > > > when I use syncdb, get the error: > > > > > [EMAIL PROTECTED] /data/mysite]# python manage.py syncdb > > > > Error: One or more models did not validate: > > > > auth.group: "admin.list_display" refers to '__ipow__', which isn't an > > > attribute, method or property. > > > > > pls help me, thanks! > > > > What version of Django? > > > > What is the value for INSTALLED_APPS in your settings.py? > > > > If your INSTALLED_APPS includes 'django.contrib.auth', what happens when > > you > > > remove it and try 'python manage.py syncdb' again? > > > > Karen --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: django error about syncdb
version info: django svn version, freebsd 7.0, python 2.5.2 settings.py: INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'mysite.polls', ) the os stdout: [EMAIL PROTECTED] /data/mysite]# python manage.py syncdb Creating table auth_message Creating table auth_group Creating table auth_user Creating table auth_permission Creating table django_content_type Creating table django_session Creating table django_site Creating table django_admin_log Creating table polls_poll Creating table polls_choice You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes Username (Leave blank to use 'root'): root E-mail address: [EMAIL PROTECTED] Password: Password (again): Superuser created successfully. Installing index for auth.Message model Installing index for auth.Permission model Installing index for admin.LogEntry model Installing index for polls.Choice model Error: One or more models did not validate: auth.group: "admin.list_display" refers to '__ipow__', which isn't an attribute, method or property. Karen, thank you. On 5月30日, 下午9时22分, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, May 30, 2008 at 4:55 AM, tony yu <[EMAIL PROTECTED]> wrote: > > > when I use syncdb, get the error: > > > [EMAIL PROTECTED] /data/mysite]# python manage.py syncdb > > Error: One or more models did not validate: > > auth.group: "admin.list_display" refers to '__ipow__', which isn't an > > attribute, method or property. > > > pls help me, thanks! > > What version of Django? > > What is the value for INSTALLED_APPS in your settings.py? > > If your INSTALLED_APPS includes 'django.contrib.auth', what happens when you > remove it and try 'python manage.py syncdb' again? > > Karen --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
django error about syncdb
when I use syncdb, get the error: [EMAIL PROTECTED] /data/mysite]# python manage.py syncdb Error: One or more models did not validate: auth.group: "admin.list_display" refers to '__ipow__', which isn't an attribute, method or property. pls help me, thanks! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---