Specify Django Test Database names in settings.py

In Django 1.6 and below, TEST_NAME should be a key of one of your database dictionaries. But in Django 1.7 and above, you use a TEST key which is a dictionary of settings for test databases. You probably want: DATABASES = { ‘default’:{ ‘ENGINE’:’mysql’, ‘NAME’:’testsqldb’, ‘USER’:'<username>’, ‘PASSWORD’:'<password>’, ‘TEST’: { ‘NAME’: ‘auto_tests’, } }, ‘dynamic_data’:{ ‘ENGINE’: … Read more

In Xcode, is there a way to disable the timestamps that appear in the debugger console when calling NSLog?

NSLog() is what is doing that, not the debugger console. The easiest way to avoid it is to not use NSLog at all. You could use fprintf(), but that is a pain in that it doesn’t support %@ format types. I generally write a function for this: void MyLog(NSString *format, …) { va_list args; va_start(args, … Read more

git whitespace woes

Git1.6.0.4 seems a bit old, especially if you consider that: in 1.6.3.4, “git apply –whitespace=fix” did not fix trailing whitespace on an incomplete line in 1.6.3.2, “whitespace” attribute that is set was meant to detect all errors known to git, but it told git to ignore trailing carriage-returns. Could you try with Git1.6.4.1, and rather … Read more

Why am I unable to select a custom Type for a setting from the same project/assembly as the settings file?

I was trying to do exactly the same thing in VS 2010 (.net 3.5). It turns out that you can do this using the Settings designer. The UI is totally flawed, as stated, but if you manually enter the fully qualified name of the enum in the Browse window it’ll work. This has the benefit … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)