From 8c9c5049304baa478059c75d5823ffb8a5de9865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BD=A6=E4=BA=AE=E4=BA=AE?= Date: Fri, 13 Jan 2017 00:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/views.py b/blog/views.py index 555a07d..07276d3 100644 --- a/blog/views.py +++ b/blog/views.py @@ -208,7 +208,7 @@ def fileupload(request): if request.method == 'POST': fname = '' timestr = datetime.datetime.now().strftime('%Y/%m/%d') - basepath = os.path.join(r'image/', timestr) + basepath = os.path.join(r'/var/www/resource/image/', timestr) if not os.path.exists(basepath): os.makedirs(basepath) fname = ''