page not updating right away

68 views
Skip to first unread message

ashbii

unread,
Oct 17, 2008, 2:22:14 PM10/17/08
to Django users
I am new to Django, but love it so far. I went through a tutorial and
created a basic blog app. I'm using Django's admin interface to add
new blog posts -- I have a blog "Post" model.

My problem is that whenever I enter and save a new blog post via
admin, its not showing up on the web page (template) right away. It
usually shows up after a few hours. It shows up right away on the
admin side though. This leads me to believe that there is some sort
of caching going on, but I do not have any type of Django cache
setting going on in my settings.py file. Is this a python cache
issue? I've tried pkill python, but doesn't work either. Is there a
template/web page cache in Django?

My host is Dreamhost, so I am running Django with FastCGI. I know
thats not the preferred set up, but just getting my feet wet with
Django. Thanks for any advice!

Christian Joergensen

unread,
Oct 18, 2008, 3:25:38 AM10/18/08
to django...@googlegroups.com
ashbii wrote:
> I am new to Django, but love it so far. I went through a tutorial and
> created a basic blog app. I'm using Django's admin interface to add
> new blog posts -- I have a blog "Post" model.
>
> My problem is that whenever I enter and save a new blog post via
> admin, its not showing up on the web page (template) right away. It
> usually shows up after a few hours. It shows up right away on the
> admin side though. This leads me to believe that there is some sort
> of caching going on, but I do not have any type of Django cache
> setting going on in my settings.py file. Is this a python cache
> issue? I've tried pkill python, but doesn't work either. Is there a
> template/web page cache in Django?

No there isn't.

Could you show us the code for your view?

Regards,

--
Christian Joergensen
http://www.technobabble.dk

realt...@gmail.com

unread,
Oct 18, 2008, 6:54:13 AM10/18/08
to Django users

please try restarting your webserver after uploading or, use the
internal django testserver on a local machine....

Rock

unread,
Oct 18, 2008, 10:11:41 AM10/18/08
to Django users
A very common problem is that the timezone or system clock is off.
Most Blog implementations allow you to create a blog entry "in the
future" so it shows up on your web page only after a specified time.
This capability plays havoc with noobies who haven't bothered to set
their timezone correctly in their settings.py. A 2 hour delay is the
most common since the settings.py defaults to Chicago and many shared
host servers are based in the Pacific timezone.

ashbii

unread,
Oct 22, 2008, 12:33:37 PM10/22/08
to Django users
Thanks Rock, that was it. I had to change my TIME_ZONE setting in my
project's settings.py.
Reply all
Reply to author
Forward
0 new messages