Author: gwilson
Date: 2009-03-30 12:07:43 -0500 (Mon, 30 Mar 2009)
New Revision: 10195

Modified:
   django/trunk/docs/faq/usage.txt
Log:
Fixed some long lines and removed trailing whitespace.


Modified: django/trunk/docs/faq/usage.txt
===================================================================
--- django/trunk/docs/faq/usage.txt     2009-03-30 16:48:24 UTC (rev 10194)
+++ django/trunk/docs/faq/usage.txt     2009-03-30 17:07:43 UTC (rev 10195)
@@ -8,8 +8,8 @@
 
 Make sure that:
 
-    * The environment variable DJANGO_SETTINGS_MODULE is set to a 
fully-qualified
-      Python module (i.e. "mysite.settings").
+    * The environment variable DJANGO_SETTINGS_MODULE is set to a
+      fully-qualified Python module (i.e. "mysite.settings").
 
     * Said module is on ``sys.path`` (``import mysite.settings`` should work).
 
@@ -45,22 +45,23 @@
 How do I use image and file fields?
 -----------------------------------
 
-Using a :class:`~django.db.models.FileField` or an 
+Using a :class:`~django.db.models.FileField` or an
 :class:`~django.db.models.ImageField` in a model takes a few steps:
 
-    #. In your settings file, you'll need to define :setting:`MEDIA_ROOT` as 
the
-       full path to a directory where you'd like Django to store uploaded 
files.
-       (For performance, these files are not stored in the database.) Define
-       :setting:`MEDIA_URL` as the base public URL of that directory. Make sure
-       that this directory is writable by the Web server's user account.
+    #. In your settings file, you'll need to define :setting:`MEDIA_ROOT` as
+       the full path to a directory where you'd like Django to store uploaded
+       files. (For performance, these files are not stored in the database.)
+       Define :setting:`MEDIA_URL` as the base public URL of that directory.
+       Make sure that this directory is writable by the Web server's user
+       account.
 
-    #. Add the :class:`~django.db.models.FileField` or 
-       :class:`~django.db.models.ImageField` to your model, making sure to 
-       define the :attr:`~django.db.models.FileField.upload_to` option to tell 
-       Django to which subdirectory of :setting:`MEDIA_ROOT` it should upload 
+    #. Add the :class:`~django.db.models.FileField` or
+       :class:`~django.db.models.ImageField` to your model, making sure to
+       define the :attr:`~django.db.models.FileField.upload_to` option to tell
+       Django to which subdirectory of :setting:`MEDIA_ROOT` it should upload
        files.
 
-    #. All that will be stored in your database is a path to the file 
+    #. All that will be stored in your database is a path to the file
        (relative to :setting:`MEDIA_ROOT`). You'll most likely want to use the
        convenience :attr:`~django.core.files.File.url` attribute provided by
        Django. For example, if your :class:`~django.db.models.ImageField` is


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to