from appconf import AppConf
from django.conf import settings


class DjExperimentAppConf(AppConf):
    DATA_DIR = "./"
    SEPARATOR = "."
    OUTPUT_PREFIX = ""
    OUTPUT_SUFFIX = ".nc"
    CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'
    CELERY_RESULT_BACKEND = 'rpc://'

    class Meta:
        prefix = 'dj_experiment'
        holder = 'dj_experiment.conf.settings'

import os

from appconf import AppConf
from django.conf import settings


class DjExperimentAppConf(AppConf):
    DATA_DIR = "./"
    BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
    SEPARATOR = "."
    OUTPUT_PREFIX = ""
    OUTPUT_SUFFIX = ".nc"
    CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'
    CELERY_RESULT_BACKEND = 'rpc://'

    class Meta:
        prefix = 'dj_experiment'
        holder = 'dj_experiment.conf.settings'

Add default base data dir for experiments
Add default base data dir for experiments


+ import os
+ 
  from appconf import AppConf
  from django.conf import settings
  
  
  class DjExperimentAppConf(AppConf):
      DATA_DIR = "./"
+     BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
      SEPARATOR = "."
      OUTPUT_PREFIX = ""
      OUTPUT_SUFFIX = ".nc"
      CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'
      CELERY_RESULT_BACKEND = 'rpc://'
  
      class Meta:
          prefix = 'dj_experiment'
          holder = 'dj_experiment.conf.settings'
  
Add default base data dir for experiments
## Code Before:
from appconf import AppConf
from django.conf import settings


class DjExperimentAppConf(AppConf):
    DATA_DIR = "./"
    SEPARATOR = "."
    OUTPUT_PREFIX = ""
    OUTPUT_SUFFIX = ".nc"
    CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'
    CELERY_RESULT_BACKEND = 'rpc://'

    class Meta:
        prefix = 'dj_experiment'
        holder = 'dj_experiment.conf.settings'

## Instruction:
Add default base data dir for experiments
## Code After:
import os

from appconf import AppConf
from django.conf import settings


class DjExperimentAppConf(AppConf):
    DATA_DIR = "./"
    BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
    SEPARATOR = "."
    OUTPUT_PREFIX = ""
    OUTPUT_SUFFIX = ".nc"
    CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'
    CELERY_RESULT_BACKEND = 'rpc://'

    class Meta:
        prefix = 'dj_experiment'
        holder = 'dj_experiment.conf.settings'
