mirror of
https://github.com/django/django.git
synced 2025-07-15 09:15:12 +00:00
parent
93c1576f17
commit
f71fdf83a8
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ Configuring static files
|
||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
<img src="{% static "my_app/myexample.jpg" %}" alt="My image"/>
|
<img src="{% static "my_app/myexample.jpg" %}" alt="My image"/>
|
||||||
|
|
||||||
3. Store your static files in a folder called ``static`` in your app. For
|
4. Store your static files in a folder called ``static`` in your app. For
|
||||||
example ``my_app/static/my_app/myimage.jpg``.
|
example ``my_app/static/my_app/myimage.jpg``.
|
||||||
|
|
||||||
Now, if you use ``./manage.py runserver``, all static files should be served
|
Now, if you use ``./manage.py runserver``, all static files should be served
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue