I'm not sure where to put alert backends, if I use the existing example and put MyAlertBackend in my alerts.py I get an error like the one below.
Is the convention on where to put these?
Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x950d52c>>
Traceback (most recent call last):
File "/home/stu/.virtualenvs/jpc_bt_sas/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_run
self.validate(display_num_errors=True)
File "/home/stu/.virtualenvs/jpc_bt_sas/local/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validate
num_errors = get_validation_errors(s, app)
File "/home/stu/.virtualenvs/jpc_bt_sas/local/lib/python2.7/site-packages/django/core/management/validation.py", line 30, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/home/stu/.virtualenvs/jpc_bt_sas/local/lib/python2.7/site-packages/django/db/models/loading.py", line 158, in get_app_errors
self._populate()
File "/home/stu/.virtualenvs/jpc_bt_sas/local/lib/python2.7/site-packages/django/db/models/loading.py", line 64, in _populate
self.load_app(app_name, True)
File "/home/stu/.virtualenvs/jpc_bt_sas/local/lib/python2.7/site-packages/django/db/models/loading.py", line 88, in load_app
models = import_module('.models', app_name)
File "/home/stu/.virtualenvs/jpc_bt_sas/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/home/stu/projects/jpc/git/bt_appointment_system/my_app/models.py", line 340, in
import alerts
File "/home/stu/projects/jpc/git/bt_appointment_system/my_app/alerts.py", line 7, in
class WelcomeAlert(BaseAlert):
File "/home/stu/.virtualenvs/jpc_bt_sas/local/lib/python2.7/site-packages/alert/utils.py", line 38, in new
raise AlertIDAlreadyInUse("The alert ID, "%s" was delared more than once" % new_alert.id)
alert.exceptions.AlertIDAlreadyInUse: The alert ID, "WelcomeAlert" was delared more than once