Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

ForeignKey to custom user model in Django

Came across this problem when running a syncdb in Django (>=1.5) : CommandError: One or more models did not validate: APP.ModelName: 'user' defines a relation with the Model 'auth.User', which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL. So you define a Custom User Model and add the appropriate line to the […]

Related posts:
  1. Django 1.4 on CentOS 5.8
  2. apt-get with proxy
  3. User agent GTB or GTB5 is the Google Toolbar


This post first appeared on Dreams Of Thought, please read the originial post: here

Share the post

ForeignKey to custom user model in Django

×

Subscribe to Dreams Of Thought

Get updates delivered right to your inbox!

Thank you for your subscription

×