Name |
Last commit
|
Last update |
---|---|---|
docs | ||
rest_framework | ||
tests | ||
.gitignore | ||
.travis.yml | ||
CONTRIBUTING.md | ||
MANIFEST.in | ||
README.md | ||
mkdocs.py | ||
requirements-test.txt | ||
requirements.txt | ||
runtests.py | ||
setup.cfg | ||
setup.py | ||
tox.ini |
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.
Name |
Last commit
|
Last update |
---|---|---|
docs | Loading commit data... | |
rest_framework | Loading commit data... | |
tests | Loading commit data... | |
.gitignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
README.md | Loading commit data... | |
mkdocs.py | Loading commit data... | |
requirements-test.txt | Loading commit data... | |
requirements.txt | Loading commit data... | |
runtests.py | Loading commit data... | |
setup.cfg | Loading commit data... | |
setup.py | Loading commit data... | |
tox.ini | Loading commit data... |