Re: Displaying a photo from a database

2017-09-06 Thread ron_w_add via Django users
Hello James Your suggestion worked. Thank you very much for your help. Ron On Tuesday, September 5, 2017 at 10:04:04 PM UTC+1, James Schneider wrote: > > However, when I try to add the photo to the page I’m getting stuck. If I >> try adding ‘> >> >> {% block content %} >> >> < Back >>

Displaying a photo from a database

2017-09-05 Thread ron_w_add via Django users
Hello I have this photo: wildlifephotos/2017/07/26/2017-06-30_Lansdowne_-_Syrphus_Sp_A_01.JPG in the project’s following folder mysite/media as per the following (simplified) tree C:. | \---mysite | db.sqlite3 | manage.py | +---media | |

Re: Error message on 'django.urls.exceptions.NoReverseMatch'

2017-07-31 Thread ron_w_add via Django users
Hello James Thanks for your help. That solved the problem. Ron > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

Adding code when pressing one of admin's save buttons

2017-07-25 Thread ron_w_add via Django users
I am using Django’s admin interface to create new records. A record includes (amongst other fields) the date and time that a photo was taken. These fields will be filled into the database when either the ‘Save and add another’, ‘Save and continue editing’ or the ‘Save’ buttons are pressed