mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 08:05:54 +03:00
[GH-ISSUE #70] User admin functionality #59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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...)
@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.
@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 %}
{% 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',
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'),
)
urlpatterns += patterns('',
@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 :)