Re: Django confusing issues DRIVING ME MAD. Please someone help?

2013-06-14 Thread sparky
*thanks Nikolas!!!* you help me resolve the issue. no idea why it effects reverse but my log file show an error with some middleware and resloved that issue and for some reason all urls started working again! On Friday, June 14, 2013 6:45:08 PM UTC+1, sparky wrote: > > Hi, I'm won

Re: Django confusing issues DRIVING ME MAD. Please someone help?

2013-06-14 Thread sparky
Ok I have no idea whats happening, I took your advice and added the code below. then on production get_absolute_url starting working. I took it out and it stopped again. get_delete_url does not work either until I add in your debugging again WTF! def get_absolute_url(self): import

Re: Django confusing issues DRIVING ME MAD. Please someone help?

2013-06-14 Thread sparky
Hi Nikolas, - Guessing from the stack trace you provided, either "reverse" or "str" are None (since those are the only two function calls on that line). yes that will be the issue, but why is it none in production and works (has a value) in django server? -- You received this message

Django confusing issues DRIVING ME MAD. Please someone help?

2013-06-14 Thread sparky
Hi, I'm wondering if anyone can help me with the following issues it's really confusing me *(and others who have tried to help)* The question is here: http://stackoverflow.com/questions/17113479/django-get-absolute-url-empty-in-production *But the summery is. * I'm using {{

Django Python Understanding Classes with an example

2013-04-22 Thread sparky
I'm just learning Python and Django. **Could someone tell me where I'm going wrong with below?** What I want to do is something like this csvobject = CSVViewer(file) rows = csvobject.get_row_count() This is what I have so far. Remember this is all new to me so I'm looking for a an

I have searched and searched for a CSV Importer that does the following.

2013-04-22 Thread sparky
I have searched and searched for a CSV Importer that does the following... * Imports a CSV Allows users to then select the header that corresponds to the model.* But, honest nothing exists I can find, anyone know of any app out there in Django that does this I could have missed? As close as I

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread sparky
wow, some good advice here thanks. I tested with RabbitMQ and its fast, all I can say is it seems to be SQS. My advice don't use it! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread sparky
Maybe SQS is the issue here have a read: http://dataexcursions.wordpress.com/2011/12/15/amazon-sqs-vs-rabbitmq/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread sparky
One last thing to add, the task it's self does not seems to be the issue, 'got message from broker' is the 3-4 second wait I can see. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread sparky
Thanks for the responses it's very helpful. You are right, I won't have 100,000 tasks every seconds it's just a huge batch I have to send which at the moment would be 100,000 tasks. But just to be clear: Loop each contact in my DB: TASK: SEND 1 SMS FOR CONTACT I'm use Amazon SQS for the

Re: IDE to practice django template language

2013-04-20 Thread sparky
I second PyCharm, I'm new to Django too it works well for me :) On Friday, April 19, 2013 2:03:19 AM UTC+1, Srinivasa Rao wrote: > > Hi, I am new to this djnago, can you suggest any > development environment to practice template language. thanks,Srini -- You received this message because you

How many workers do you run on one machine using django celery?

2013-04-20 Thread sparky
Quick question, just so I can compare, I would really like to hear other devs experience. *How many workers do you run on one machine using django celery?* I'm running 3 workers on an EC2 small instance. It takes around 5 seconds to complete 1 task running all 3 workers, does this sound right

Re: django-sagepay example

2013-04-10 Thread sparky
on. > > Services like Authorize.Net are the way to go. > > > On Tue, Apr 9, 2013 at 7:54 PM, Mario Gudelj <mario....@gmail.com > > wrote: > >> Hey sparky, >> >> I hope this helps: >> >> Create your checkout form and if the

Re: django-sagepay example

2013-04-10 Thread sparky
wow a million times thank you! just what I needed to get going. :))) On Tuesday, April 9, 2013 5:27:12 PM UTC+1, sparky wrote: > > I want to use > django-sagepay<https://github.com/timetric/django-sagepay/tree/master/django_sagepay>. > > However, it doesn't seem

django-sagepay example

2013-04-09 Thread sparky
I want to use django-sagepay. However, it doesn't seem to have any examples or test.py that I can learn from. being a newbie I need docs! Does anyone know of any examples of use? I'm very familiar with sagepay, just

Good tutorials on celeryd as a daemon needed?

2013-04-08 Thread sparky
Hi Django people, I'm finding it difficult to get my head around running celeryd as a daemon from the docs on Ubuntu. Does anyone know of any good tutorials or reading to help me along? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django save method in infinite loop, code review?

2013-03-01 Thread sparky
right *OK* now I get it. see, just needed a little push in the right direction... so I moved super up I then changed to use resized_image = Image.open(self.image) I then changed *self.image.save('%s.jpg' % suf.name, suf, save=False) *and* BOOM! *all working!* Thanks so much, this is so

Re: Django save method in infinite loop, code review?

2013-03-01 Thread sparky
e... img_file = urllib.urlopen(self.image.url) > On Friday, March 1, 2013 2:52:23 PM UTC, Sergiy Khohlov wrote: > > move your super up > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > On Fri, Mar 1, 2013 at 4:48 PM, sparky <cfsp...@

Django save method in infinite loop, code review?

2013-03-01 Thread sparky
Django newbie :) I'm wondering if you *kind people* could help me work out how to solve a little issue I'm having :) I'm using *S3 storage* via the package django-storages . The following code gets stuck in an endless loop. I know just enough

Re: Django community, is it active?

2012-12-18 Thread sparky
thanks Nik, On Tuesday, December 18, 2012 9:36:42 PM UTC, sparky wrote: > > I'm hoping this is the right place to ask such questions, please forgive > me if not. > > I'm making a real time investment in learning another server side > language. I have 10 years ColdFusion,

Django community, is it active?

2012-12-18 Thread sparky
I'm hoping this is the right place to ask such questions, please forgive me if not. I'm making a real time investment in learning another server side language. I have 10 years ColdFusion, 5 years PHP, JAVA. Having never touched Python let alone the framework Django, for the past 4 weeks I

File Download

2009-01-03 Thread Sparky
Hello. This is probably a silly question but I have files being stored onto a server and strangely getting them there was very easy but how can I get them back down? Thank you for your patience in advance, Sam --~--~-~--~~~---~--~~ You received this message

Re: PIL 1.1.6, jpeg decoder error, going insane...

2008-06-26 Thread sparky
Evert, Thank you for your help, I REALLY appreciate anyone giving me their time, like this. I have fixed it. The issue was to do with the library path and the way that Linux (Fedora Core 3) runs and is configured.I've been running a Linux dedicated server for a while but had no previous

PIL 1.1.6, jpeg decoder error, going insane...

2008-06-25 Thread sparky
Hello all. I am writing a site that has profile functionality which uses the sorl.thumbnail app. When I try to view a single user profile the image (a jpeg using sorl.thumbnail) works, beautifully. However, when I try to view all user profiles I get the following error: IOError at

Initial Querysets forms, validation

2008-05-01 Thread sparky
Hello All, I have an app that implements messaging between users, and I want to offer the ability to attach objects to messages. I also want the message recipients to be restricted (it is a ModelChoice Field, and should exclude the current user, rather than be Users.objects.all()). I can get

Formwizard Initial Data

2008-04-21 Thread sparky
Hello All, I am writing an app that includes Messaging and I would like to give users the ability to attach other system objects to the messages that they send. The FormWizard stuff is fabulous, but I would like to limit a queryset used in one of the forms here are my Mail forms: class

Re: File Upload, form issue

2008-04-16 Thread sparky
, though. On Apr 16, 1:41 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 6:55 AM, sparky <[EMAIL PROTECTED]> wrote: > > > Hello all, > > > I have a slightly unusual requirement: I want to use a FileField in a > > form but

File Upload, form issue

2008-04-16 Thread sparky
the request.FILES parameter is empty, so the form fails validation, any suggestions as to where I'm going wrong, thanks. sparky the form: class SubmissionForm(forms.Form): title = forms.CharField(max_length=100) description = forms.CharField(widget=forms.Textarea) content = forms.FileField

Re: newforms: MultiValueField and MultiWidget

2007-04-19 Thread sparky
On Feb 19, 10:18 pm, "Justin Findlay" <[EMAIL PROTECTED]> wrote: > On Jan 25, 1:16 pm, "canen" <[EMAIL PROTECTED]> wrote: > > > Answering my own question: > Thanks for the example! I created another, but it uses initial data, and an object representing the info. class Postal(object): def