2e2981c14a8020c29dadaa43dae90578aa026180 kent Fri Aug 30 13:53:02 2019 -0700 Flipping from kentDjangoTest3 to hcat database by using different my.cfg file. Starting to define upload space, but still early and untested. diff --git src/hca/hcat/mysite/mysite/settings.py src/hca/hcat/mysite/mysite/settings.py index 28f4f1b..77076a3 100644 --- src/hca/hcat/mysite/mysite/settings.py +++ src/hca/hcat/mysite/mysite/settings.py @@ -73,31 +73,31 @@ # Database # https://docs.djangoproject.com/en/2.2/ref/settings/#databases #DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), # } #} DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'OPTIONS': { - 'read_default_file': '/cluster/home/kent/kent/src/hca/hcat/mysite/my.cfg', + 'read_default_file': '/hive/groups/hca/hcat/kent/src/hca/hcat/mysite/my.cfg', }, } } # Password validation # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', @@ -117,15 +117,20 @@ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'America/Los_Angeles' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.2/howto/static-files/ STATIC_URL = '/static/' + +# Where wranglers can upload things, whoohoo! + +MEDIA_ROOT = '/hive/groups/hca/hcat/media' +MEDIA_URL = '/media/'