I need help
I am trying to use the User model outside of django app, but without successful.
--
Carlos Aguilar
Consultor Hardware y Software
DWD&Solutions
http://www.dwdandsolutions.com
-- This is my imports section:
from django.core.management import setup_environ
from htdjango import settings
setup_environ(settings)
from django.contrib.auth import get_user_model
I am trying many things but right now I am receiving this error:
Traceback (most recent call last):
File "htuser.py", line 539, in <module>
user.delete()
File "htuser.py", line 99, in delete
django_user.objects.delete()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 232, in __get__
raise AttributeError("Manager isn't accessible via %s instances" % type.__name__)
AttributeError: Manager isn't accessible via HTDjangoUser instances
I am using django 1.5 release candidate 1
Carlos Aguilar
Consultor Hardware y Software
DWD&Solutions
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
Cel: +50378735118
USA: (301) 337-8541
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 it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home