mozilla / playdoh

PROJECT DEPRECATED (WAS: "Mozilla's Web application base template. Half Django, half awesomeness, half not good at math.")
BSD 3-Clause "New" or "Revised" License
709 stars 107 forks source link

Check if bcrypt module is available before creating tables #135

Open jespersh opened 12 years ago

jespersh commented 12 years ago

The initial syncdb creates the tables for django and dhcelery et al. before it asks about superuser creation. That's fine, however, it doesn't throw a bcrypt not found until you enter the password a second time and ends the process.

Installing bcrypt and attempting to run syncdb again doesn't ask about superuser and the only answer becomes to drop the tables or the database schema to let syncdb run again.

fwenzel commented 12 years ago

Good suggestion. I wonder where we could do that, without uselessly importing bcrypt in a settings file or something. @peterbe what say you?