Django for Designers/Basic views: Difference between revisions
Content added Content deleted
imported>Aldeka |
imported>Paulproteus (→Static files: Karen-ifying these TODOs) |
||
Line 321: | Line 321: | ||
</source> |
</source> |
||
TODO Actually provide sample static files here, and play-test the rest of this section. |
TODO (Karen) Actually provide sample static files here, and play-test the rest of this section. |
||
Django automatically looks for a folder named 'static' inside any of your Django apps. You can also put static files in other places, such as inside myproject/ directly. To do that, you would need to add the absolute path of the folder to STATICFILES_DIRS in settings.py. |
Django automatically looks for a folder named 'static' inside any of your Django apps. You can also put static files in other places, such as inside myproject/ directly. To do that, you would need to add the absolute path of the folder to STATICFILES_DIRS in settings.py. |
||
Line 338: | Line 338: | ||
Make sure you see ''manage.py'', and then let's continue. |
Make sure you see ''manage.py'', and then let's continue. |
||
TODO: see how the old HTML looks here |
TODO (Karen): see how the old HTML looks here |
||
Now let's add some more structure to our HTML templates to make them easier to style. First, base.html: |
Now let's add some more structure to our HTML templates to make them easier to style. First, base.html: |