pytask/urls.py
changeset 472 f9011a1dfe1c
parent 415 c631194cec2a
equal deleted inserted replaced
471:4929cb6a6a9e 472:f9011a1dfe1c
     3 from django.contrib import admin
     3 from django.contrib import admin
     4 
     4 
     5 from registration.views import register
     5 from registration.views import register
     6 
     6 
     7 from pytask.profile.forms import CustomRegistrationForm
     7 from pytask.profile.forms import CustomRegistrationForm
       
     8 
       
     9 # This import is not used anywhere else, but is very important to register
       
    10 # the user registered signal receiver. So please don't remove it. Although
       
    11 # it against style to put any imports in the end of the file, this is
       
    12 # intentional so that this import may not be removed accidentally when
       
    13 # cleaning up other unused imports.
       
    14 # Although this import is not directly used in this module, but it is
       
    15 # imported here so that it executes the code which connects the
       
    16 # user_registered signal sent by the django-registration app. Also, to
       
    17 # avoid cyclic imports, there is no better place than here.
       
    18 import pytask.profile.regbackend
     8 
    19 
     9 
    20 
    10 admin.autodiscover()
    21 admin.autodiscover()
    11 
    22 
    12 urlpatterns = patterns('',
    23 urlpatterns = patterns('',