What's sys.argv when run by a server? I think this might work. @gavinwahl
did show me another new runserver command, but idk if he's using it.
On Oct 14, 2013 3:56 AM, "Aaron Merriam" <notifications@github.com> wrote:

> In project_name/settings.py:
>
> >
> >  DATABASE_ENGINE = DATABASES['default']['ENGINE']
> >
> > -# This must go _after_ the cache backends are configured, which could be in
> > -# local settings
> > -from django.template.loader import add_to_builtins
> > -add_to_builtins('cachebuster.templatetags.cachebuster')
> > -
> > -if not DEBUG:
> > +if not any('runserver' in val for val in sys.argv):
>
> Curious for feedback on this approach. Still feels funny, but I like it
> more than if DEBUG:
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/fusionbox/django-project-template/pull/6/files#r6935560>
> .
>