July 2019
Beginner to intermediate
302 pages
9h 38m
English
After all of this, it is possible that the product images being uploaded as part of the product creation don't work. For this, we should make a small modification to our application's configuration:
app.config['UPLOAD_FOLDER'] = '<Some static absolute path>/flask_test_uploads'
We opted for a static path because we don't want it to change every time the application is modified or installed.
Now, we will include the path that was chosen in the preceding code in apache_wsgi.conf:
Alias /static/uploads/ "<Some static absolute path>/flask_test_uploads/"
<Directory "<Some static absolute path>/flask_test_uploads">
Require all granted
Options Indexes
Allow from all
IndexOptions FancyIndexing
</Directory>
After this, install the ...