Commit 2866b4e3 by Őry Máté

install guardian

parent c0ad4f0b
......@@ -223,6 +223,7 @@ THIRD_PARTY_APPS = (
'django_tables2',
'crispy_forms',
'djcelery',
'guardian',
'sizefield',
)
......@@ -303,3 +304,10 @@ VM_ACCESS_PROTOCOLS = loads(get_env_variable('DJANGO_VM_ACCESS_PROTOCOLS',
"rdp": ["RDP", 3389, "tcp"],
"ssh": ["SSH", 22, "tcp"]}'''))
VM_SCHEDULER = 'manager.scheduler'
# Enable Guardian
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend', # django default
'guardian.backends.ObjectPermissionBackend',
)
ANONYMOUS_USER_ID = -1
......@@ -4,6 +4,7 @@ celery==3.0.23
django-braces==1.2.2
django-celery==3.0.23
django-crispy-forms==1.4.0
django-guardian==1.1.1
django-model-utils==1.4.0
django-sizefield==0.4
django-tables2==0.14.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment