Follow these steps to complete the recipe:
- Make sure to have the Idea model created with the picture field and picture version specifications. See the Creating an app with CRUDL functions and Uploading images recipes for more information.
- Make sure to have a detail view ready for ideas. See the Creating an app with CRUDL functions recipe for information on how to do that.
- Plug the detail view into the URL configuration. How to do that is described in the Creating an app with CRUDL functions recipe.
- In the settings of your specific environment, define WEBSITE_URL and MEDIA_URL as full URLs of the media files, as in this example:
# myproject/settings/dev.pyfrom ._base import *DEBUG = TrueWEBSITE_URL = "http://127.0.0.1:8000" ...