Re: max recursion depth exceeded

2011-01-13 Thread Justin Murphy
Hi vamsy, Can you post your urls.py files? Perhaps you have a recursive inclusion. Example: myapp.urls.py patterns = urlpatterns('', url(r'^/', include('myapp.urls') # this will result in a recursive inclusion. ) -Justin -- You received this message because you are subscribed to the Goog

Re: empty DateTimeField?

2011-01-13 Thread Justin Murphy
Good to hear! Thats a common problem; you need to remember that your models might not reflect the constraints of the database once you make changes. Take a look at South for database migrations. It's not too hard to use once you get used to the workflow. http://south.aeracode.org/ -Justin --

Re: Meaning for this error

2011-01-13 Thread Justin Murphy
Are you using the Django python shell? That error means that your environment doesn't point to a settings file, which is handled by the Django shell. Execute this command within your project directory (wherever you have the manage.py file): python manage.py shell It will open a Python interpre

Re: Class based views and form processing

2011-01-12 Thread Justin Murphy
Thanks, Skylar. You're right, it worked. Now I am just shaking my head and saying "next time, I'll just read the source..." -Justin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.

Re: Class based views and form processing

2011-01-12 Thread Justin Murphy
Hi, I still haven't found an answer to this problem so I am shamelessly bumping the last updated date. Thanks in advance for your help! -Justin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@

Re: empty DateTimeField?

2011-01-11 Thread Justin Murphy
Did you create a new DB and run syncdb or is it the same DB based on the old schema? -Justin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, se

Re: empty DateTimeField?

2011-01-11 Thread Justin Murphy
Yes. A quick read of the Model Field Reference docs would have answered this. my_date = models.DateTimeField(blank=True, null=True). http://docs.djangoproject.com/en/dev/ref/models/fields/ -Justin -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Class based views and form processing

2011-01-10 Thread Justin Murphy
Thanks, Ɓukasz. I looked into overriding that method too, but it seems like there should be a cleaner way. I almost feel like the ``ModelFormMixin`` should have an API similar to a ``ModelAdmin`` where one could override a ``save_model()`` method on the subclass. The ``form_valid()`` method doe

Re: Curious 500 errors

2011-01-10 Thread Justin Murphy
Hi Conor, You might be running into a CSRF protection error. Django expects a CSRF token for all POST requests and the MailChimp webhooks aren't sending one. You will need to decorate your views as @csrf_exempt in order for them to work. Just make sure that you do some extra validation on your par

OpenToken Spec & Single Sign On

2011-01-06 Thread Justin Murphy
Hello group, Does anybody have experience with the OpenToken specification? It is an authentication token that some (not many) applications use for SSO. I found existing Perl module that encrypts and decrypts the token but I need a Python version to use in a Django project. Not much luck finding

Re: Django-Facebook (yet another thread)

2010-12-15 Thread Justin Murphy
Facebook published a sample GAE application. The code is pretty straightforward and you can pretty much use the same concepts in your Django code. I would think that the signed request logic would work best in middleware. https://github.com/facebook/runwithfriends -Justin -- You received this m