Re: Django's DecimalField represenation in admin as 0,00 values

2012-05-04 Thread orschiro
Thanks for your replies. Regarding the localize option, I tried to use it in my models.py [1]. However, I get the following error. Field.__init__(self, verbose_name, name, **kwargs) TypeError: __init__() got an unexpected keyword argument 'localize' [1] http://pastebin.com/9TkwWnNY Can localiz

Re: Django's DecimalField represenation in admin as 0,00 values

2012-05-02 Thread orschiro
Anybody? On May 2, 11:07 am, orschiro wrote: > I want to represent a price in my model in the form of 0,00. This is > the part of my model. > > price = models.DecimalField(max_digits=5, decimal_places=2, > default=Decimal('0.00')) > > However, prices such as 2.

Django's DecimalField represenation in admin as 0,00 values

2012-05-02 Thread orschiro
I want to represent a price in my model in the form of 0,00. This is the part of my model. price = models.DecimalField(max_digits=5, decimal_places=2, default=Decimal('0.00')) However, prices such as 2.10 are still represented as 2.1. The second issue would be to replace the . with a ,. However

Re: Running manage.py commands in Windows Power Shell

2012-03-19 Thread orschiro
, orschiro wrote: > Hello Sam, > > Let's assume we're having the following script test.py containing > nothing more than a print statement and a raw_input. > > > print "Test" > raw_input() > > > When I launch test.py in PowerShell li

Re: Running manage.py commands in Windows Power Shell

2012-03-18 Thread orschiro
ds, Robert On Mar 15, 10:54 am, Sam Lai wrote: > On 15 March 2012 04:35, orschiro wrote: > > > > > > > > > > > Hello, > > > I have a question which is based on the discussion here: > > >http://groups.google.com/group/django-users/browse_thre

Re: Running manage.py commands in Windows Power Shell

2012-03-14 Thread orschiro
012 at 5:35 PM, orschiro wrote: > > Hello, > > > I have a question which is based on the discussion here: > > >http://groups.google.com/group/django-users/browse_thread/thread/2333... > > > I'm working on Windows 7 with the PowerShell. Python 2.7 and the pa

Running manage.py commands in Windows Power Shell

2012-03-14 Thread orschiro
Hello, I have a question which is based on the discussion here: http://groups.google.com/group/django-users/browse_thread/thread/2333f5dc8d0674f0 I'm working on Windows 7 with the PowerShell. Python 2.7 and the path to django-admin.py is stored in my PATH variable. After creating a project I ca

Re: How to organize django projects on a productive server?

2009-09-15 Thread orschiro
Hello Andrew, thanks for that detailed reply. :) So the key for development and deployment is a VCS such as SVN or Git? In short: Your developers are pushing the changes up to the branches on the stating server where a release is going to be created. Then it is going to be transfered to the pro

Re: How to organize django projects on a productive server?

2009-09-15 Thread orschiro
Hello Daniel, so the projects could be as well on the users home path? It makes more sense for me to put them on the home path than anywhere else. On 15 Sep., 21:59, Daniel Roseman wrote: > On Sep 15, 8:49 pm, orschiro wrote: > > > Hello Léon Dignòn, > > > you told t

Re: How to organize django projects on a productive server?

2009-09-15 Thread orschiro
Hello Léon Dignòn, you told that your projects lie beneath /var/www.. So the reason for that is that you might use Apache? As I remember (I'm using nginx instead of Apache) this is the default directory. On 15 Sep., 21:35, Léon Dignòn wrote: > On Sep 15, 9:28 pm, orschiro wrote: >

How to organize django projects on a productive server?

2009-09-15 Thread orschiro
Hello guys, first, I know it is not that important how to do this but as I'm pretty knew and callow I'd like to know how some experienced users do that. At the moment I have just a normal user account besides my root that stores all my django projects. Also my django trunk lives in there. Anoth

Development and deployment wit Git

2009-09-13 Thread orschiro
repository - on my local machine or on the server? I think it makes sense to have it on the local machine as I'm developing only for myself, but how do I get the project with its changes on my server? Very confusing. Thank you in advance. :) orschiro --~--~-~--~~~

Re: interaction of django with paypal

2009-08-30 Thread orschiro
elopment server I receive the error message: IndentationError at / ('unindent does not match any outer indentation level', ('/home/ orschiro/projects/test/download/views.py', 13, 50, "\telif (-1 == request.META.get('HTTP_REFERER')\n")) If this approach isn

interaction of django with paypal

2009-08-29 Thread orschiro
est.method == 'POST': formular = form(request.POST) else: formular = form() return render_to_response('download/index.html', { 'form': formular, }) else: error message How could I do t