Skip to content

Commit

Permalink
add promote-user-to-superuser
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Dec 5, 2016
1 parent a4adebf commit 22ece2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ def handle(self, *args, **options):
user = User.objects.get(username=options['username'])
user.is_staff = True
user.is_admin = True
user.is_superuser = True
user.save()
22 changes: 11 additions & 11 deletions rdmo/settings/sample.local.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
'''
Additional Django app to be used.
'''
INSTALLED_APPS += [
'django_extensions'
]
# INSTALLED_APPS += [
# 'django_extensions'
# ]

'''
A directory with a `static` and a `templates` directory containing customisation.
Expand Down Expand Up @@ -94,14 +94,14 @@
'''
Social accounts configuration
'''
INSTALLED_APPS += [
'django_extensions',
'allauth.socialaccount.providers.facebook',
'allauth.socialaccount.providers.github',
'allauth.socialaccount.providers.google',
'allauth.socialaccount.providers.orcid',
'allauth.socialaccount.providers.twitter',
]
# INSTALLED_APPS += [
# 'django_extensions',
# 'allauth.socialaccount.providers.facebook',
# 'allauth.socialaccount.providers.github',
# 'allauth.socialaccount.providers.google',
# 'allauth.socialaccount.providers.orcid',
# 'allauth.socialaccount.providers.twitter',
# ]

'''
LDAP configuration
Expand Down

0 comments on commit 22ece2d

Please sign in to comment.