diff --git a/docs/topics/files.txt b/docs/topics/files.txt
index 26114cb..619f7d3 100644
a
|
b
|
When you use a :class:`~django.db.models.FileField` or
|
23 | 23 | :class:`~django.db.models.ImageField`, Django provides a set of APIs you can use |
24 | 24 | to deal with that file. |
25 | 25 | |
26 | | Consider the following model, using an ``ImageField`` to store a photo:: |
| 26 | Consider the following model, using an :class:`~django.db.models.ImageField` to |
| 27 | store a photo:: |
27 | 28 | |
28 | 29 | class Car(models.Model): |
29 | 30 | name = models.CharField(max_length=255) |
… |
… |
Argument Description
|
123 | 124 | ====================== =================================================== |
124 | 125 | ``location`` Optional. Absolute path to the directory that will |
125 | 126 | hold the files. If omitted, it will be set to the |
126 | | value of your ``MEDIA_ROOT`` setting. |
| 127 | value of your :setting:`MEDIA_ROOT` setting. |
127 | 128 | ``base_url`` Optional. URL that serves the files stored at this |
128 | 129 | location. If omitted, it will default to the value |
129 | | of your ``MEDIA_URL`` setting. |
| 130 | of your :setting:`MEDIA_URL` setting. |
130 | 131 | ====================== =================================================== |
131 | 132 | |
132 | 133 | For example, the following code will store uploaded files under |
133 | | ``/media/photos`` regardless of what your ``MEDIA_ROOT`` setting is:: |
| 134 | ``/media/photos`` regardless of what your :setting:`MEDIA_ROOT` setting is:: |
134 | 135 | |
135 | 136 | from django.db import models |
136 | 137 | from django.core.files.storage import FileSystemStorage |
… |
… |
For example, the following code will store uploaded files under
|
141 | 142 | ... |
142 | 143 | photo = models.ImageField(storage=fs) |
143 | 144 | |
144 | | :doc:`Custom storage systems </howto/custom-file-storage>` work the same way: you |
145 | | can pass them in as the ``storage`` argument to a ``FileField``. |
| 145 | :doc:`Custom storage systems </howto/custom-file-storage>` work the same way: |
| 146 | you can pass them in as the ``storage`` argument to a |
| 147 | :class:`~django.db.models.FileField`. |