Re: jquery ajax form problem--Can't render template variables

2009-06-10 Thread Malcolm MacKinnon
Thanks Alex. I'll give it a try. I appreciate your comments. On Wed, Jun 10, 2009 at 5:49 AM, Alex Robbins wrote: > > I haven't used that form plugin before, but from the documentation it > looks like the problem is this line: > target:"#new", >

Re: Runtime error when uploading image files

2009-08-06 Thread Malcolm MacKinnon
Thanks, Karen. I really appreciate all the time you put in looking at this and your comments are very informative. You were right about naming the primary key PK (I thought Django would like that, but it doesn't). I changed it to PRIM and the model form renders the way it should in photos.html. I

Re: ValueError when uploading image

2009-08-06 Thread Malcolm MacKinnon
I think I've fixed the problem. It had to so with PIL not being installed correctly. Check out this link: http://www.answermysearches.com/fixing-pil-ioerror-decoder-jpeg-not-available/320/for a possible solution. Now, jpeg images are uploaded and saved. On Thu, Aug 6, 2009 at 6:42 PM, Mac

Re: Runtime error when uploading image files

2009-08-07 Thread Malcolm MacKinnon
the problem for others who may run into it: http://www.answermysearches.com/fixing-pil-ioerror-decoder-jpeg-not-available/320/ Thanks again for taking the time to respond. On Thu, Aug 6, 2009 at 5:02 PM, Malcolm MacKinnon <mmack3...@gmail.com>wrote: > Thanks, Karen. I really appre

Re: Apache2 permission denied problem

2009-08-09 Thread Malcolm MacKinnon
Graham, thanks for taking the time to repond. I made the changes in my views to use only absolute paths, and made the necessary changes to the file permissions. All seems to work fine now. On Sun, Aug 9, 2009 at 11:19 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > > On Aug 9,

Re: PIL & imagefield validation

2009-08-18 Thread Malcolm MacKinnon
For what it's worth, here's what helped me about a month ago. The PIL installation process is a mess, and I had to follow these instructions, step by step. I think I've fixed the problem. It had to so with PIL not being installed correctly. Check out this link:

Re: Can I tell IE not to cache data?

2009-09-17 Thread Malcolm MacKinnon
If your using jquery and a jquery ajax request, this worked for me: $(document).ready(function(){ $.ajaxSetup({ cache: false }); }); On Thu, Sep 17, 2009 at 4:56 PM, Adam V. wrote: > > This is via an AJAX request, I assume? > For IE, you'll want to throw a bogus querystring

URL Parameter is not found, 404 error

2009-09-21 Thread Malcolm MacKinnon
Hi, I'm new to Django. I keep getting a 404 error when I try to pass a "prod" parameter to a url. I think it is just this last parameter that is giving me trouble. Here is my error: Page not found (404)Request Method:GETRequest URL: http://localhost/order_closeouts/imgs/WMS%20DIVA%20PANT%20BLK/

URL Parameter is not found, 404 error

2009-09-21 Thread Malcolm MacKinnon
Hi, I'm new to Django. I keep getting a 404 error when I try to pass a "prod" parameter to a url. I think it is just this last parameter that is giving me trouble. Here is my error: Page not found (404)Request Method:GETRequest URL: http://localhost/order_closeouts/imgs/WMS%20DIVA%20PANT%20BLK/

Re: URL Parameter is not found, 404 error

2009-09-21 Thread Malcolm MacKinnon
Thanks, Karen. With your help, I manged to fix it. On Mon, Sep 21, 2009 at 5:52 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Sep 21, 2009 at 3:28 PM, Malcolm MacKinnon <mmack3...@gmail.com>wrote: > >> Hi, >> I'm new to Django. >> > I keep getting

Re: URL Parameter is not found, 404 error

2009-09-22 Thread Malcolm MacKinnon
Thanks for your help, Daniel. I made the change. On Mon, Sep 21, 2009 at 11:47 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Sep 22, 2:31 am, Malcolm MacKinnon <mmack3...@gmail.com> wrote: > > Thanks, Karen. With your help, I manged to fix it. > > Not

django-trunk/django directory problem

2009-09-26 Thread Malcolm MacKinnon
About 8 moinths ago, I downloaded the development version of django and have been using it to develope a web site. I'm using Ubuntu, and I'm not a skilled programmer, and perhaps this was caused by something I did, but it appears I don't have subversion installed correctly, as the django directory

Re: django-trunk/django directory problem

2009-09-26 Thread Malcolm MacKinnon
of a ls -al in the django dir > Vitaly Babiy > > > > On Sat, Sep 26, 2009 at 7:16 PM, Malcolm MacKinnon <mmack3...@gmail.com>wrote: > >> About 8 moinths ago, I downloaded the development version of django and >> have been using it to develope a web site. I'm u

Re: django-trunk/django directory problem

2009-09-26 Thread Malcolm MacKinnon
ango file. > Vitaly Babiy > > > > On Sat, Sep 26, 2009 at 7:42 PM, Malcolm MacKinnon <mmack3...@gmail.com>wrote: > >> Sure, here it is: >> >> malc...@baglux:~/django-trunk/django$ ls -al >> total 80 >> drwxr-xr-x 18 malcolm malcolm 4096 2009-08-06

Re: django-trunk/django directory problem

2009-09-27 Thread Malcolm MacKinnon
Ok, thanks David. On Sun, Sep 27, 2009 at 1:30 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Sep 27, 4:48 am, Malcolm MacKinnon <mmack3...@gmail.com> wrote: > > Thanks, but I don't understand. Will removal cause problems with django > > project/app

sorl thumbnail error

2009-10-11 Thread Malcolm MacKinnon
Hi, I'm getting error messages with sorl thumbnail. I'm simply trying to show thumbnail images on my template. I select a number of images in my views, and iterate over my selection. Note that all my images are a certain size, and I'm just trying to reduce that size in my template using sorl

sorl thumbnail error--correction

2009-10-11 Thread Malcolm MacKinnon
-- Forwarded message -- From: Malcolm MacKinnon <mmack3...@gmail.com> Date: Sun, Oct 11, 2009 at 2:32 PM Subject: sorl thumbnail error To: django-users@googlegroups.com Hi, I'm getting error messages with sorl thumbnail. I'm simply trying to show thumbnail images on my te

Re: sorl thumbnail error

2009-10-11 Thread Malcolm MacKinnon
Thanks very much. On Sun, Oct 11, 2009 at 3:03 PM, Michael P. Jung wrote: > > > I'm getting error messages with sorl thumbnail. [...] All works fine, > > until I use the following template thumbnail tag: > > > > > > You must not put braces around variables passed to a

Re: Odd problem with modelformset_factory, a missing field

2009-11-16 Thread Malcolm MacKinnon
On Sun, Nov 15, 2009 at 4:35 PM, Malcolm MacKinnon <mmack3...@gmail.com>wrote: > Hi, > > I'm new to django and am having a problem with the modelformset factory not > rendering all my form fields.For some odd reason, when I exclude the primary > key field, prim, it does

Re: admin error, cannot edit fields or delete records, url refers to incorrect primary key

2012-05-19 Thread Malcolm MacKinnon
Problem solved. I had a double defined as my primary key in the mysql db. On Fri, May 18, 2012 at 10:49 PM, Mac wrote: > I've set up a 'Reps' model in the admin. I can add records > successfully, but if I try to change a record or field, I get a 404 > error. When I try to

Re: using django for google appengine, noob to both.

2010-06-30 Thread Malcolm MacKinnon
You should look at this site: http://www.allbuttonspressed.com/projects/django-nonrel I recommend it over any other django appengine ORM I've tried. I think it can help you with some of your issues. The blog and discussion group is very

problems deserializing json object

2010-01-05 Thread Malcolm MacKinnon
I'm having difficulty deserializing a json object. I'm using django appengine patch, so the models aren't the same as django's, but they are very similar: class Cust(db.Model): custno = db.StringProperty(required=True) company = db.StringProperty(required=True) contact =

Re: problems deserializing json object

2010-01-06 Thread Malcolm MacKinnon
Thanks Daniel, I'll give that a try. On Wed, Jan 6, 2010 at 2:02 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Jan 6, 1:54 am, Malcolm MacKinnon <mmack3...@gmail.com> wrote: > > I'm having difficulty deserializing a json object. I'm using django > > appengine

Re: How To Populate A Dropdown List

2011-02-09 Thread Malcolm MacKinnon
I forgot to initialize the form in my view. See views.py below. Here's some sample code that works for me: in models.py class InventoryCloseouts(models.Model): prim = models.IntegerField(primary_key=True, db_column='PRIM') # Field name made lowercase. items =

Re: How To Populate A Dropdown List

2011-02-09 Thread Malcolm MacKinnon
n render_to_response('order_closeouts.html', {'forms':forms}, context_instance = RequestContext(request)) in order_closeouts.html {{forms.items}}<--Select Item from complete list On Wed, Feb 9, 2011 at 9:58 PM, Malcolm MacKinnon <mmack3...@gmail.com>wrote: > > > On We

Re: sqlite3 database encrytion for Django.

2017-05-05 Thread Malcolm MacKinnon
I suggest you consider using keyzar and django-encrypted-fields. Here's the code: https://github.com/defrex/django-encrypted-fields/ On Fri, May 5, 2017 at 11:51 AM, wrote: > Hello everyone, > > I want to encrypt my sqlite3 database such that it cannot be accessed >

Odd problem with Incorrect padding error in Oauth2 flow using Django >=2.0

2018-06-10 Thread Malcolm MacKinnon
Using python 3.55 and django 1.10 in my Oauth2 flow (with django_openid_auth in my installed apps), my code executes without any errors. But in a python 3.55 and django >=2.0 environment, I get the following error: Error at /openid/login/ Incorrect padding I've spent two days searching for

Re: deploy django on AWS

2019-06-30 Thread Malcolm MacKinnon
I use this: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html There's a lot more to learn, especially if you want to connect to a database like postgres, but this is a good place to start. On Sun, Jun 30, 2019 at 9:52 AM Anirudh Jain wrote: > > You can use

Re: VIRTUAL ENVIRONMENT

2020-04-10 Thread Malcolm MacKinnon
I'm not sure what you mean by compulsory, but most serious django programmers do use the virtual environment so that they don't run into errors among dependencies. For example, some versions of django may not be compatible with python 3.2, etc. There are different tools available to use a virtual

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Malcolm MacKinnon
In your success function, you are assigning the variable e = 'OK', so in your if statement, it appears to throw an error. If you change it to if(e=="OK"), does it work? Note the two equal signs, == . On Sun, Oct 25, 2020 at 3:29 PM Walter Randazzo wrote: > I tried with no luck. When i remove it

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Malcolm MacKinnon
I'm not a JS expert, but is your success function defined properly? if(e="OK") vs. if(e=="OK") On Sun, Oct 25, 2020 at 2:06 PM Walter Randazzo wrote: > > Hi buddies, I have a POST request from ajax. At the backend some records are > updated in the django view, this is done fine but an error

Re: Django does't send email on the remote server

2021-03-03 Thread Malcolm MacKinnon
This might help: https://dev.to/abderrahmanemustapha/how-to-send-email-with-django-and-gmail-in-production-the-right-way-24ab On Wed, Mar 3, 2021 at 8:57 PM AMRIT SHAHI wrote: > > is that your site backend is fully backend > > On Tue, Feb 23, 2021 at 3:51 PM Sergei Sokov wrote: >> >> I am

Re: Import issue

2021-10-01 Thread Malcolm MacKinnon
Is your module included in your installed apps in the settings.py file? On Fri, Oct 1, 2021 at 8:09 PM Sophia Iroegbu wrote: > > I noticed that each time I download a python package and import it. > It imports, it works but once I run my code it runs into an error. > > Error message:

Re: Static files is not loading while deploying the project to AWS ec2

2022-11-05 Thread Malcolm MacKinnon
Using elastic beanstalk, I run the command manage.py collectstatic in a .config file during deployment. The config file is located in the .ebextensions folder. In settings.py STATIC_URL = '/static/' STATIC_ROOT = 'static'