{"action":"closed","issue":{"url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/268","labels_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/268/comments","events_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/268/events","html_url":"https://github.com/pydanny/cookiecutter-django/issues/268","id":94551025,"number":268,"title":"manage.py fails due to incorrect SERVER_EMAIL default setting","user":{"login":"adamjcook","id":654607,"avatar_url":"https://avatars.githubusercontent.com/u/654607?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjcook","html_url":"https://github.com/adamjcook","followers_url":"https://api.github.com/users/adamjcook/followers","following_url":"https://api.github.com/users/adamjcook/following{/other_user}","gists_url":"https://api.github.com/users/adamjcook/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjcook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjcook/subscriptions","organizations_url":"https://api.github.com/users/adamjcook/orgs","repos_url":"https://api.github.com/users/adamjcook/repos","events_url":"https://api.github.com/users/adamjcook/events{/privacy}","received_events_url":"https://api.github.com/users/adamjcook/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-12T09:39:12Z","updated_at":"2015-07-20T01:31:53Z","closed_at":"2015-07-20T01:31:53Z","body":"This is similar to #223 I think.\r\n\r\nA fresh attempt to run `manage.py` after the application is deployed to Heroku will yield the following traceback:\r\n\r\n```\r\nRunning `python manage.py migrate` attached to terminal... up, run.3068\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/app/.heroku/python/lib/python3.4/site-packages/django/core/management/__init__.py\", line 338, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/app/.heroku/python/lib/python3.4/site-packages/django/core/management/__init__.py\", line 303, in execute\r\n    settings.INSTALLED_APPS\r\n  File \"/app/.heroku/python/lib/python3.4/site-packages/django/conf/__init__.py\", line 48, in __getattr__\r\n    self._setup(name)\r\n  File \"/app/.heroku/python/lib/python3.4/site-packages/django/conf/__init__.py\", line 44, in _setup\r\n    self._wrapped = Settings(settings_module)\r\n  File \"/app/.heroku/python/lib/python3.4/site-packages/django/conf/__init__.py\", line 92, in __init__\r\n    mod = importlib.import_module(self.SETTINGS_MODULE)\r\n  File \"/app/.heroku/python/lib/python3.4/importlib/__init__.py\", line 109, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 2254, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 2237, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 2226, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1200, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1129, in _exec\r\n  File \"<frozen importlib._bootstrap>\", line 1471, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 321, in _call_with_frames_removed\r\n  File \"/app/config/settings/production.py\", line 100, in <module>\r\n    SERVER_EMAIL = env('DJANGO_SERVER_EMAIL', DEFAULT_FROM_EMAIL)\r\n  File \"/app/.heroku/python/lib/python3.4/site-packages/environ/environ.py\", line 117, in __call__\r\n    return self.get_value(var, cast=cast, default=default, parse_default=parse_default)\r\n  File \"/app/.heroku/python/lib/python3.4/site-packages/environ/environ.py\", line 260, in get_value\r\n    value = self.parse_value(value, cast)\r\n  File \"/app/.heroku/python/lib/python3.4/site-packages/environ/environ.py\", line 308, in parse_value\r\n    value = cast(value)\r\nTypeError: 'str' object is not callable\r\n```\r\n\r\nApparently, the 'default' named parameter is required with the 'django-environ' Python package. Therefore, the following change seems to fix the exception on my deployment:\r\n\r\n`SERVER_EMAIL = env(\"DJANGO_SERVER_EMAIL\", default=\"DJANGO_SERVER_EMAIL\")`\r\n\r\nPython runtime: 3.4.3"}}