Re: default group for new users

2011-05-17 Thread Brian Craft
After much googling, I created a new app called "core" and put the connect() in the __init__.py. That seems to be working. The problem with the "put it in models.py" solution is that it isn't really related to any of my existing apps. Previously I tried putting it in the project __init__.py, but th

Re: default group for new users

2011-05-17 Thread creecode
Hello Brian, I have a similar signal setup for an app of mine. I put it at the end of the models.py file. I seem to recall reading a tip somewhere that this was a good place for something like this. Perhaps it was the Django or django-registration docs? Toodle-lo... cree

default group for new users

2011-05-17 Thread Brian Craft
Is there a good way to add new users to a default group when they are created (e.g. via django-registration)? I just tried binding the post_save signal for User, and adding the group in the signal handler (if "created" is true). However, I haven't found a good place (file) to put the connect() call