diff options
Diffstat (limited to 'docs/faq/usage.txt')
| -rw-r--r-- | docs/faq/usage.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/faq/usage.txt b/docs/faq/usage.txt index bd1c250896..9c659bd711 100644 --- a/docs/faq/usage.txt +++ b/docs/faq/usage.txt @@ -1,8 +1,9 @@ +================= FAQ: Using Django ================= Why do I get an error about importing DJANGO_SETTINGS_MODULE? -------------------------------------------------------------- +============================================================= Make sure that: @@ -14,7 +15,7 @@ Make sure that: * The module doesn't contain syntax errors (of course). I can't stand your template language. Do I have to use it? ----------------------------------------------------------- +========================================================== We happen to think our template engine is the best thing since chunky bacon, but we recognize that choosing a template language runs close to religion. @@ -22,7 +23,7 @@ There's nothing about Django that requires using the template language, so if you're attached to Jinja2, Mako, or whatever, feel free to use those. Do I have to use your model/database layer? -------------------------------------------- +=========================================== Nope. Just like the template system, the model/database layer is decoupled from the rest of the framework. @@ -32,7 +33,7 @@ use Django's automatically-generated admin site. That app is coupled to the Django database layer. How do I use image and file fields? ------------------------------------ +=================================== Using a :class:`~django.db.models.FileField` or an :class:`~django.db.models.ImageField` in a model takes a few steps: @@ -58,7 +59,7 @@ Using a :class:`~django.db.models.FileField` or an ``{{ object.mug_shot.url }}``. How do I make a variable available to all my templates? -------------------------------------------------------- +======================================================= Sometimes your templates just all need the same thing. A common example would be dynamically-generated menus. At first glance, it seems logical to simply |
