Re: Unable to load application to production environment

2011-12-01 Thread Leslie Maclachlan
Hi, I would start by making sure any third party django apps that you have installed on your test server (like django-registration) are installed on the production server as well... On Thu, Dec 1, 2011 at 11:56 AM, Daniel Roseman wrote: > On Thursday, 1 December 2011 07:16:50 UTC, Ganesh-Bugcy wr

Need example of django-payfast

2011-11-25 Thread Leslie Maclachlan
Hello everyone, Does anyone have a working example of django-payfast? I am testing (in payfast sandbox), and although I can submit the payment request to payfast, the return goves me a 404 error - No PayFastOrder matches the given query. I see from the source that the initial response from payfas

Re: Help with many-to-many field update

2011-11-24 Thread Leslie Maclachlan
Hi Mario, Thanks so much - I updated my view as below and it is now working as expected! Regards, Leslie if form.is_valid(): new_item = form.save(commit=False) new_item.client = orderClient new_item.orderdate = datetime.now() new_item.orderIP = remot

Re: Strange url tag behaviour

2009-02-11 Thread Leslie Maclachlan
Thanks Dmitry, I entered it as: FORCE_SCRIPT_NAME = '/var/opt/django/projects/ilayer' this has not resolved it - did I put it in the correct format? Regards, Leslie Dmitry Dzhus wrote: > Leslie Maclachlan wrote: > > >> I would expect the url to show as: http://in

Strange url tag behaviour

2009-02-11 Thread Leslie Maclachlan
Hi, I have a url tag as follows in my template: {{username.name}} I would expect the url to show as: http://intranet/MV_Edit_Employee/1/ But, it shows up as: http://intranet/var/opt/django/projects/ilayer/MV_Edit_Employee/1/ Everything still workds, but it just looks strange to have a url

Re: Change password form

2009-01-13 Thread Leslie Maclachlan
Thank you very much Roland - it is now working as required! Best regards, Leslie Roland van Laar wrote: > Leslie Maclachlan wrote: > >> Hello everyone, >> >> I have written a template and view to allow users to change their password. >> As soon as it hits the if

Change password form

2009-01-13 Thread Leslie Maclachlan
Hello everyone, I have written a template and view to allow users to change their password. As soon as it hits the if pForm.is_valid, I get an error that there is a required field (username) missing - I don't understand why it is asking for this field, as I have not created it, but am assigning

Re: ROOT_URLCONF

2009-01-02 Thread Leslie Maclachlan
dick...@gmail.com wrote: > was looking for some info on how ROOT_URLCONF setting is supposed to > be used? i am trying something very simple. i have a single django > project. there are two apps. > > i want to run one app, call it foo, with a specific settings file, > and set of urls, and bar wit

Newbie question - Deploying Django apps

2008-12-28 Thread Leslie Maclachlan
Hi, I am using Eclipse editor to work with my django projects. Can anyone recommend a way to deploy my django apps to an Apache web server? Currently, I am manually copying the entire source folder to the correct location on my Apache server. It seems that there should be an easier way to keep m