Authentication

If your site is deployed, but you don’t have an admin user (in this example hatherleigh_info is the name of the site):

ssh server
sudo -i -u web
~/opt/hatherleigh_info.sh shell

Superuser:

from django.contrib.auth.models import User
User.objects.create_superuser('your.name', '', 'password')
exit()

Member of staff:

from django.contrib.auth.models import User
user = User.objects.create_user('your.name', '', 'password')
user.is_staff = True
user.save()
exit()