Hi, Yes, I am using date based generic views for my blog. Then I am using the admin to create posts. So, I think the cause is the JS control in admin. Today my posts can be viewed correctly. But, I am developing in my personal laptop using Windows XP, then I think the 'server' date time shall be same with user date time. CMIIW Then, how to correct this?
thanks and best regards, On Mar 7, 6:14 am, Vadim Macagon <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Dear all, > > > I am making simple blog for myself using Django. After made models and > > create necessary urls, I run the application and got: Page Not Found. > > > It says: > > > Page not found (404) > > Request Method: GET > > Request URL: http://127.0.0.1:8000/blog/ > > > No post available > > > Yes, it says No Post Available although there was one post. > > Assuming you're using the date based generic views for your blog you > need to check that the post date is not in the future, because by > default objects with a future date aren't displayed (you can change this > by setting allow_future = True for the generic view). > > If you use the admin to create your posts you should also watch out for > the JS controls that populate the date/time fields with the current > date/time, they use the timezone of the user not the server (so > depending on your timezone "today" for you may end up being "tomorrow" > for the server). > > -+ enlight +- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

