moved os import to the top and got rid of try except, with no change.
if SHA1_RE.search(activation_key):
try:
profile = self.get(activation_key=activation_key)
except self.model.DoesNotExist:
return False
if not profile.activation_key_expired():
media_root = dzopastudio.settings.MEDIA_ROOT
user_directory_path = os.path.join(media_root,
'listings', 'neridaj')
os.mkdir(user_directory_path)
user = profile.user
user.is_active = True
user.save()
profile.activation_key = self.model.ACTIVATED
profile.save()
return user
return False
On Jul 12, 8:34 pm, Kenneth Gonsalves <[email protected]> wrote:
> On Monday 13 Jul 2009 8:34:23 am neridaj wrote:
>
> > I still don't get any errors or directories generated from this code,
> > any ideas?
>
> remove the try and except stuff - then you can see where it is failing. Also
> import os on top of your file, not within the code.
> --
> regards
> kghttp://lawgon.livejournal.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---