Browse Source

Cambios varios

main
Celestino Rey 10 months ago
parent
commit
2abd837fb1
2 changed files with 10 additions and 1 deletions
  1. +9
    -0
      .openshift/action/hooks/build
  2. +1
    -1
      src/mysite/settings.py

+ 9
- 0
.openshift/action/hooks/build View File

@ -0,0 +1,9 @@
#!/bin/bash
#this is .openshift/action/hooks/build
#remember to make it +x so openshift can run it.
if [ ! -d ${OPENSHIFT_DATA_DIR}media ]; then
mkdir -p ${OPENSHIFT_DATA_DIR}media
fi
ln -snf ${OPENSHIFT_DATA_DIR}media $OPENSHIFT_REPO_DIR/wsgi/static/media
######################### end of file

+ 1
- 1
src/mysite/settings.py View File

@ -127,7 +127,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.1/howto/static-files/ # https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = 'static/'
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'wsgi', 'static') STATIC_ROOT = os.path.join(BASE_DIR, 'wsgi', 'static')
# Default primary key field type # Default primary key field type


Loading…
Cancel
Save