Re: Multiple stackinline all sharing relation need assistance

2012-12-06 Thread Andrew Macgregor
Hi, I think you may need to add a queryset() method on your InlineModelAdmin and filter by user. https://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-options You can use the example from ModelAdmin: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.ad

Re: Limiting the entry that loaded in django admin.

2012-12-03 Thread Andrew Macgregor
On 04/12/2012, at 12:13 PM, bolang wrote: > Hi all, > need some input here. > > I have a site with > 15000 images, using django photologue. > > When we create a Post (that has Images field in it) from django admin, > all of the images will be loaded in a dropdown. > > Before this, it was not c

Re: Easiest way to access MySQL from Django on Mac OS X?...

2012-09-23 Thread Andrew Macgregor
Hi Fred, I've also found HomeBrew to be useful. Here's a good setup guide: http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/ Cheers, Andrew. On Monday, September 24, 2012 2:02:37 AM UTC+8, Fred Stluka wrote: > > Resolved this on my own. Here'

Re: Setting an unusable password on an existing user

2012-09-21 Thread Andrew Macgregor
AFAIK you can set it to ! in the admin interface. Don't use the change password form, just enter ! into the password field on the Auth User table. I believe this will cause has_usable_password() to return False. Cheers, Andrew. On Friday, September 21, 2012 2:16:22 PM UTC+8, nav wrote: > > Hi,

Adding permalinks from get_absolute_url to serialized output

2008-09-24 Thread macgregor
I have a view that uses django.core.serializers to output the latest 3 entries in my app in json. This works great but I would like to add permalinks for each item in the queryset rather than regex the date and slug fields together with javascript to build my url. I have get_absolute_url set up a

Re: Template help for new django.contrib.comments

2008-09-22 Thread macgregor
> either. > > On Sep 22, 5:25 pm, macgregor <[EMAIL PROTECTED]> wrote: > > > I have the new Comments app installed and working and want to modify > > django/contrib/comments/templates/comments/posted.html to include a > > link to the content object that a comment

Template help for new django.contrib.comments

2008-09-22 Thread macgregor
I have the new Comments app installed and working and want to modify django/contrib/comments/templates/comments/posted.html to include a link to the content object that a comment gets added to. For example: If someone posts a comment on a blog entry, the comment gets added and then the user is re

Re: Deployment help needed Django + Interchange

2008-09-06 Thread macgregor
oject and send http://www.example.com/testimonials/ to the testimonials app inside my project. On Sep 5, 6:47 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Have you read the mod_python hosting documentation at all? > > http://docs.djangoproject.com/en/dev/howto/deployment/modpytho

Deployment help needed Django + Interchange

2008-09-05 Thread macgregor
I'm working on a site that runs on Interchange (http:// www.icdevgroup.com/) and I am wanting to add a Django-powered blog and testimonials apps. Our Interchange setup uses mod_rewrite to send page reqests through a perl/cgi script which processes the pages and then passes them on to Apache to se