Skip to content

Commit

Permalink
test user is added
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzy committed Aug 14, 2012
1 parent 7b600ee commit db034a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovizart/scripts/create_user.py
Expand Up @@ -29,13 +29,13 @@
from django.contrib.auth.models import User from django.contrib.auth.models import User
from main.models import * from main.models import *


u, created = User.objects.get_or_create(username='oguz') u, created = User.objects.get_or_create(username='demo')


u.set_password("ozyy4r12") u.set_password("ozyy4r12")
u.save() u.save()


h = hashlib.sha1() h = hashlib.sha1()
h.update(u'oguzyarimtepe@gmail.com') h.update(u'demo@ovizart.foo.com')


profile, create = UserProfile.objects.get_or_create(user=u, user_email=h.hexdigest()) profile, create = UserProfile.objects.get_or_create(user=u, user_email=h.hexdigest())
print "USerProfile create status: %s" % created print "USerProfile create status: %s" % created

0 comments on commit db034a0

Please sign in to comment.