Skip to content

Commit d00b928

Browse files
committed
fixed static url & root for demo
1 parent f14941b commit d00b928

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

draceditor_demo/draceditor_demo/settings.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,9 @@
119119

120120
# Static files (CSS, JavaScript, Images)
121121
# https://docs.djangoproject.com/en/1.10/howto/static-files/
122-
STATICFILES_DIRS = (
123-
os.path.join(BASE_DIR, 'static'),
124-
'/home/agaust/ENV/env-markdown/dracos-markdown/draceditor_demo/static',
125-
)
122+
import tempfile
126123

127124
STATIC_URL = '/static/'
128-
#STATIC_ROOT = '/home/agaust/ENV/env-markdown/dracos-markdown/draceditor_demo/static'
129-
130125
MEDIA_URL = '/media/'
131-
MEDIA_ROOT = '/home/agaust/ENV/env-markdown/dracos-markdown/draceditor_demo/media'
126+
STATIC_ROOT = os.path.join(tempfile.gettempdir(), 'draceditor_static')
127+
MEDIA_ROOT = os.path.join(tempfile.gettempdir(), 'draceditor_media')

0 commit comments

Comments
 (0)