Here is something that may help:
import importlib
from django.conf import settings
for app in settings.INSTALLED_APPS:
views_name = "%s.views" % app
try:
importlib.import_module(views_name)
except ImportError:
pass
except:
print "Could not import %s" % views_name
raise
(This is assuming all views are named views.py and in the root of your
"installed apps")
I just ran this from django shell but you could also make it a management
command.
On Thursday, March 7, 2013 7:45:19 AM UTC-8, ke1g wrote:
>
> And a last stop gap, assuming the server is *nix, the find command will
> find all files
> with changes newer than a given time (though the syntax can be squirrelly.
>
> On Thu, Mar 7, 2013 at 10:42 AM, Shawn Milochik
> <[email protected]<javascript:>
> > wrote:
>
>> On Thu, Mar 7, 2013 at 10:38 AM, frocco <[email protected] <javascript:>>
>> wrote:
>> > Thanks you, I think I will only use Pycharm now to help prevent this
>> issue
>> > again.
>> > I hope future versions will offer better trace.
>>
>>
>> Even better, use version control, such as git. Then your editor will
>> be irrelevant and it will be trivial to find and revert any changes.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.