Closed cucy closed 7 years ago
@cucy I think that your settings.py
file is improperly written. Here is an example of what the ADMINS
list must look like: https://github.com/macropin/django-registration/blob/master/test_app/settings_test.py#L54
Let me know if this fixes your issue!
@cucy was this issue resolved with the change to settings.py
?
You could still consider this a minor bug due to the index 1 fixation. Maybe [admin[-1] for admin in admins]
would be best and in this scenario (where it's obvious that there's an issue with the settings) there wouldn't be a problem
The format of the setting is dictated by Django https://docs.djangoproject.com/en/1.11/ref/settings/#admins. I agree it would fix it in this case but think it's better to have the setting properly set for consistency/expectations of other code. @cucy I'm going to close this for now, let me know if you run into anything else!