tags:

views:

35

answers:

2

My apps are installed. They used to work. Now that I made some edits here and there, I must have a syntax error, or something. Instead of telling me, Django just creates the Auth, Admin, etc apps and kills all my apps. Why? And, how can I debug?

+2  A: 

Pass --traceback to manage.py.

Ignacio Vazquez-Abrams
Like this: `manage.py syncdb --traceback`? I tried that but it did the same thing.
orokusaki
@Ignacia I've had this happen before multiple times if I had a typo in an import or something like that. Normally I can find it manually, but not when I have like 18 edits, I'm having trouble.
orokusaki
Have you tried commenting all of your apps out of INSTALLED_APPS and just including one at a time to see if you can isolate the problem to a particular app?
Brian Luft
@Brian Thanks. That's what I did, and it sure enough was just an import that was broken.
orokusaki
+1  A: 

Yes there are couple of places where djagno doesn't give you any useful info on error. Usually, i run manage.py validate. If that is not enough, i'll try manage.py shell and import my models by hand and see what happens.

Dmitry Shevchenko
@Dmitry Yes indeed. Last time this happened shell is exactly how I figured it out. This time I had just too many modules (like 130) to do that).
orokusaki