__init__() got an unexpected keyword argument 'max_digits'

2007-06-28 Thread adamjspooner
Hello all, I'm adding a DecimalField to a preexisting app: foo_bar = models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True, default=0.0, unique=True) I've added a row in the table: foo_bar DECIMAL(5,2) UNI NULL; But when I try to syncdb or even validate the app I get: my_

Re: Webservices using Django

2006-10-24 Thread adamjspooner
Thanks Jure. I'll start looking at the IBM DeveloperWorks site. Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsub

Re: Webservices using Django

2006-10-18 Thread adamjspooner
> > SOAP is what I was after. If I used SOAPpy could I still import the > > django model stuff in the SOAP service script? > > Take a look at this ticket: http://code.djangoproject.com/ticket/552 > > It works quite well if you want part of your site to be able to do SOAP also. Has anyone used thi

Re: Need help understanding Custom Views

2006-10-02 Thread adamjspooner
> Do you mean that you do not understand how to pass the data to the > template for display, or something else? Waylan, I mean I don't understand how to pass the data from my Django app to my PHP webservice and then let the user know that everything went ok or post errors if it didn't. I studie

Re: Need help understanding Custom Views

2006-10-02 Thread adamjspooner
> Do you mean that you do not understand how to pass the data to the > template for display, or something else? Waylan, I mean I don't understand how to pass the data from my Django app to my PHP webservice and then let the user know that everything went ok or post errors if it didn't. I studie

Re: Need help understanding Custom Views

2006-09-29 Thread adamjspooner
Adrian, I guess what I don't understand is how to use GET and POST...and what exactly they are GETting and POSTing...and what to name things and how to get those named things in the view to get to a template. I want to learn the basics and apply them. Gabor, I understand the "Hello World!" e

Need help understanding Custom Views

2006-09-29 Thread adamjspooner
I don't understand writing my own views. I have little (more like no) experience in using POST and GET and the lot. I've used generic views to death in order to beat having to use custom views, but I'm now at the point where I must write my own view (to access a PHP web service). Does anyone know

Re: HTTPS protocol

2006-09-29 Thread adamjspooner
I'm in the same boat. I've started work on some e-commerce in Django and have been doing some research on this. As a side-note, I'm connecting to a web service and have had trouble doing that in Python (though Mark Pilgrim's DIP was a huge help in wrapping my brain around this). I've ended up hook

Re: Need help getting Python code into Django App

2006-09-05 Thread adamjspooner
> Hey Spoon, > > You're asking a lot of disparate questions here, but the basic thing > to understand is that a Django view is *just Python code*. A view is > just a Python function that returns an HttpResponse object. You can > put whatever you want in there; you can do whatever you need to do >

Need help getting Python code into Django App

2006-09-05 Thread adamjspooner
Ok, so I posted this request in a different topic and never heard a peep, so I thought I'd try it in it's own post. I'm a newb to Django. I love it because I love Python. I'm also a semi-newb to Python. I've written some cool stuff in Python that I like, but can't seem to make the connection b

Re: displaying thumbnails in the admin

2006-09-01 Thread adamjspooner
Oh yeah, on this note...do I need to override the default get__url() for this? I tried using it, and it returns a relative url instead of an absolute url (MEDIA_ROOT and MEDIA_URL are set in settings). --~--~-~--~~~---~--~~ You received this message because you a

displaying thumbnails in the admin

2006-09-01 Thread adamjspooner
Newb question. I'm using the PIL to create thumbnails of page templates for a simple CMS that I'm building. The function is written - Python isn't my problem. My problem is how to go about adding the thumbnails to the view. Do I use foo.show() somewhere, somehow in a view? Do I make a templat