[GH-ISSUE #70] User admin functionality #59

Closed
opened 2026-02-27 16:00:54 +03:00 by kerem · 3 comments
Owner

Originally created by @wildstray on GitHub (Jun 13, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/70

Can you add at least a basic management users admin panel? Add/remove/change password for global admin/superusers would be a great beginning.
Can I help in some manner? (unfortunately my knowledge of python/django is poor...)

Originally created by @wildstray on GitHub (Jun 13, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/70 Can you add at least a basic management users admin panel? Add/remove/change password for global admin/superusers would be a great beginning. Can I help in some manner? (unfortunately my knowledge of python/django is poor...)
kerem closed this issue 2026-02-27 16:00:54 +03:00
Author
Owner

@retspen commented on GitHub (Jun 13, 2013):

Run this in console:
$ ./manage.py changepassword admin

For example you could have you read the documentation and fix errors.

<!-- gh-comment-id:19416328 --> @retspen commented on GitHub (Jun 13, 2013): Run this in console: $ ./manage.py changepassword admin For example you could have you read the documentation and fix errors.
Author
Owner

@wildstray commented on GitHub (Jun 13, 2013):

ehm... I read the documentation... but the cli user management doesn't fit for my purposes. I just added some really basic django.admin button... but I think it would be a great feature to integrate. If you want, I can carry on working on this...

diff -ru webvirtmgr-master/templates/dashboard.html webvirtmgr/templates/dashboard.html
--- webvirtmgr-master/templates/dashboard.html 2013-06-07 11:35:11.000000000 +0200
+++ webvirtmgr/templates/dashboard.html 2013-06-13 20:48:57.000000000 +0200
@@ -22,6 +22,7 @@
{% else %}
{% trans "Infrastructure" %}
{% endif %}

  •  <a href="{% url admin:index %}" class="btn btn-success pull-right">{% trans "Admin" %}</a>
    


    {% if host_info %}

diff -ru webvirtmgr-master/webvirtmgr/settings.py webvirtmgr/webvirtmgr/settings.py
--- webvirtmgr-master/webvirtmgr/settings.py 2013-06-07 11:35:11.000000000 +0200
+++ webvirtmgr/webvirtmgr/settings.py 2013-06-13 20:41:15.000000000 +0200
@@ -85,7 +85,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:

  • 'django.contrib.admin',

  • 'django.contrib.admin',

Uncomment the next line to enable admin documentation:

'django.contrib.admindocs',

'vds',

diff -ru webvirtmgr-master/webvirtmgr/urls.py webvirtmgr/webvirtmgr/urls.py
--- webvirtmgr-master/webvirtmgr/urls.py 2013-06-07 11:35:11.000000000 +0200
+++ webvirtmgr/webvirtmgr/urls.py 2013-06-13 21:09:42.000000000 +0200
@@ -1,5 +1,7 @@
-from django.conf.urls import patterns, include, url
+from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
+from django.contrib import admin
+admin.autodiscover()

urlpatterns = patterns('',
url(r'^$', 'dashboard.views.index', name='index'),
@@ -18,6 +20,7 @@
url(r'^snapshot/(\d+)/([\w-]+)/$', 'snapshot.views.dom_snapshot', name='dom_snapshot'),
url(r'^vds/(\d+)/([\w-.]+)/$', 'vds.views.vds', name='vds'),
url(r'^vnc/(\d+)/([\w-.]+)/$', 'vnc.views.vnc', name='vnc'),

  • url(r'^admin/', include(admin.site.urls), name='admin'),
    )

urlpatterns += patterns('',

<!-- gh-comment-id:19429299 --> @wildstray commented on GitHub (Jun 13, 2013): ehm... I read the documentation... but the cli user management doesn't fit for my purposes. I just added some really basic django.admin button... but I think it would be a great feature to integrate. If you want, I can carry on working on this... diff -ru webvirtmgr-master/templates/dashboard.html webvirtmgr/templates/dashboard.html --- webvirtmgr-master/templates/dashboard.html 2013-06-07 11:35:11.000000000 +0200 +++ webvirtmgr/templates/dashboard.html 2013-06-13 20:48:57.000000000 +0200 @@ -22,6 +22,7 @@ {% else %} <a href="#" class="btn btn-success disabled">{% trans "Infrastructure" %}</a> {% endif %} - <a href="{% url admin:index %}" class="btn btn-success pull-right">{% trans "Admin" %}</a> <br><br> </div> {% if host_info %} diff -ru webvirtmgr-master/webvirtmgr/settings.py webvirtmgr/webvirtmgr/settings.py --- webvirtmgr-master/webvirtmgr/settings.py 2013-06-07 11:35:11.000000000 +0200 +++ webvirtmgr/webvirtmgr/settings.py 2013-06-13 20:41:15.000000000 +0200 @@ -85,7 +85,7 @@ 'django.contrib.messages', 'django.contrib.staticfiles', # Uncomment the next line to enable the admin: - # 'django.contrib.admin', - 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'vds', diff -ru webvirtmgr-master/webvirtmgr/urls.py webvirtmgr/webvirtmgr/urls.py --- webvirtmgr-master/webvirtmgr/urls.py 2013-06-07 11:35:11.000000000 +0200 +++ webvirtmgr/webvirtmgr/urls.py 2013-06-13 21:09:42.000000000 +0200 @@ -1,5 +1,7 @@ -from django.conf.urls import patterns, include, url +from django.conf.urls.defaults import patterns, include, url from django.conf import settings +from django.contrib import admin +admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'dashboard.views.index', name='index'), @@ -18,6 +20,7 @@ url(r'^snapshot/(\d+)/([\w-]+)/$', 'snapshot.views.dom_snapshot', name='dom_snapshot'), url(r'^vds/(\d+)/([\w-.]+)/$', 'vds.views.vds', name='vds'), url(r'^vnc/(\d+)/([\w-.]+)/$', 'vnc.views.vnc', name='vnc'), - url(r'^admin/', include(admin.site.urls), name='admin'), ) urlpatterns += patterns('',
Author
Owner

@wildstray commented on GitHub (Jun 13, 2013):

Excuse me, but gthub destroyed the diff... eventually I can fork, commit my changes, ask for merging and if you want you can add the features to your awesome webvirtmgr :)

<!-- gh-comment-id:19429409 --> @wildstray commented on GitHub (Jun 13, 2013): Excuse me, but gthub destroyed the diff... eventually I can fork, commit my changes, ask for merging and if you want you can add the features to your awesome webvirtmgr :)
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/webvirtmgr#59
No description provided.