Change deafault images location to static

This commit is contained in:
Michael Götz 2018-02-01 11:07:12 +01:00
parent 8739f7c440
commit df16432203
9 changed files with 4 additions and 45 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
docker.env docker.env
static_files/ static_files/
# Created by https://www.gitignore.io/api/pycharm,python,django # Created by https://www.gitignore.io/api/pycharm,python,django
.idea/
### Django ### ### Django ###
*.log *.log

View File

@ -1,7 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="useProjectProfile" value="false" />
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml generated
View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.5.3 (/usr/bin/python3.5)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml generated
View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/ofu-app.iml" filepath="$PROJECT_DIR$/.idea/ofu-app.iml" />
</modules>
</component>
</project>

18
.idea/ofu-app.iml generated
View File

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TemplatesService">
<option name="TEMPLATE_FOLDERS">
<list>
<option value="$MODULE_DIR$/ofu_app/templates" />
</list>
</option>
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>

6
.idea/vcs.xml generated
View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

Before

Width:  |  Height:  |  Size: 154 KiB

After

Width:  |  Height:  |  Size: 154 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

@ -66,9 +66,10 @@
<img src="{{ single_food.image.image.url }}" class="media-object" alt="Bild" width="80px"> <img src="{{ single_food.image.image.url }}" class="media-object" alt="Bild" width="80px">
</a> </a>
{% else %} {% else %}
<a href="/media/food/default/default.jpg" data-lightbox="{{ title }}" <a href="{{ static('img/food/default.jpg') }}" data-lightbox="{{ title }}"
data-title="{{ single_food.name }}"> data-title="{{ single_food.name }}">
<img src="/media/food/default/default.jpg" class="media-object" alt="Bild" width="80px"> <img src="{{ static('img/food/default.jpg') }}" class="media-object"
alt="Bild" width="80px">
</a> </a>
{% endif %} {% endif %}
</div> </div>