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/sta

Re: Django jQuery AJAX Self Replacing Script

2012-12-30 Thread That guy
EDITs made to orginal but same issue. On Sunday, December 30, 2012 5:16:17 PM UTC-8, That guy wrote: > >Hello, > > > I've been having trouble implementing a self-replacing script. I admit > that I am terribly confused. > > I am trying to implement two butt

Django jQuery AJAX Self Replacing Script

2012-12-30 Thread That guy
Hello, I've been having trouble implementing a self-replacing script. I admit that I am terribly confused. I am trying to implement two buttons such that if you click on one, a POST request is sent to the server; the server validates that you indeed went to this webpage and sends back

Getting Access to Object in Admin Panel

2012-12-29 Thread That guy
After overriding list_display, I noticed that I lost access to being able to directly click on the object to view all its fields in the control panel. Hence, I needed to resort to defining return_unicode. I know that theres definitely a better way to approach it, so whats the 'Django' way of do

Trouble Accessing An Image through ImageField

2012-12-23 Thread That guy
Hi there, I'm trying to create a photo gallery by storing photos in a gallery database and pulling them out when appropriate. However, I ran into the problem of how to publicly expose the pictures in urls. In my template, I return a the url of the photo which turns out to be images/photo.jp