0

I am new to setting up django-facebook. I tried to set it up as per the docs/tutorial. Is there a way to setup a separate way for admin account access? When I run syncdb, it does not ask me to setup admin/superuser when I set AUTH_USER_MODEL to my custom user.

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
Sandeep
  • 346
  • 5
  • 8
  • Did you try `python manage.py createsuperuser`? – Bouke Jul 23 '13 at 07:08
  • Nope, that does not work. For e.g., if I set AUTH_USER_MODEL = 'django_facebook.FacebookCustomUser' (using example from docs), it gives me following error "$ python manage.py createsuperuser Username: admin DatabaseError: no such table: django_facebook_facebookcustomuser" – Sandeep Jul 23 '13 at 18:35
  • Looks like an issue with South setup. Let me dig further – Sandeep Jul 23 '13 at 18:44
  • Found the issue that django-facebook was under South. There were two *_initial.py files in my migrations directory of django-facebook. This caused python manage.py migrate to fail with an error 'Table already exists'. Consequently, the db tables for django-facebook were not created. Fixed it and works fine now. Thanks for your help though ! :) – Sandeep Jul 23 '13 at 20:31

0 Answers0