瀏覽代碼

Fixed a typo in files documentation. Fixes #8180.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Jacob Kaplan-Moss 16 年之前
父節點
當前提交
6a06db0491
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/files.txt

+ 1 - 1
docs/files.txt

@@ -226,7 +226,7 @@ For example, the following code will store uploaded files under
     from django.db import models
     from django.core.files.storage import FileSystemStorage
 
-    fs = FileSystemStorage(base_url='/media/photos')
+    fs = FileSystemStorage(location='/media/photos')
 
     class Car(models.Model):
         ...