settings correction
This commit is contained in:
parent
5243b24a5a
commit
6c078fda8b
@ -1,12 +1,12 @@
|
|||||||
import docker
|
import docker
|
||||||
import hashlib
|
import hashlib
|
||||||
from settings import DOCKER_IMAGE
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
class DockerManager:
|
class DockerManager:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.client = docker.from_env()
|
self.client = docker.from_env()
|
||||||
self.image = DOCKER_IMAGE
|
self.image = settings.DOCKER_IMAGE
|
||||||
|
|
||||||
def create_new_volume(self, username):
|
def create_new_volume(self, username):
|
||||||
# Hashing username to get volume name
|
# Hashing username to get volume name
|
||||||
|
Loading…
Reference in New Issue
Block a user