{"action":"created","issue":{"url":"https://api.github.com/repos/andersinno/django-sanitized-dump/issues/16","repository_url":"https://api.github.com/repos/andersinno/django-sanitized-dump","labels_url":"https://api.github.com/repos/andersinno/django-sanitized-dump/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/andersinno/django-sanitized-dump/issues/16/comments","events_url":"https://api.github.com/repos/andersinno/django-sanitized-dump/issues/16/events","html_url":"https://github.com/andersinno/django-sanitized-dump/issues/16","id":327295479,"number":16,"title":"Unable to find sanitizer called 'x.y'","user":{"login":"ehaivala","id":7628768,"avatar_url":"https://avatars2.githubusercontent.com/u/7628768?v=4","gravatar_id":"","url":"https://api.github.com/users/ehaivala","html_url":"https://github.com/ehaivala","followers_url":"https://api.github.com/users/ehaivala/followers","following_url":"https://api.github.com/users/ehaivala/following{/other_user}","gists_url":"https://api.github.com/users/ehaivala/gists{/gist_id}","starred_url":"https://api.github.com/users/ehaivala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehaivala/subscriptions","organizations_url":"https://api.github.com/users/ehaivala/orgs","repos_url":"https://api.github.com/users/ehaivala/repos","events_url":"https://api.github.com/users/ehaivala/events{/privacy}","received_events_url":"https://api.github.com/users/ehaivala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-29T12:18:48Z","updated_at":"2018-05-29T12:49:28Z","closed_at":null,"author_association":"MEMBER","body":"I have a Django 1.8 project for which I'm trying to configure `django-sanitized-dump`. I've followed the steps in readme and read how the imports are resolved but couldn't get the `create_sanitized_dump` command to work properly. All I get is the following `ConfigurationError`:\r\n\r\n```\r\nroot@2e57134ba7a2:/code# python manage.py create_sanitized_dump > dump.sql\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/database-sanitizer\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python3.5/site-packages/database_sanitizer/__main__.py\", line 48, in main\r\n    config = Configuration.from_file(args.config[0])\r\n  File \"/usr/local/lib/python3.5/site-packages/database_sanitizer/config.py\", line 45, in from_file\r\n    instance.load(config_data)\r\n  File \"/usr/local/lib/python3.5/site-packages/database_sanitizer/config.py\", line 65, in load\r\n    self.load_sanitizers(config_data)\r\n  File \"/usr/local/lib/python3.5/site-packages/database_sanitizer/config.py\", line 150, in load_sanitizers\r\n    sanitizer_callback = self.find_sanitizer(sanitizer_name)\r\n  File \"/usr/local/lib/python3.5/site-packages/database_sanitizer/config.py\", line 230, in find_sanitizer\r\n    name,\r\ndatabase_sanitizer.config.ConfigurationError: Unable to find sanitizer called 'user.first_name'\r\n```\r\n\r\nThe (dumbed down) project structure is as follows:\r\n```\r\nfoobar/\r\n    __init__.py\r\n    forms.py\r\n    models.py\r\n    urls.py\r\n    views.py\r\nsanitizers/\r\n    __init__.py\r\n    generic.py\r\n    user.py\r\nmanage.py\r\n.sanitizerconfig\r\n```\r\n\r\n**sanitizers/generic.py**\r\n```python\r\nfrom datetime import datetime\r\nfrom django.utils import timezone\r\n\r\ndef sanitize_tz_aware_datetime(value):\r\n    dt = datetime(year=2018, month=1, day=1, hour=12, minute=0, second=0)\r\n    return timezone.make_aware(dt)\r\n```\r\n\r\n**sanitizers/user.py**\r\n```python\r\nfrom faker import Faker\r\n\r\nfake = Faker()\r\n\r\ndef sanitize_email(value):\r\n    return fake.email(domain='example.com')\r\n\r\ndef sanitize_first_name(value):\r\n    return fake.first_name()\r\n\r\ndef sanitize_last_name(value):\r\n    return fake.last_name()\r\n\r\ndef sanitize_username(value):\r\n    return fake.user_name()\r\n```\r\n\r\n**.sanitizerconfig** (relevant parts)\r\n```yaml\r\nconfig:\r\n  addons: []\r\nstrategy:\r\n  auth_user:\r\n    date_joined: generic.tz_aware_datetime\r\n    document: null\r\n    email: user.email\r\n    first_name: user.first_name\r\n    groups: null\r\n    id: null\r\n    image: null\r\n    is_active: null\r\n    is_staff: null\r\n    is_superuser: null\r\n    last_login: generic.tz_aware_datetime\r\n    last_name: user.last_name\r\n    logentry: null\r\n    owned_pages: null\r\n    pagerevision: null\r\n    password: null\r\n    user_permissions: null\r\n    username: user.username\r\n    userprofile: null\r\n```"},"comment":{"url":"https://api.github.com/repos/andersinno/django-sanitized-dump/issues/comments/392763820","html_url":"https://github.com/andersinno/django-sanitized-dump/issues/16#issuecomment-392763820","issue_url":"https://api.github.com/repos/andersinno/django-sanitized-dump/issues/16","id":392763820,"user":{"login":"frwickst","id":3242350,"avatar_url":"https://avatars0.githubusercontent.com/u/3242350?v=4","gravatar_id":"","url":"https://api.github.com/users/frwickst","html_url":"https://github.com/frwickst","followers_url":"https://api.github.com/users/frwickst/followers","following_url":"https://api.github.com/users/frwickst/following{/other_user}","gists_url":"https://api.github.com/users/frwickst/gists{/gist_id}","starred_url":"https://api.github.com/users/frwickst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frwickst/subscriptions","organizations_url":"https://api.github.com/users/frwickst/orgs","repos_url":"https://api.github.com/users/frwickst/repos","events_url":"https://api.github.com/users/frwickst/events{/privacy}","received_events_url":"https://api.github.com/users/frwickst/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T12:49:28Z","updated_at":"2018-05-29T12:49:28Z","author_association":"CONTRIBUTOR","body":"Thanks! 👍 "}}
{"actor":{"display_login":"frwickst"}}