This morning I'm working on a few things with this...

> I'd like to change the "grep -v django" line with "grep -v
> django.contrib" so that applications containing "django" as a part of
> their name (ex. djangotestproject.appname) are not discarded.

Good point, I'll add it in to the next patch.

> Then I'd like that completion script would support names as 'appname'
> instead of 'projectname.appname'. I got this work for myself using
> s/^[ ]*'\(.*\.\)*\(.*\)'.*$/\2 /pg as regular expression in sed.

Right, another good point.  I added in support for stuff after the
closing quote because in our settings.py we usually set PROJECT_NAME
near the top and re-use it in our script, so our installed apps look
like this:

  '%s.appname' % PROJECT_NAME,

And this supports that.  I'll update it to support just 'appname' as
well.

I'm also adding checks for the environment variable
DJANGO_SETTINGS_MODULE so this doesn't have to be in the same
directory to work.

I'll post an updated patch.

Thanks,
Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to