Django - admin mode

@django


Enabling admin mode


.. code-block:: python

from django.contrib import admin
from app.models import Thing

admin.site.register(Thing)

Reset admin password w/o password reset


::
./manage.py shell

.. code-block:: python

from django.contrib.auth.models import User
users = User.objects.all()
users
users[0].set_password('whatever');
users[0].save()