Revision 3bfa0ea6 flowspec/views.py

b/flowspec/views.py
34 34

  
35 35
import os
36 36

  
37
cwd = os.getcwd()
38
    
39

  
40 37
LOG_FILENAME = os.path.join(settings.LOG_FILE_LOCATION, 'celery_jobs.log')
41 38
#FORMAT = '%(asctime)s %(levelname)s: %(message)s'
42 39
#logging.basicConfig(format=FORMAT)
......
93 90
            route.save()
94 91
            form.save_m2m()
95 92
            route.commit_add()
96
            fqdn = Site.objects.get_current().domain
97
            
98 93
            mail_body = render_to_string("rule_add_mail.txt",
99 94
                                             {"route": route})
100 95
            send_mail(settings.EMAIL_SUBJECT_PREFIX + "Rule %s creation request submitted by %s" %(route.name, route.applier.username),

Also available in: Unified diff