Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X]: Fixed some long lines and removed trailing whitespace.

Backport of r10195 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 412e1d59c97010284ce79a6d5309cf80114e434f 1 parent 54d6fe9
Gary Wilson Jr. authored March 30, 2009

Showing 1 changed file with 15 additions and 14 deletions. Show diff stats Hide diff stats

  1. 29  docs/faq/usage.txt
29  docs/faq/usage.txt
@@ -8,8 +8,8 @@ Why do I get an error about importing DJANGO_SETTINGS_MODULE?
8 8
 
9 9
 Make sure that:
10 10
 
11  
-    * The environment variable DJANGO_SETTINGS_MODULE is set to a fully-qualified
12  
-      Python module (i.e. "mysite.settings").
  11
+    * The environment variable DJANGO_SETTINGS_MODULE is set to a
  12
+      fully-qualified Python module (i.e. "mysite.settings").
13 13
 
14 14
     * Said module is on ``sys.path`` (``import mysite.settings`` should work).
15 15
 
@@ -45,22 +45,23 @@ Django database layer.
45 45
 How do I use image and file fields?
46 46
 -----------------------------------
47 47
 
48  
-Using a :class:`~django.db.models.FileField` or an 
  48
+Using a :class:`~django.db.models.FileField` or an
49 49
 :class:`~django.db.models.ImageField` in a model takes a few steps:
50 50
 
51  
-    #. In your settings file, you'll need to define :setting:`MEDIA_ROOT` as the
52  
-       full path to a directory where you'd like Django to store uploaded files.
53  
-       (For performance, these files are not stored in the database.) Define
54  
-       :setting:`MEDIA_URL` as the base public URL of that directory. Make sure
55  
-       that this directory is writable by the Web server's user account.
56  
-
57  
-    #. Add the :class:`~django.db.models.FileField` or 
58  
-       :class:`~django.db.models.ImageField` to your model, making sure to 
59  
-       define the :attr:`~django.db.models.FileField.upload_to` option to tell 
60  
-       Django to which subdirectory of :setting:`MEDIA_ROOT` it should upload 
  51
+    #. In your settings file, you'll need to define :setting:`MEDIA_ROOT` as
  52
+       the full path to a directory where you'd like Django to store uploaded
  53
+       files. (For performance, these files are not stored in the database.)
  54
+       Define :setting:`MEDIA_URL` as the base public URL of that directory.
  55
+       Make sure that this directory is writable by the Web server's user
  56
+       account.
  57
+
  58
+    #. Add the :class:`~django.db.models.FileField` or
  59
+       :class:`~django.db.models.ImageField` to your model, making sure to
  60
+       define the :attr:`~django.db.models.FileField.upload_to` option to tell
  61
+       Django to which subdirectory of :setting:`MEDIA_ROOT` it should upload
61 62
        files.
62 63
 
63  
-    #. All that will be stored in your database is a path to the file 
  64
+    #. All that will be stored in your database is a path to the file
64 65
        (relative to :setting:`MEDIA_ROOT`). You'll most likely want to use the
65 66
        convenience :attr:`~django.core.files.File.url` attribute provided by
66 67
        Django. For example, if your :class:`~django.db.models.ImageField` is

0 notes on commit 412e1d5

Please sign in to comment.
Something went wrong with that request. Please try again.