django-rest-framework/docs
Andrew Conti f25f05dde5 Update authentication.md
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())
```
because `get_user_model()` only works once Django has imported all models. Otherwise 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, ( 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.
2014-10-29 16:31:36 -04:00
..
api-guide Update authentication.md 2014-10-29 16:31:36 -04:00
css Kickstarter sponsors 2014-07-31 22:33:45 +01:00
img Latest sponsor update 2014-08-28 17:01:58 +01:00
js Tweak static files with docs 2012-10-09 14:12:38 +01:00
topics Add docs regarding linking third party packages 2014-10-17 08:58:31 -04:00
tutorial remove patterns and strings from urls #1898 2014-09-23 17:10:02 -04:00
404.html Use www.django-rest-framework.org for docs instead of django-rest-framework.org due to issues with naked domains 2014-01-08 15:22:41 +00:00
index.md Update index.md 2014-09-29 16:57:40 +01:00
requirements.txt Add basic serializer tests 2012-09-07 15:14:23 +01:00
template.html Add Third Party Resources Topic section 2014-09-13 13:53:40 -04:00