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
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
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
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
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
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
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>
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:
>
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
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,
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
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
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
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
<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?
>
> >
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
31 matches
Mail list logo