clean_pyc doesn't seem to work

47 views
Skip to first unread message

Tomas Neme

unread,
Oct 23, 2012, 8:29:47 AM10/23/12
to django-extensions
Hello. I'm wondering if I'm doing something wrong, but running
clean_pyc seems to have no effect. I've tried this both on 0.9+dj1.3
and 1.0+dj1.4

Is there something I'm overseeing?

(env-1.4)lacrymology@Roller:boilerplate$ ./manage.py clean_pyc
(env-1.4)lacrymology@Roller:boilerplate$ find boilerplate/ -name
'*pyc'
boilerplate/apps/development/__init__.pyc
boilerplate/apps/production/__init__.pyc
boilerplate/apps/production/middleware/log_request.pyc
boilerplate/apps/production/middleware/__init__.pyc
boilerplate/apps/__init__.pyc
boilerplate/apps/custom_registration/models.pyc
boilerplate/apps/custom_registration/urls.pyc
boilerplate/apps/custom_registration/__init__.pyc
boilerplate/apps/custom_registration/forms.pyc
boilerplate/apps/custom_registration/backends.pyc
boilerplate/apps/custom_registration/views.pyc
boilerplate/apps/boiler/signals.pyc
boilerplate/apps/boiler/monkeypatch.pyc
boilerplate/apps/boiler/__init__.pyc
boilerplate/apps/boiler/tasks.pyc
boilerplate/apps/boiler/models/__init__.pyc
boilerplate/apps/boiler/template/__init__.pyc
boilerplate/apps/boiler/template/loaders.pyc
boilerplate/apps/boiler/decorators.pyc
boilerplate/apps/boiler/templatetags/boiler_tags.pyc
boilerplate/apps/boiler/templatetags/__init__.pyc
boilerplate/apps/boiler/admin.pyc
boilerplate/apps/boiler/translation.pyc
boilerplate/apps/boiler/context_processors.pyc
boilerplate/apps/boiler/middleware.pyc
boilerplate/apps/boiler/forms/__init__.pyc
boilerplate/apps/boiler/forms/forms.pyc
boilerplate/apps/custom_comments/__init__.pyc
boilerplate/apps/custom_comments/forms.pyc
boilerplate/apps/cms_plugins/__init__.pyc
boilerplate/apps/cms_plugins/sitemap/__init__.pyc
boilerplate/apps/cms_plugins/sitemap/sitemaps.pyc
boilerplate/apps/cms_plugins/sitemap/cms_plugins.pyc
boilerplate/apps/custom_zinnia/__init__.pyc
boilerplate/apps/custom_zinnia/sitemaps.pyc
boilerplate/apps/custom_zinnia/models/blog.pyc
boilerplate/apps/custom_zinnia/models/__init__.pyc
boilerplate/apps/custom_zinnia/admin.pyc
boilerplate/apps/custom_zinnia/translation.pyc
boilerplate/urls.pyc
boilerplate/__init__.pyc
boilerplate/sitemaps.pyc
boilerplate/wsgi.pyc
boilerplate/settings/blog.pyc
boilerplate/settings/debug.pyc
boilerplate/settings/auth.pyc
boilerplate/settings/__init__.pyc
boilerplate/settings/cms.pyc
boilerplate/settings/language.pyc
boilerplate/settings/dev.pyc
boilerplate/settings/sentry.pyc
boilerplate/settings/base.pyc
boilerplate/settings/project.pyc

trbs

unread,
Oct 23, 2012, 8:39:46 AM10/23/12
to django-e...@googlegroups.com
No your not :)

The get_project_root() function in django_extensions.management.utils is doing the wrong thing.
Since you use a 'settings' directory instead of a file it wrongly assumes that the root of your project is 'boilerplate/settings' instead of 'boilerplate'.

Could you please submit an issue for this in github ?
Reply all
Reply to author
Forward
0 new messages