{"action":"created","issue":{"url":"https://api.github.com/repos/InterSIS/django-rest-encrypted-lookup/issues/13","labels_url":"https://api.github.com/repos/InterSIS/django-rest-encrypted-lookup/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/InterSIS/django-rest-encrypted-lookup/issues/13/comments","events_url":"https://api.github.com/repos/InterSIS/django-rest-encrypted-lookup/issues/13/events","html_url":"https://github.com/InterSIS/django-rest-encrypted-lookup/issues/13","id":127151539,"number":13,"title":"ENCRYPTED_LOOKUP settings dictionary must include a 'secret_key' key","user":{"login":"whoisearth","id":5064995,"avatar_url":"https://avatars.githubusercontent.com/u/5064995?v=3","gravatar_id":"","url":"https://api.github.com/users/whoisearth","html_url":"https://github.com/whoisearth","followers_url":"https://api.github.com/users/whoisearth/followers","following_url":"https://api.github.com/users/whoisearth/following{/other_user}","gists_url":"https://api.github.com/users/whoisearth/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisearth/subscriptions","organizations_url":"https://api.github.com/users/whoisearth/orgs","repos_url":"https://api.github.com/users/whoisearth/repos","events_url":"https://api.github.com/users/whoisearth/events{/privacy}","received_events_url":"https://api.github.com/users/whoisearth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-18T04:30:07Z","updated_at":"2016-01-22T02:06:17Z","closed_at":"2016-01-21T05:32:08Z","body":"I'm trying to use your module in my rest framework.  See below, hoping someone can point to me why it's not working.\r\n\r\nThe following is in my settings.py\r\n\r\n    ENCRYPTED_LOOKUP = {\r\n        'lookup_field_name': 'id',\r\n        'secret_key': 'mysecretkey',\r\n    },\r\n\r\nIn my serializers.py I have the following - \r\n\r\n    from rest_framework_encrypted_lookup.serializers import EncryptedLookupModelSerializer\r\n\r\n    class WidgetSerializer(EncryptedLookupModelSerializer):\r\n    \r\n        class Meta:\r\n            model=Widget\r\n            fields = ('id', 'title', 'description', 'username', 'code', 'owner', 'list')\r\n\r\nWhen trying to run I get the following traceback - \r\n\r\n    Traceback:\r\n    File \"/opt/myproject_app/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n      119.                 resolver_match = resolver.resolve(request.path_info)\r\n    File \"/opt/myproject_app/lib/python2.7/site-packages/django/core/urlresolvers.py\" in resolve\r\n      365.             for pattern in self.url_patterns:\r\n    File \"/opt/myproject_app/lib/python2.7/site-packages/django/core/urlresolvers.py\" in url_patterns\r\n      401.         patterns = getattr(self.urlconf_module, \"urlpatterns\", self.urlconf_module)\r\n    File \"/opt/myproject_app/lib/python2.7/site-packages/django/core/urlresolvers.py\" in urlconf_module\r\n      395.             self._urlconf_module = import_module(self.urlconf_name)\r\n    File \"/usr/local/lib/python2.7/importlib/__init__.py\" in import_module\r\n      37.     __import__(name)\r\n    File \"/opt/myproject/myproject/urls.py\" in <module>\r\n      20. from gui import views\r\n    File \"/opt/myproject/gui/views.py\" in <module>\r\n      20. from api.serializers import *\r\n    File \"/opt/myproject/api/serializers.py\" in <module>\r\n      4. from rest_framework_encrypted_lookup.serializers import EncryptedLookupModelSerializer, EncryptedLookupHyperlinkedModelSerializer\r\n    File \"/opt/myproject_app/lib/python2.7/site-packages/rest_framework_encrypted_lookup/serializers.py\" in <module>\r\n      8. from .settings import encrypted_lookup_settings\r\n    File \"/opt/myproject_app/lib/python2.7/site-packages/rest_framework_encrypted_lookup/settings.py\" in <module>\r\n      23.                 \"ENCRYPTED_LOOKUP settings dictionary must include a '%s' key.\" % required_key\r\n    \r\n    Exception Type: AttributeError at /api/widgets/20/\r\n    Exception Value: ENCRYPTED_LOOKUP settings dictionary must include a 'secret_key' key.\r\n\r\nAs shown above the secret key is there."},"comment":{"url":"https://api.github.com/repos/InterSIS/django-rest-encrypted-lookup/issues/comments/173777349","html_url":"https://github.com/InterSIS/django-rest-encrypted-lookup/issues/13#issuecomment-173777349","issue_url":"https://api.github.com/repos/InterSIS/django-rest-encrypted-lookup/issues/13","id":173777349,"user":{"login":"whoisearth","id":5064995,"avatar_url":"https://avatars.githubusercontent.com/u/5064995?v=3","gravatar_id":"","url":"https://api.github.com/users/whoisearth","html_url":"https://github.com/whoisearth","followers_url":"https://api.github.com/users/whoisearth/followers","following_url":"https://api.github.com/users/whoisearth/following{/other_user}","gists_url":"https://api.github.com/users/whoisearth/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisearth/subscriptions","organizations_url":"https://api.github.com/users/whoisearth/orgs","repos_url":"https://api.github.com/users/whoisearth/repos","events_url":"https://api.github.com/users/whoisearth/events{/privacy}","received_events_url":"https://api.github.com/users/whoisearth/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T02:06:17Z","updated_at":"2016-01-22T02:06:17Z","body":"yup it worked thanks again!"}}