Re: Django and Heroku Static Image Files Disappearing

2013-01-10 Thread Filip Wasilewski
Hi,

On Thursday, January 10, 2013 10:14:19 PM UTC+1, That guy wrote:
>
> Hi there :)
>
> On heroku, do static images expire after some point and automatically get 
> deleted?
>
Heroku dyno file system is not persistent between restarts and you have to 
store your media files outside of Heroku - 
https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem. Just use 
django-storages  with a cloud 
storage.

Filip
en.ig.ma

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/TU0fRnQ52scJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django and Heroku Static Image Files Disappearing

2013-01-10 Thread That guy


Hi there :)

On heroku, do static images expire after some point and automatically get 
deleted?

My situation is that I retrieve images from my PostgreSQL database through 
a model's ImageField by setting its upload_to equal to static/images. Then, 
I access the images through mysitesurl.com/static/images/model.url This 
works perfectly initially. However, after several hours, what I notice is 
that the images are no longer accessible. When I try to access them through 
the same url, they no longer exist. I do not do any manual image deletions 
so the operations I perform should not interfere with this. 

Is this something that Heroku does that I do not understand?

Also, one odd occurrence that I notice is that the image is still 
accessible through the url, but it doesn't actually get saved to 
static/images. When I run the bash shell provided by heroku, its not in the 
static folder.

Note: I am aware of S3, but I am trying to get this to work purely on 
Heroku.

Thanks for any help :D

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/_khBIqL4L9wJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.