Fixed some long lines and removed trailing whitespace.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2009-03-30 17:07:43 +00:00
parent 432f7f624a
commit a61c0b7949
1 changed files with 14 additions and 13 deletions

View File

@ -8,8 +8,8 @@ Why do I get an error about importing DJANGO_SETTINGS_MODULE?
Make sure that: Make sure that:
* The environment variable DJANGO_SETTINGS_MODULE is set to a fully-qualified * The environment variable DJANGO_SETTINGS_MODULE is set to a
Python module (i.e. "mysite.settings"). fully-qualified Python module (i.e. "mysite.settings").
* Said module is on ``sys.path`` (``import mysite.settings`` should work). * Said module is on ``sys.path`` (``import mysite.settings`` should work).
@ -48,11 +48,12 @@ 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: :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 #. In your settings file, you'll need to define :setting:`MEDIA_ROOT` as
full path to a directory where you'd like Django to store uploaded files. the full path to a directory where you'd like Django to store uploaded
(For performance, these files are not stored in the database.) Define files. (For performance, these files are not stored in the database.)
:setting:`MEDIA_URL` as the base public URL of that directory. Make sure Define :setting:`MEDIA_URL` as the base public URL of that directory.
that this directory is writable by the Web server's user account. Make sure that this directory is writable by the Web server's user
account.
#. Add the :class:`~django.db.models.FileField` or #. Add the :class:`~django.db.models.FileField` or
:class:`~django.db.models.ImageField` to your model, making sure to :class:`~django.db.models.ImageField` to your model, making sure to