settings correction

This commit is contained in:
makram89 2022-01-30 15:40:05 +01:00
parent 5243b24a5a
commit 6c078fda8b

View File

@ -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