Source

django-socketio-on-dotcloud / mkadmin.py

Full commit
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python
from wsgi import *
from django.contrib.auth.models import User
u, created = User.objects.get_or_create(username='admin')
if created:
    u.set_password('password')
    u.is_superuser = True
    u.is_staff = True
    u.save()