Re: syncdb fails for auth and other "built-in" apps

2007-06-05 Thread Deryck Hodge
On 6/4/07, Psamathos <[EMAIL PROTECTED]> wrote: > Anyone with an idea what this could be? > > Error: Couldn't install apps, because there were errors in one or more > models: > django.contrib.admin: > django.contrib.sites: > django.contrib.contenttypes: > django.contrib.sessions: > django.con

Re: robots.txt?

2007-06-05 Thread Deryck Hodge
On 6/5/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > > SetHandler None > > > Can you do the same for single files? > You can, and probably would be better than the mod_rewrite overhead in this case. Cheers, deryck --~--~-~--~~~---~--~~ You received this m

Re: Django + mod_python

2007-06-05 Thread Deryck Hodge
On 6/5/07, Gerard M <[EMAIL PROTECTED]> wrote: > > Hello dear django users community. > I have a little question, I've been digging for the past weeks trying > to get together all the technologies I need to host a django powered > app, and this is what I've managed to do: > I'm running Linux Ubunt

Re: Settings object has no attribute 'ROOT_URLCONF': what does this message mean?

2007-06-06 Thread Deryck Hodge
On 6/6/07, ilDave <[EMAIL PROTECTED]> wrote: > AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF' > > > What's wrong with my configuration? It seem that python can't find the > urls.py file, but it is in the right place and everything is readable > by apache... > Your settings file

Re: Settings object has no attribute 'ROOT_URLCONF': what does this message mean?

2007-06-06 Thread Deryck Hodge
On 6/6/07, ilDave <[EMAIL PROTECTED]> wrote: > > The line is there, inside the settings.py > It looks like > ROOT_URLCONF = 'testdrorys.urls' > ('testdrorys' is the name of my project) > and the file urls.py is in the same directory as settings.py > > I'm getting confused... On a second look, giv

Re: Event framework ?

2007-06-08 Thread Deryck Hodge
On 6/8/07, Tarek <[EMAIL PROTECTED]> wrote: > I've seen through Google that Django used to have an event framework > (http://code.djangoproject.com/ticket/421). > But it seems deprecated. > > What should I use now ? Is there any event framework avalaible > anymore ? > > If yes, is there somewhere

Re: virtualhosts, mod_python, and Django's cache

2007-06-21 Thread Deryck Hodge
-per-site-cache. If you're not using caching site-wide, explain more about how you're using caching and how it's getting confused. Cheers, deryck -- Deryck Hodge Lead Developer, Product Development Washington Post.Newsweek Interactive --~--~-~--~~~---

Re: Debugging production site.

2007-08-14 Thread Deryck Hodge
in addition to the EMAIL_HOST, etc. settings? If so, I'd open the Python interpreter and try to run django.core.mail.mail_admins manually to see what errors. If not obviously errors, start looking through server logs. Cheers, deryck -- Deryck Hodge Lead Developer, Product Development Washington Po

Re: management.flush, load_data etc. what to use instead?

2007-08-16 Thread Deryck Hodge
/django-developers/msg/752493e7dd47f937 A work in progress still, I believe, so possibly some changes yet to come. See the parent thread for all the details. Cheers, deryck -- Deryck Hodge Lead Developer, Product Development Washington Post.Newsweek Interactive --~--~-~--~~~---

Re: How to clean the cache completely?

2007-09-20 Thread Deryck Hodge
he other cache backends enough to know about this method for them. Cheers, deryck -- Deryck Hodge Lead Developer, Product Development Washington Post.Newsweek Interactive Samba Team http://www.devurandom.org/ --~--~-~--~~~---~--~~ You received this message because yo

Django Intern/Contract Work for WPNI

2006-11-16 Thread Deryck Hodge
like more info, please contact me directly -- deryck (at) samba (dot) org. I realize the situation may not suit many here, so if you know someone who might have the skills and be interested, feel free to pass along my note. Cheers, deryck -- Deryck Hodge http://www

Re: Authentication and User DB

2006-12-15 Thread Deryck Hodge
d on your successful authentication from another source, but once that's done, the auth middleware continues to work as you'd expect it to. Cheers, deryck -- Deryck Hodge http://www.devurandom.org/ --~--~-~--~~~---~--~~ You received this message becaus

Re: serialization question

2006-12-18 Thread Deryck Hodge
On 12/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I use a generic detail view to show user info. I want to also be able > to return that info via ajax, but I'm having trouble getting ALL the > user stuff. Here's the view: > > def view_profile(request, slug, js=''): > from django.vi

Re: How to order alphabetically

2007-01-18 Thread Deryck Hodge
On 1/18/07, conrad22 <[EMAIL PROTECTED]> wrote: I might be missing something in the documentation here, but is there an obvious/easy way to call a list of objects alphabetically? All that 'ordering' does in a Meta class on a model is order chronologically, no? with thanks No, it orders by wh

Re: How to order alphabetically

2007-01-18 Thread Deryck Hodge
On 1/18/07, conrad22 <[EMAIL PROTECTED]> wrote: Deryck, I thought it ought to be along those lines, but I can't seem to get it working. I'm trying to use: org_name = models.CharField ('Organisation', maxlength = 200) class Meta: ordering = 'org_name', But still sorts chronologically

Re: json serialization without certain fields and with extra information?

2007-02-28 Thread Deryck Hodge
On 2/28/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > > hey everyone, > > > 1. is there any way to serialize models and remove some fields? I.e. I > would like to serialize User for example, but I definitely don't want > the email to be there. > The serializer in trunk has a fields opti

Re: Send mail with gmail smtp

2007-04-02 Thread Deryck Hodge
On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Has anyone successfully used gmail's smtp to send mail? I've been > trying, but so far no luck. I've added this to my settings.py: > > EMAIL_TLS = True > EMAIL_HOST = smtp.gmail.com > EMAIL_HOST_PASSWORD = mypassword > EMAIL_HOST_

Re: Django performance and logging

2007-04-08 Thread Deryck Hodge
r understandable reasons. It would be interesting to actually test the impact of a logger, though, just to know for sure. Cheers, deryck -- Deryck Hodge Web Developer, Product Development Washington Post.Newsweek Interactive http://www.devurandom.org/ --~--~-~--~~~-

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-10 Thread Deryck Hodge
On 4/10/07, Steve Bergman <[EMAIL PROTECTED]> wrote: > And, OK, I'll fess up and say that I want to think in python and not > have to switch gears back and forth between python and javascript. ;-) To me, for all the other arguments people make, this is the real issue: wanting to avoid writing Jav

Re: Django with sqlite3

2006-07-20 Thread Deryck Hodge
ptions are: 'ado_mssql', 'mysql', > 'postgresql', 's > qlite3' Hi. You need to install the python module pysqlite2. If using a package manager, it's usually called something like python-pysqlite2. Cheers, deryck -- Deryck Hodge

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Deryck Hodge
icant plus and much should be made of it. In a previous job, I worked with a Rails developer, and I was always put off by the clumsy way in which he had to run multiple apps. The single-project-with-multiple-apps or multiple-sites-with-core-apps model really mirrors real world development

ManyToMany Self Relationships pre Magic Removal

2006-07-28 Thread Deryck Hodge
Is it possible to do a self referencing manytomanyfield pre magic removal? Something like: class Url(models.Model): location = models.URLField() referrers = models.ManyToManyField('self', blank=True, null=True) Cheers, deryck -- Deryck Hodge

Re: ManyToMany Self Relationships pre Magic Removal

2006-07-28 Thread Deryck Hodge
On 7/28/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 7/28/06, Deryck Hodge <[EMAIL PROTECTED]> wrote: > > Is it possible to do a self referencing manytomanyfield pre magic > > removal? > > No, I don't believe we supported self-referencing m

Re: syncdb without shell access

2006-08-09 Thread Deryck Hodge
out = commands.getoutput("some command") print 'Content-type: text/plain\r\n' print out I ran this as cgi and could run commands as needed and see their output. Like Kenneth says, not ideal for serious development, but for a personal site it's not bad. And now that

Re: SetHandler for admin media directory

2006-08-10 Thread Deryck Hodge
ly need the quotes on the second path of the Alias directive. This smells to me of a faulty RewriteRule, though. Not sure, but I'd drop that and give it a try again. Cheers, deryck -- Deryck Hodgehttp://www.devurandom.org/ Web Developer, Naples News

Anyone at LinuxWorld next week?

2006-08-11 Thread Deryck Hodge
assuming there is space. Cheers, deryck -- Deryck Hodgehttp://www.devurandom.org/ Web Developer, Naples News http://www.naplesnews.com/ Samba Teamhttp://www.samba.org/ --~--~-~--~~~---~--~~ Yo

Re: Anyone at LinuxWorld next week?

2006-08-12 Thread Deryck Hodge
On 8/11/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/11/06, Deryck Hodge <[EMAIL PROTECTED]> wrote: > > Anyone planning to attend LinuxWorld next week? I'll be there doing a > > tutorial on Monday, but I have free time Monday night and Tuesday > &

Re: Anyone at LinuxWorld next week?

2006-08-14 Thread Deryck Hodge
On 8/12/06, Deryck Hodge <[EMAIL PROTECTED]> wrote: > I put in for space for a BOF yesterday, but I haven't heard anything > yet. I don't know if it being such short notice will be a problem or > not. When I hear something, I'll let you know. BOFs don't star

Re: A google search engine front end in django - Tutorial

2006-08-14 Thread Deryck Hodge
ns, but the JavaScript API is very nice, too, if you don't mind a client-side implementation. Cheers, deryck -- Deryck Hodge http://www.devurandom.org/ Web Developer, Naples News http://www.naplesnews.com/ Samba Team

Re: check for yourself (((;

2006-08-17 Thread Deryck Hodge
em? It's not like the default, well-documented admin location isn't /admin/ on a Django site. I not trying to be a smart aleck or critical. I'm really curious what I'm missing. Why does it matter that a search engine knows where the admin page is? Cheers, deryck -- Dery

Re: check for yourself (((;

2006-08-17 Thread Deryck Hodge
r of > being able to do one of those searches and see all the cool sites > running Django. Woo hoo! :-) ) Indeed, woo hoo! :-) That is cool. (And I didn't have a problem with the robots meta tag. Doesn't hurt anything. Just curious if I really should be worried about

Re: Django Books

2006-08-30 Thread Deryck Hodge
who will write it is still unknown. Cheers, deryck -- Deryck Hodgehttp://www.devurandom.org/ Web Developer, Naples News http://www.naplesnews.com/ Samba Team http://www.samba.org/ --~--~-~--~~~---~--~---

Re: autoreload files stored on SMB share

2006-09-26 Thread Deryck Hodge
ut server time diffs is what I was thinking, too) but it wouldn't hurt to try cifsfs. smbfs hasn't been maintained for awhile now and weird behavior with smbfs is common (if you take comments on the Samba list as authority :-)) Cheers, deryck -- Deryck Hodge

Re: Serialization on part of a model

2006-10-05 Thread Deryck Hodge
provides a small patch to limit by field for the serializers module. Something like -- serializers.serialize('xml', stories, fields=('headline', 'name')) Perhaps you could try the patch attached to the ticket. Also, I mention it just to dr

Re: Serialization on part of a model

2006-10-14 Thread Deryck Hodge
ent 'fields' > > It works OK on XML, though. Any ideas? > Thanks, Daniel, for the traceback. I think I know why this is happening -- it's related to the relationship and the conditional I used. I'll test with a similar example and update the patch. Sorry for the delay,

Re: Serialization on part of a model

2006-10-14 Thread Deryck Hodge
s, Malcolm. If you have any ideas about the API, or would like some help shaping this patch into what you think may be ideal, I'm glad to continue helping on this. Cheers, deryck -- Deryck Hodgehttp://www.devurandom.org/ Samba Team