import the signal connector module for profile creation in the models file since it is loaded when django starts the server.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 18 Jan 2011 21:59:20 +0530
changeset 469 87f03c28f5de
parent 468 e5f8ea40369c
child 470 68884c9b61e0
import the signal connector module for profile creation in the models file since it is loaded when django starts the server.
pytask/profile/models.py
--- a/pytask/profile/models.py	Tue Jan 18 21:58:24 2011 +0530
+++ b/pytask/profile/models.py	Tue Jan 18 21:59:20 2011 +0530
@@ -103,3 +103,12 @@
     is_read = models.BooleanField(default = False)
 
     is_deleted = models.BooleanField(default = False)
+
+
+# This import is not used anywhere else, but is very important to register
+# the user registered signal receiver. So please don't remove it. Although
+# it against style to put any imports in the end of the file, this is
+# intentional so that this import may not be removed accidentally when
+# cleaning up other unused imports.
+# Although this import is not directly used in this f
+import pytask.profile.regbackend