Local timezone in django admin

2014-12-08 Thread vamsy krishna
Hi, The default timezone in our application is UTC (stored in the database). However I would like to display the datetime fields on the admin interface based on the user's local timezone. We're using Django 1.6. Thanks, Vamsy -- You received this message because you are subscribed to the

Application scope variable

2012-05-10 Thread vamsy krishna
Hi, I'm using an IMAP connection in my application and want to use the same connection across sessions to fetch the relevant data. I added the below snippet in my settings.py file and importing connection in my view function where I need this. However this is instantiating the variable each time

Re: file upload size problem

2011-03-17 Thread vamsy krishna
Yes Tom, thanks. That makes sense. And yes it works like a charm on Opera. On Mar 17, 2:47 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Mar 17, 2011 at 6:51 AM, vamsy krishna <badguitar...@gmail.com> wrote: > > That is true Michal. My understanding is that

Re: file upload size problem

2011-03-17 Thread vamsy krishna
That is true Michal. My understanding is that the server does send back a 413 response as soon as it finds the huge mismatch in the upload limit and the actual upload size. Also I think the server immediately terminates the connection for the request. The problem however is that the browser

Re: file upload size problem

2011-03-15 Thread vamsy krishna
Any suggestions please? On Mar 15, 12:18 pm, vamsy krishna <badguitar...@gmail.com> wrote: > Hi All, > > I've set a custom error page for the 413 error when the upload file > size exceeds the maximum set in apache LimitRequestBody directive (500 > KB). > This is working f

Re: file upload size problem

2011-03-15 Thread vamsy krishna
custom error page. Can someone point me in the right direction? Connection Interrupted The connection to the server was reset while the page was loading. The network link was interrupted while negotiating a connection. Please try again. Thanks, Vamsy On Mar 15, 11:21 am, vamsy krishna <badgui

Re: file upload size problem

2011-03-15 Thread vamsy krishna
Thanks Tom. I also looked up the Django code and realised there is no handler413 defined. I'm now doing it in apache the way you mentioned. On Mar 14, 4:38 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Mon, Mar 14, 2011 at 9:02 AM, vamsy krishna <badguitar...@gmail.com>

Re: file upload size problem

2011-03-14 Thread vamsy krishna
the handler404 and handler500 are working without any issue. Can someone point me in the right direction? Thanks, Vamsy On Mar 14, 11:07 am, vamsy krishna <badguitar...@gmail.com> wrote: > Oh yes. Thanks Karen. > > On Mar 12, 7:06 pm, Karen Tracey <kmtra...@gmail.com> wrote: >

Re: file upload size problem

2011-03-14 Thread vamsy krishna
Oh yes. Thanks Karen. On Mar 12, 7:06 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Sat, Mar 12, 2011 at 12:06 AM, vamsy krishna <badguitar...@gmail.com>wrote: > > > I'm doing a file upload from one of my forms and writing the content > > to a temp file on the s

file upload size problem

2011-03-11 Thread vamsy krishna
Hi, I'm doing a file upload from one of my forms and writing the content to a temp file on the server. The problem is any file of size more than 250 KB is throwing the below error: Request Entity Too Large The requested resource /tera/tera_upload/ does not allow request data with POST requests,

Re: maintenance mode UI

2011-02-12 Thread vamsy krishna
es in base64 within the HTML (I have > seen this done somewhere), but personally I have them hosted on a CDN > somewhere. > > Cal > > On Sat, Feb 12, 2011 at 4:20 AM, vamsy krishna <badguitar...@gmail.com>wrote: > > > Hi, > > > I've set up the django mai

maintenance mode UI

2011-02-11 Thread vamsy krishna
Hi, I've set up the django maintenance mode for my site to display a custom message to the users. The message gets picked up fine but all the relevant styling does not get loaded. It would be really nice if it can load the styling info. Any suggestions? Regards, Vamsy -- You received this

handler500 not working

2011-02-10 Thread vamsy krishna
Hi, I've defined the following in my root urls and also defined the corresponding views and templates. The 404 handler picks up the template correctly but the 500 handler doesn't. The control never reaches the view function though apache logs report it as 500 server error. Am I missing something

Re: 'if' statement improperly formatted

2011-01-23 Thread vamsy krishna
I've added the smart if feature to my custom template tags to get this working. On Jan 23, 7:05 pm, vamsy krishna <badguitar...@gmail.com> wrote: > Oh ok. Thanks for the direction. The server on which it fails uses > django 1.1. I was looking through the documentation for the sa

Re: 'if' statement improperly formatted

2011-01-23 Thread vamsy krishna
<kmtra...@gmail.com> wrote: > On Sun, Jan 23, 2011 at 8:25 AM, vamsy krishna <badguitar...@gmail.com>wrote: > > > I'm getting the below exception from the third line in the snippet. > > This works fine on one server while fails on the other. Any help? > > >

'if' statement improperly formatted

2011-01-23 Thread vamsy krishna
Hi, I'm getting the below exception from the third line in the snippet. This works fine on one server while fails on the other. Any help? Exception Type: TemplateSyntaxError Exception Value:'if' statement improperly formatted {% range 1:32

Re: max recursion depth exceeded

2011-01-16 Thread vamsy krishna
I was able to find two such recursive instances and things work fine after removing them :) On Jan 17, 10:12 am, vamsy krishna <badguitar...@gmail.com> wrote: > Hi Justin, > > There are over 60 urls.py in my app and I'm running through each one > by one. Wish the stack trace

Re: max recursion depth exceeded

2011-01-16 Thread vamsy krishna
Hi Justin, There are over 60 urls.py in my app and I'm running through each one by one. Wish the stack trace had something from within the app. Thanks for the help anyway. Will let you know if I manage to find the bad file. Regards, Vamsy On Jan 13, 5:07 pm, Justin Murphy

max recursion depth exceeded

2011-01-12 Thread vamsy krishna
Hi, I'm trying to use Django-Cms on my site and I see the below exception whenever I try to add a page or a group. The below stacktrace repeats itself indefinitely. I think this error is independent of the cms system and hence I'm posting it here instead of the cms forum. The current recursion

django cms without django admin

2011-01-09 Thread vamsy krishna
Hi, I'm trying to set up django-cms-2.0.2 for my site. The problem is we haven't enabled the django admin for security reasons and want to keep it that way. Is there a way to use the cms without the admin interface? Thanks, Vamsy -- You received this message because you are subscribed to the

Re: redirect after login

2010-12-07 Thread vamsy krishna
request.GET returns an empty dict On Dec 7, 3:35 pm, Kenneth Gonsalves <law...@au-kbc.org> wrote: > On Tue, 2010-12-07 at 02:31 -0800, vamsy krishna wrote: > > redirect_to = request.REQUEST.get('next') > > how about > redirect_to = request.GET? > -- > regards > Ke

redirect after login

2010-12-07 Thread vamsy krishna
Hi, I have the below line in my login code which decides the redirect screen on successful login redirect_to = request.REQUEST.get('next') However redirect_to is always evaluating to None even though the parameter 'next' is part of the url. Any idea what i might be doing wrong? Thanks in

Re: minidom parsestring error

2010-12-01 Thread vamsy krishna
error on the server before. This is a new code. On Dec 1, 7:06 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Dec 1, 1:18 pm, vamsy krishna <badguitar...@gmail.com> wrote: > > > > > Hi, > > > I have a function to read and display an RSS feed which

minidom parsestring error

2010-12-01 Thread vamsy krishna
Hi, I have a function to read and display an RSS feed which is working as expected in my local Apache. However I'm getting a HTTP 502 error when I access the same on Webfaction. Below is a snippet from my code and the error is originating from the last step involving parsing. Like i mentioned

Re: php script in django app

2010-11-30 Thread vamsy krishna
Oh ok. Thanks for the quick response. I guess I'll have to rewrite the script in Python. On Dec 1, 9:04 am, Javier Guerra Giraldez <jav...@guerrag.com> wrote: > On Tue, Nov 30, 2010 at 10:51 PM, vamsy krishna <badguitar...@gmail.com> > wrote: > > I am trying to embed a

php script in django app

2010-11-30 Thread vamsy krishna
Hi, I am trying to embed an Ajax call to load some RSS feeds using a PHP script in my Django app. This does not work and it returns my actual PHP code which is not getting executed. This works when I try the same outside of Django in Apache. Can someone help me to get it working? Is it ok to use

Re: choosing queryset

2010-10-26 Thread vamsy krishna
That's it! Thanks for pointing me in the right direction. Also my apologies for posting on the other forum. I did not know i wasn't supposed to do that. And thanks DR for your response. I've sorted it out now. On Oct 26, 5:42 pm, Jirka Vejrazka wrote: > > I've two

choosing queryset

2010-10-26 Thread vamsy krishna
I've two modules called plan and income and both have a class called Income in their respective models. Now if I do user.income_set, it is accessing the income set under plan. How do I alter it to access income.income? Any ideas? Thanks in advance -- You received this message because you are

session cookie problem in IE

2010-07-21 Thread vamsy krishna
Hi, I am doing the below in my login form. I am setting the session cookie expiry to expire on close of browser unless the user chooses the remember me on this computer option. My problem is that the cookie expires mid-way and too frequently between user actions on IE. Is there anything more i

Re: noob: cyclic import issue

2010-03-29 Thread vamsy krishna
thnx jonas...i figured datz wat i mite do...so django has a limitation on imports like in da case i mentioned? On Mar 29, 2:51 pm, Jonas Obrist <ojiido...@gmail.com> wrote: > On 03/29/2010 10:28 AM, vamsy krishna wrote: > > > hi...am very new to django and am having some pr

noob: cyclic import issue

2010-03-29 Thread vamsy krishna
hi...am very new to django and am having some problem with my code... say i've two modules...mod1 n mod2...n views in both modules have certain generic functions which i need to import from each other...as in (in views.py of mod1) from mod2.views import xyz (and in views.py of mod2) from