tomchristie/django-rest-framework — pull request #1997 by agconti (2014-10-29 20:34:06+00:00)
Title: docs(api-guide/authentication): updated to reflect new standards in Django 1.7

Based on the [new documentation](https://docs.djangoproject.com/en/dev/topics/auth/customizing/#django.contrib.auth.get_user_model) for Django 1.7 we should now use:

```python
@receiver(post_save, sender=settings.AUTH_USER_MODEL)
```
instead of:

```python
@receiver(post_save, sender=get_user_model())
```
`get_user_model()` only works once Django has imported all models. If you use it like its currently stated in the Rest-framework docs you'll get:

```python
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
```
when trying to start your sever after adding token authentication.

From the [docs](https://docs.djangoproject.com/en/dev/topics/auth/customizing/#django.contrib.auth.get_user_model), ( linked above as well ) :
>New in Django 1.7:
>When connecting to signals sent by the User model, you should specify the custom model using the AUTH_USER_MODEL setting.