Hi all,
My photologue came on pinax stack, but later I downloaded 2.2 and
installed it separately, hoping to solve the problem, but it did not,
and I am sturggling with this problem:
On the "production", I can upload galleries through admin page and see
the thumbnails appear in 'Photos' of admin, however nothing (no image,
no link) displayed when I visit gallery urls, e.g.:
e.g.
http://mysite.com/photologue/gallery/test1/
I see that the uploaded images are in:
/www/proj1/site_media/media/photologue/photos
I see only a blank page (of the pinax hompage template). I've seen in
other emails that the first culprits are MEDIA_ROOT and MEDIA_URL. I
have tweaked them A LOT but with no success.
May worth mentioning that the photos that I upload using 'images'
module, are displayed flawlessly, no matter how I change the MEDIA
paths above.
my 'proj1's directory sturcture is like this:
|-apps
|---about
|---friends_app
|---photologue
|-----build
|-------lib.linux-i686-2.6
|---------photologue
|-----------management
|-------------commands
|-----------templatetags
|-----------utils
|-----photologue
|-------locale
|---------pl
|-----------LC_MESSAGES
|-------res
|-------templates
|---------photologue
|-deploy
|-fixtures
|-locale
|---bs
|-----LC_MESSAGES
|---ca
|-----LC_MESSAGES
...
|-media
|---css
|---images
|-----facebox
|-----silk
|-------icons
|---js
|---pinax
|-----css
|-----images
|-------facebox
|-------silk
|---------icons
|-----js
|---static
|---uni_form
|-requirements
|-site_media
|---media
|-----photologue
|-------photos
|---------abbey
|-----------cache
|---------test1
|-----------cache
|---------cache
|---------test2
|-----------cache
|-------samples
|-------temp
|-templates
|---about
|---account
|---friends_app
|---notification
|---photologue
|---tags
|-tests
Currently, in settings.py I have:
MEDIA_ROOT = '/www/proj1/site_media/media/photologue/photos'
MEDIA_URL = "
http://mysite.com/media/"
STATIC_URL = "
http://mysite.com/photologue/gallery"
# Additional directories which hold static files
STATICFILES_DIRS = [
os.path.join(PROJECT_ROOT, "media"),
os.path.join(PINAX_ROOT, "media", PINAX_THEME),
]
TEMPLATE_DIRS = (
#'/www/proj1/templates/photologue',
os.path.join(PROJECT_ROOT, "templates"),
os.path.join(PINAX_ROOT, "templates", "default"),
)
--------------
And in urls.py
url(r"^photologue/", include("photologue.urls")),
I really appreciate your suggestion to resolve this BIG issue. Let me
know if I need to submit any other info.
Thanks