iPhone authentication in Django?

2009-07-28 Thread R C
Hi, I'm working on an iPhone app that will access a Django-powered website and pull in feeds. Some of those feeds will require authentication. My site uses django-registration + django-facebookconnect to allow users to log in. Does anyone know how to handle an iPhone user logging in? Any thoug

Optional user foreign key - for tracking viewing history

2009-07-15 Thread R C
Hi, I would like to track the viewing history for users to my site to see which blog entries are being viewed by whom. And I would like to track the user who is viewing it *IF* they are logged in, otherwise I would like to ignore the user field (see models below) [models.py] class Entry(models.

Re: django-facebookconnect

2009-06-26 Thread R C
nks On Jun 26, 3:01 pm, R C wrote: > Well I have solved part of my problem: > > There are updated installation > instructionshttp://code.google.com/p/django-facebookconnect/issues/detail?id=1 > > But the problem remains: > When I click on the facebook co

Re: django-facebookconnect

2009-06-26 Thread R C
/profile/ (I have replaced my site with xxx) How do I get the facebook login box to popup and for that to create accounts, etc? On Jun 26, 2:04 pm, R C wrote: > Hi Everyone, > > I've been trying to get the django-facebookconnect (http:// > code.google.com/p/django-face

django-facebookconnect

2009-06-26 Thread R C
Hi Everyone, I've been trying to get the django-facebookconnect (http:// code.google.com/p/django-facebookconnect/) app working with my site. The problem I'm having is that I don't know how to "plug-in" the views and urls for this plugin I have "hacked" it by simply copying the urls.py from the

Pyfacebook + Dreamhost

2009-06-25 Thread R C
Hi Everyone I cannot for the life of me get Pyfacebook to work with Dreamhost. It is a problem with the middleware and the fact that at Dreamhost you have to use fcgi (instead of mod_python for example). Any help would be greatly appreciated ERROR MESSAGE BELOW ImproperlyConfiguredPython

Re: order by count of related object

2009-06-17 Thread R C
Thanks, it worked! Both of you have been very helpful. On Jun 17, 5:04 pm, Alex Gaynor wrote: > On Wed, Jun 17, 2009 at 10:00 AM, R C wrote: > > > Thanks for your fast reply > > > I realize that there is no "count" field in my article model.  However >

Re: order by count of related object

2009-06-17 Thread R C
10 2 20 3 30 On Jun 17, 3:47 pm, Daniel Roseman wrote: > On Jun 17, 1:12 pm, R C wrote: > > > > > Hi, > > > I would like to be able to select objects and order them by the count > > of a related field > > > For example, I hav

order by count of related object

2009-06-17 Thread R C
Hi, I would like to be able to select objects and order them by the count of a related field For example, I have 2 models: class Author(models.Model) name = models.Charfield(max_length=20) class Article(models.Model) author = models.ForeignKey(Author) content = models.TextField()

Need help with mod python

2008-10-23 Thread R C
HELP PLEASE I keep getting this error: MOD_PYTHON ERROR ProcessId: 29055 Interpreter:'mysite.com' (this has been changed by me) ServerName: 'mysite.com' DocumentRoot: '/var/www/' URI:'/admin' Location: '/' Directory: None Filename: '/var/www/admin'

django-basic-blog

2008-10-07 Thread R C
I'm very, very new to django I tried installing the basic-blog application (http://code.google.com/p/django-basic-apps/source/browse/#svn/trunk/ blog) When I run: python manage.py runserver I get an error (in red font): Error: No module named basic the blog folder is in: /home/myusername/local