Closed GoogleCodeExporter closed 9 years ago
I just looked and the cache folder:
media/photologue/photos/2008/Feb/24/cache
Only has files with thumbnail appended to the file name, no files with display
appended.
How do I get automatically generate the other Photo Size (display, width =
500)?
I guess the template is trying to load a file that is not present.
Original comment by merrick@gmail.com
on 25 Feb 2008 at 9:05
The first thing I would try is to open the display size in the admin and save it
again (this will clear any generated files).
Have you tried using the shell? Try this (from terminal within project root)
and see
if you get an exception:
{{{
manage.py shell
>>> from photologue.models import *
>>> p = Photo.objects.all()[0]
>>> p.get_display_url()
'...'
}}}
Original comment by justin.d...@gmail.com
on 25 Feb 2008 at 9:26
Thank you for responding.
Below is the output from the shell. Using the shell caused the display image to
be
created. However when I browse to the web page for the photo
(photo_detail.html), it
is has a blank <img src''> even after we used the shell. This means
get_display_url()
is not being called or something and that is probably why I did not have any
display
images in my cache folder before I ran the command you suggested.
Any thoughts?
<pre>
Python 2.4.4 (#2, Apr 5 2007, 20:11:18)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from photologue.models import *
>>> p = Photo.objects.all()[0]
>>> p.get_display_url()
u'/media/photologue/photos/2008/Feb/24/cache/mac_pro_side_display.jpg'
>>> p = Photo.objects.all()[1]
>>> p.get_display_url()
u'/media/photologue/photos/2008/Feb/24/cache/20080201-IMG_4071_display.jpg'
#directory contents
ls media/photologue/photos/2008/Feb/24/cache/
20080201-IMG_4015_thumbnail.jpg 20080201-IMG_4071_display.jpg
mac_pro_side_thumbnail.jpg
20080201-IMG_4017_thumbnail.jpg 20080201-IMG_4071_thumbnail.jpg
20080201-IMG_4069_thumbnail.jpg
</pre>
Original comment by merrick@gmail.com
on 26 Feb 2008 at 12:17
It's getting late, and I've been drinking so this may not be the most
enlightening advice, but just for shits and
giggles have you tried using the trunk templates? Also, what release we're you
using when you "sync"ed the
database? If you can, you might try starting again using the trunk
code/templates and do a "manage.py reset
photologue" to see if that clears it up. Otherwise, if you have data you need
to preserve some schema evolution
may be in order. Is the title heading ("<h1>{{ object.title }}</h1>")of the
photo being rendered in the template?
Original comment by justin.d...@gmail.com
on 26 Feb 2008 at 2:35
No templates came down when I did a checkout. When I do a checkout no templates
are
listed either.
# svn list http://django-photologue.googlecode.com/svn/trunk/photologue/
__init__.py
models.py
urls.py
util/
orozco:~# [']
What would be the command to get them? I just started last night and was using
whatever came down with the trunk when I ran the syncdb. The title is printed
out.
I'll try from scratch again.
Original comment by merrick@gmail.com
on 26 Feb 2008 at 2:51
You'll want to check out the "trunk" folder itself...
"svn checkout http://django-photologue.googlecode.com/svn/trunk/
django-photologue"
The root trunk folder includes the photologue app, as well as the sample
templates folder. see
"http://code.google.com/p/django-photologue/source/browse/trunk".
Original comment by justin.d...@gmail.com
on 26 Feb 2008 at 3:04
I started all over with a blank project and the photologue app and templates
from the
root trunk folder. It works now.
Thank you for helping me, this is a great app.
Original comment by merrick@gmail.com
on 26 Feb 2008 at 5:01
Thank you. I'm glad you got it working. Let me know if you come across any
issues or
think of anything you believe would improve the project.
Original comment by justin.d...@gmail.com
on 26 Feb 2008 at 1:26
Original issue reported on code.google.com by
merrick@gmail.com
on 25 Feb 2008 at 8:59