Announcing Django-Zappa - Serverless Django on AWS Lambda + API Gateway

2016-02-08 Thread Rich Jones
here: https://gun.io/blog/announcing-zappa-serverless-python-aws-lambda/ Watch a screencast here: https://www.youtube.com/watch?v=plUrbPN0xc8&feature=youtu.be And see the code here: https://github.com/Miserlou/django-zappa Comments, questions and pull requests are welcome! Enjoy, Rich Jones

Re: FieldError, But Only In Production

2014-02-14 Thread Rich Jones
No virtualenv on the machine, so that's the same, and then mod_wsgi was version 2.6 and so is Python. No matter now, but the mystery remains. On Fri, Feb 14, 2014 at 1:34 AM, Tom Evans wrote: > On Fri, Feb 14, 2014 at 12:38 AM, Javier Guerra Giraldez > wrote: > > On Thu, Feb 1

Re: FieldError, But Only In Production

2014-02-13 Thread Rich Jones
Said fuck it, gave up and used Nginx + Gunicorn. We're good now. No idea what the hell was happening, but this works now. Humbling to realize how little I know about the ORM internals. Thanks for listening, R On Thu, Feb 13, 2014 at 3:13 PM, Rich Jones wrote: > > > Please sh

Re: FieldError, But Only In Production

2014-02-13 Thread Rich Jones
cation does _run_ with Apache, it is only on calls related to user.get_profile() which causes the problem. Is there anything else you'd need to know? On Thu, Feb 13, 2014 at 3:01 PM, Tom Evans wrote: > On Thu, Feb 13, 2014 at 6:00 AM, Rich Jones wrote: > > Hey guys! > >

Re: FieldError, But Only In Production

2014-02-13 Thread Rich Jones
Ah, okay, noted, although I believe this may be a bug in Django itself but want to exhaust everything before I open a ticket. -- 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

Re: FieldError, But Only In Production

2014-02-13 Thread Rich Jones
Since this seems to happening at a pretty deep level, would it be uncouth to kick this over do django-dev? On Thu, Feb 13, 2014 at 9:17 AM, Rich Jones wrote: > Yes, all of these things worked just fine. The code is in the _same > location_ on the _same machine_ with the _same settings_ a

Re: FieldError, But Only In Production

2014-02-13 Thread Rich Jones
is trying to put user into a field > instead of treating it as a table. > Basic sanity checks : > - is the djagno versions on both production and local same ? > - same for wsgi and apache ? > - syncdb worked fine ? > > V. > > > > On Thu, Feb 13, 2014 at 11:30

FieldError, But Only In Production

2014-02-12 Thread Rich Jones
Hey guys! I've got a real stumper here. Pulling my hair out over this one, would really appreciate some options! Anywhere in my application that calls user.get_profile() causes a FieldError.. but only in production. I'm using WSGI and Apache. When I run locally with: python manage.py run

Deverifying a URLField

2012-01-24 Thread Rich Jones
Hello, all! I have a small conundrum I could use a hand with. I have a deployed Django application with a Model which has a URLField: project_homepage = models.URLField('Project Homepage', blank=True) and a ModelForm to create the parent object. Currently, the application checks to see if this

IOError: request data read error

2011-11-21 Thread Rich Jones
Uh-oh, some of you are saying, not this one again!.. I've read all of the posts on this error that I could find, but I'm still not finding anything useful. Can somebody please explain what this error is all about? It happens only on the POST requests to one of my pages. It isn't a page which has a

Earn 25$ to add Email Notification support to Django-Userena

2011-10-05 Thread Rich Jones
Hey all! I've opened a 25$ gig on Gun.io to add Email Notification support to Django-Userena. First person to get a pull request accepted will earn the money! http://gun.io/open/11/add-email-notifcations-to-django-userena-umessages Thought you guys might be interested in earning a quick bit of m

Re: What are the advantages of Model inheritance?

2011-06-23 Thread Rich Jones
Even ignoring the select_related then - the fact is that user.post_set works and user.betterpost_set won't work, seemingly as the result of using model inheritance. Perhaps I could get all of the posts (post and betterposts) and then filter by time? Does that make sense / is there a way to do tha

Re: What are the advantages of Model inheritance?

2011-06-23 Thread Rich Jones
the below example you pasted > is invalid code (i.e. you need to add a proxy _meta??). > My apologies if I'm wrong though, as I have never encountered a need to do > this before, and just going off vague memory. > Cal > On 23/06/2011 19:24, Rich Jones wrote:Other than the c

What are the advantages of Model inheritance?

2011-06-23 Thread Rich Jones
Other than the convenience of writing them, I can't seem to find any advantages of using model inheritance. Please allow me to explain the trouble I am having with an example. Suppose, class Post(models.Model): title = models.CharField(max_length=200) user_owner_id = models.ForeignKey(Use