[GH-ISSUE #115] rename admin account #78

Closed
opened 2026-02-27 15:57:15 +03:00 by kerem · 2 comments
Owner

Originally created by @jb-alvarado on GitHub (May 17, 2016).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/115

Hello,
is it possible to rename the admin account?

Regards

Jonathan

Originally created by @jb-alvarado on GitHub (May 17, 2016). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/115 Hello, is it possible to rename the admin account? Regards Jonathan
kerem closed this issue 2026-02-27 15:57:15 +03:00
Author
Owner

@nitmir commented on GitHub (May 17, 2016):

Go to the webvirtcloud application directory and do ./manage.py createsuperuser

In fact I think it is a bad idea to have default credential. The install procedure should call ./manage.py createsuperuser

To delete the admin user run:

# ./manage.py shell
Python 2.7.9 (default, Mar  1 2015, 12:57:24) 
Type "copyright", "credits" or "license" for more information.

IPython 2.3.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from django.contrib.auth import get_user_model

In [2]: User = get_user_model()

In [3]: User.objects.filter(username="admin").delete()
<!-- gh-comment-id:219684670 --> @nitmir commented on GitHub (May 17, 2016): Go to the webvirtcloud application directory and do `./manage.py createsuperuser` In fact I think it is a bad idea to have default credential. The install procedure should call `./manage.py createsuperuser`… To delete the admin user run: ``` # ./manage.py shell Python 2.7.9 (default, Mar 1 2015, 12:57:24) Type "copyright", "credits" or "license" for more information. IPython 2.3.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: from django.contrib.auth import get_user_model In [2]: User = get_user_model() In [3]: User.objects.filter(username="admin").delete() ```
Author
Owner

@jb-alvarado commented on GitHub (May 17, 2016):

Thank you nitmir,
this works!

<!-- gh-comment-id:219772627 --> @jb-alvarado commented on GitHub (May 17, 2016): Thank you nitmir, this works!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#78
No description provided.