django-rest-framework/docs/api-guide
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
..
authentication.md Update authentication.md 2014-10-29 16:31:36 -04:00
content-negotiation.md Include import paths throughout docs. 2013-08-21 19:46:09 +01:00
exceptions.md Fixed code formatting 2014-09-17 11:29:15 -05:00
fields.md docs: added drf-hstore to third party fields 2014-08-25 12:29:10 +02:00
filtering.md Fixing quotes in filtering.md 2014-09-07 12:53:21 -04:00
format-suffixes.md remove patterns and strings from urls #1898 2014-09-23 17:10:02 -04:00
generic-views.md Merge pull request #1784 from tomchristie/remove-model-attribute 2014-08-29 10:03:07 +01:00
pagination.md Merge pull request #1391 from kaygorodov/master 2014-04-30 20:14:16 +02:00
parsers.md Docs tweaks 2013-12-21 17:18:25 +00:00
permissions.md Deprecate .model in related routers/permissions 2014-08-20 17:15:46 +01:00
relations.md 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
renderers.md add django rest pandas 2014-09-10 11:55:43 -05:00
requests.md Note 'request.session' as available on requests. 2013-08-27 12:37:55 +01:00
responses.md Fixed typos in a bunch of docs 2013-08-07 14:00:06 -04:00
reverse.md Include import paths throughout docs. 2013-08-21 19:46:09 +01:00
routers.md Deprecate .model in related routers/permissions 2014-08-20 17:15:46 +01:00
serializers.md docs: added HStoreSerializer to third party serializers 2014-08-25 12:32:44 +02:00
settings.md Add .model deprecation to release notes 2014-08-21 12:25:20 +01:00
status-codes.md Version 2.3.10 2013-12-06 22:13:50 +00:00
testing.md Minor typos fixed in api-guide/testing.md (request -> response). 2014-02-14 10:44:02 +01:00
throttling.md Merge master 2014-08-19 10:11:10 +01:00
views.md fix broken documentation links 2013-12-04 16:10:05 -08:00
viewsets.md Release notes 2014-08-19 23:25:12 +01:00