[14:20] <cjohnston> yay!
[14:23] <daker-cloud> :)
[14:24] <cjohnston> stupid postgres
[14:24] <daker-cloud> stupid tarmac :)
[14:29] <cjohnston> what did tarmac do?
[14:30] <daker-cloud> not running since ages
[14:30] <cjohnston> that was mhall119's favorite type of code review.. 3,593 lines ;-)
[14:30] <cjohnston> it isnt?
[14:31] <daker-cloud> cjohnston mhall119 Mr 3593 lines of code not me anymore :)
[14:31] <cjohnston> but thats one of those things that can't be split up really well..
[14:32] <cjohnston> 1300 of it was just a file rename
[14:33] <daker-cloud> mine was about ~2000lines
[14:36] <daker-cloud> cjohnston: you did the merge ?
[14:36] <daker-cloud> ah it's tarmac
[14:39] <cjohnston> daker-cloud: are you familiar with setting up postgres for a production django app?
[14:40] <daker-cloud> no, but if you tell me what's the problem maybe i can help
[14:40] <cjohnston> I'm getting a Peer authentication failuer
[14:40] <cjohnston> failure
[14:41] <cjohnston> I did "postgres create user -D -A -P <user>"
[14:42] <cjohnston> then "postgres createdb -O <user> <db>"
[14:44] <daker-cloud> no no look on the pg_hba.conf
[14:45] <daker-cloud> v 9.1 ?
[14:45] <cjohnston> yes
[14:45] <daker-cloud> nano /etc/postgresql/9.1/main/pg_hba.conf
[14:46] <daker-cloud> paste the config here
[14:47] <cjohnston> http://pad.ubuntu.com/G00yelUuTW
[14:48] <daker-cloud> cjohnston: look what i did
[14:48] <daker-cloud> change peer to md5
[14:48] <cjohnston> yup
[14:48] <daker-cloud> then restart postgres
[14:50] <cjohnston> ok
[14:52] <cjohnston> then what?
[14:53] <daker-cloud> that's all, it should work
[14:53] <cjohnston> just put the md5 for password in local_settings?
[14:53] <cjohnston> it still said auth failed
[14:54] <daker-cloud> try : psql -d <somedb> -U <someuser> -W
[14:54] <daker-cloud> change the vars
[14:55] <cjohnston> failed
[14:55] <daker-cloud> same error ?
[14:55] <cjohnston> yup
[14:56] <cjohnston> I'm fairly certain I didnt mistype the password twice
[14:57] <daker-cloud> yes but it should not tell you "Peer ...." because we have changed that to md5
[14:57] <cjohnston> psql: FATAL:  Peer authentication failed for user "labmanager"
[14:58] <cjohnston> there is still a local   all             all                                     peer
[14:58] <cjohnston> should I change that too?
[14:59] <daker-cloud> oh yes yes
[15:00] <cjohnston> psycopg2.OperationalError: FATAL:  password authentication failed for user "labmanager
[15:01] <daker-cloud> are you sure the pass is correct ?
[15:01] <cjohnston> running psql -d -U -W worked with the real password
[15:02] <cjohnston> ok.. now that i have the plane text password in the local_settings it works
[15:02] <daker-cloud> oh :)
[15:02] <cjohnston> but I get psycopg2.OperationalError: FATAL:  database "labmanager.db" does not exist
[15:03] <daker-cloud> labmanager.db .db is an extension ?
[15:03] <daker-cloud> or part of the name ?
[15:03] <hallino1> daker-cloud, i think extension
[15:03] <cjohnston> ext.. got it
[15:03] <cjohnston> yay
[15:03] <daker-cloud> :)
[15:04] <hallino1> :)
[15:04] <cjohnston> grr.. now migrate isnt working
[15:05] <daker-cloud> LoL
[15:07] <cjohnston> bzr add * isnt working right.. that would explain it
[15:10] <nigelb> daker-cloud: what do you mean tarmac isn't running?
[15:10] <nigelb> why the hell haven't you guys not been telling me it's not running.
[15:11] <cjohnston> its running
[15:11] <nigelb> phew ok.
[15:12] <cjohnston> i dont think anyone has had anything for it to run on since my surgery
[15:14] <daker-cloud> nigelb: not sure, i thought it was not running, maybe it's because of the famous bzr bug link from LP
[15:14] <daker-cloud> cjohnston: surgery ?
[15:14] <cjohnston> i had surgery two weeks ago
[15:15] <daker-cloud> oh i didn't know that
[15:15] <daker-cloud> cjohnston: do you feel ok now ?
[15:15] <cjohnston> yup
[15:15] <cjohnston> i was working on Summit the same day
[15:15] <cjohnston> heh
[15:18] <daker-cloud> :)
[15:20] <nigelb> This needs a meme
[15:20] <nigelb> "I don't always have surgery, but when I do, I work on summit right afterward"
[15:20] <nigelb> daker-cloud: ^
[15:20] <daker-cloud> hhh
[15:20] <cjohnston> hehe
[15:21] <cjohnston> I had some good meds, I figured summit couldnt hurt me
[15:21] <daker-cloud> in case you didn't saw it http://youtu.be/MShbP3OpASA?t=49m51s
[15:22] <nigelb> daker-cloud: hahaha, that's awesome.
[15:32] <daker-cloud> https://plus.google.com/101694416703170881163/posts/Q86KJ5pfr6F?hl=fr
[15:32] <cjohnston> lol
[15:33] <cjohnston> mhall119: ^
[15:35] <cjohnston> daker-cloud: for some reason init isn't appending bzr_apps like it should
[15:35] <cjohnston> :-/
[15:35] <daker-cloud> make init ?
[15:36] <cjohnston> manage init
[15:38] <cjohnston> daker-cloud: http://bazaar.launchpad.net/~summit-hackers/summit/trunk/view/head:/summit/settings.py#L172  <-- that part
[15:38] <cjohnston> it works fine on summit tho.. my new app
[15:41] <daker-cloud> not sure what you are talking about :/
[15:42] <cjohnston> after running ./manage.py init (init-summit for summit, init-ld for LTP) it is supposed to add bzr_apps as an INSTALLED_APPS
[15:49] <daker-cloud> no /manage.py init doesn't do that, it's jut pull bzr_apps from LP
[15:52] <cjohnston> I'm not saying init is what does it, but whatever does it isnt doing it
[15:53] <daker-cloud> which mean when you run manage.py pullapps, it' doesn't work ?
[15:53] <cjohnston> yes
[16:03] <cjohnston> in shell import bzr_apps works
[16:03] <cjohnston> so i dont know why it isnt when calling manage.py
[16:13] <cjohnston> daker-cloud: here is the actual code that isnt working: http://bazaar.launchpad.net/~chrisjohnston/+junk/lab-mgr/view/head:/lab_manager/lab_manager/settings.py#L187
[17:47] <daker-cloud> cjohnston: back
[17:47] <daker-cloud> type : ls
[17:47] <daker-cloud> in your working dir
[17:48] <cjohnston> k
[17:49] <cjohnston> bzr_apps  common  hardware  lab  lab_manager  manage.py  menu  static
[17:49] <daker-cloud> bzr_apps i there
[17:49] <daker-cloud> so it should work
[17:49] <cjohnston> I know
[17:49] <cjohnston> and when I try it in shell it works
[17:50] <cjohnston> but trying ./manage.py pullapps doesnt
[17:50] <daker-cloud> then type  ./manage.py help
[17:51] <daker-cloud> and see if it the commands are there
[17:51] <cjohnston> nope
[17:55] <daker-cloud> ls in bzr_app pls
[17:55] <daker-cloud> cjohnston: ^
[17:55] <cjohnston> __init__.py  __init__.pyc  management  models.py  tests.py  views.py
[17:58] <daker-cloud> then if you try to add bzr_apps to INSTALLED_APPS ? it works ?
[17:58] <cjohnston> you mean manually?
[17:58] <daker-cloud> yes
[17:59] <cjohnston> that works
[17:59] <daker-cloud> which django version ?
[17:59] <cjohnston> 1/4
[18:00] <cjohnston> 1.4
[18:02] <daker-cloud> ok
[18:02] <daker-cloud> let's see now
[18:02] <daker-cloud> try to replace this :
[18:02] <daker-cloud> try:
[18:02] <daker-cloud>     import bzr_apps
[18:02] <daker-cloud>     INSTALLED_APPS.append('bzr_apps')
[18:02] <daker-cloud> except:
[18:02] <daker-cloud>     pass
[18:03] <daker-cloud> with :
[18:03] <daker-cloud> import bzr_apps
[18:03] <daker-cloud> INSTALLED_APPS.append('bzr_apps')
[18:08] <cjohnston> AttributeError: 'tuple' object has no attribute 'append'
[18:08] <daker-cloud> that's it :)
[18:08] <cjohnston> so something changed between 1.3 and 1.4
[18:09] <daker-cloud> i guess yes
[18:10] <daker-cloud> before the append add this:
[18:10] <daker-cloud> INSTALLED_APPS = list(INSTALLED_APPS)
[18:11] <cjohnston> that works
[18:12] <daker-cloud> :)
[18:16] <daker-cloud> the except statement have to display a message and not pass just like that
[18:17] <cjohnston> then its broken in all of the projects ;-)
[18:18] <daker-cloud> yes
[18:18]  * cjohnston blames nigelb ;-)
[18:20] <daker-cloud> no no it's not broken
[18:21] <daker-cloud> the INSTALLED_APPS in your settings is a tuple
[18:22] <daker-cloud> but in the other projects it's a list
[18:22] <cjohnston> I was talking about the lack of a message
[18:22] <daker-cloud> oh yes