/srv/irclogs.ubuntu.com/2012/06/17/#ubuntu-website.txt

cjohnstonyay!14:20
daker-cloud:)14:23
cjohnstonstupid postgres14:24
daker-cloudstupid tarmac :)14:24
cjohnstonwhat did tarmac do?14:29
daker-cloudnot running since ages14:30
cjohnstonthat was mhall119's favorite type of code review.. 3,593 lines ;-)14:30
cjohnstonit isnt?14:30
daker-cloudcjohnston mhall119 Mr 3593 lines of code not me anymore :)14:31
cjohnstonbut thats one of those things that can't be split up really well..14:31
cjohnston1300 of it was just a file rename14:32
daker-cloudmine was about ~2000lines14:33
daker-cloudcjohnston: you did the merge ?14:36
daker-cloudah it's tarmac14:36
cjohnstondaker-cloud: are you familiar with setting up postgres for a production django app?14:39
daker-cloudno, but if you tell me what's the problem maybe i can help14:40
cjohnstonI'm getting a Peer authentication failuer14:40
cjohnstonfailure14:40
cjohnstonI did "postgres create user -D -A -P <user>"14:41
cjohnstonthen "postgres createdb -O <user> <db>"14:42
daker-cloudno no look on the pg_hba.conf14:44
daker-cloudv 9.1 ?14:45
cjohnstonyes14:45
daker-cloudnano /etc/postgresql/9.1/main/pg_hba.conf14:45
daker-cloudpaste the config here14:46
cjohnstonhttp://pad.ubuntu.com/G00yelUuTW14:47
daker-cloudcjohnston: look what i did14:48
daker-cloudchange peer to md514:48
cjohnstonyup14:48
daker-cloudthen restart postgres14:48
cjohnstonok14:50
cjohnstonthen what?14:52
daker-cloudthat's all, it should work14:53
cjohnstonjust put the md5 for password in local_settings?14:53
cjohnstonit still said auth failed14:53
daker-cloudtry : psql -d <somedb> -U <someuser> -W14:54
daker-cloudchange the vars14:54
cjohnstonfailed14:55
daker-cloudsame error ?14:55
cjohnstonyup14:55
cjohnstonI'm fairly certain I didnt mistype the password twice14:56
daker-cloudyes but it should not tell you "Peer ...." because we have changed that to md514:57
cjohnstonpsql: FATAL:  Peer authentication failed for user "labmanager"14:57
cjohnstonthere is still a local   all             all                                     peer14:58
cjohnstonshould I change that too?14:58
daker-cloudoh yes yes14:59
cjohnstonpsycopg2.OperationalError: FATAL:  password authentication failed for user "labmanager15:00
daker-cloudare you sure the pass is correct ?15:01
cjohnstonrunning psql -d -U -W worked with the real password15:01
cjohnstonok.. now that i have the plane text password in the local_settings it works15:02
daker-cloudoh :)15:02
cjohnstonbut I get psycopg2.OperationalError: FATAL:  database "labmanager.db" does not exist15:02
daker-cloudlabmanager.db .db is an extension ?15:03
daker-cloudor part of the name ?15:03
hallino1daker-cloud, i think extension15:03
cjohnstonext.. got it15:03
cjohnstonyay15:03
daker-cloud:)15:03
hallino1:)15:04
cjohnstongrr.. now migrate isnt working15:04
daker-cloudLoL15:05
cjohnstonbzr add * isnt working right.. that would explain it15:07
nigelbdaker-cloud: what do you mean tarmac isn't running?15:10
nigelbwhy the hell haven't you guys not been telling me it's not running.15:10
cjohnstonits running15:11
nigelbphew ok.15:11
cjohnstoni dont think anyone has had anything for it to run on since my surgery15:12
daker-cloudnigelb: not sure, i thought it was not running, maybe it's because of the famous bzr bug link from LP15:14
daker-cloudcjohnston: surgery ?15:14
cjohnstoni had surgery two weeks ago15:14
daker-cloudoh i didn't know that15:15
daker-cloudcjohnston: do you feel ok now ?15:15
cjohnstonyup15:15
cjohnstoni was working on Summit the same day15:15
cjohnstonheh15:15
daker-cloud:)15:18
nigelbThis needs a meme15:20
nigelb"I don't always have surgery, but when I do, I work on summit right afterward"15:20
nigelbdaker-cloud: ^15:20
daker-cloudhhh15:20
cjohnstonhehe15:20
cjohnstonI had some good meds, I figured summit couldnt hurt me15:21
daker-cloudin case you didn't saw it http://youtu.be/MShbP3OpASA?t=49m51s15:21
nigelbdaker-cloud: hahaha, that's awesome.15:22
daker-cloudhttps://plus.google.com/101694416703170881163/posts/Q86KJ5pfr6F?hl=fr15:32
cjohnstonlol15:32
cjohnstonmhall119: ^15:33
cjohnstondaker-cloud: for some reason init isn't appending bzr_apps like it should15:35
cjohnston:-/15:35
daker-cloudmake init ?15:35
cjohnstonmanage init15:36
cjohnstondaker-cloud: http://bazaar.launchpad.net/~summit-hackers/summit/trunk/view/head:/summit/settings.py#L172  <-- that part15:38
cjohnstonit works fine on summit tho.. my new app15:38
daker-cloudnot sure what you are talking about :/15:41
cjohnstonafter running ./manage.py init (init-summit for summit, init-ld for LTP) it is supposed to add bzr_apps as an INSTALLED_APPS15:42
daker-cloudno /manage.py init doesn't do that, it's jut pull bzr_apps from LP15:49
cjohnstonI'm not saying init is what does it, but whatever does it isnt doing it15:52
daker-cloudwhich mean when you run manage.py pullapps, it' doesn't work ?15:53
cjohnstonyes15:53
cjohnstonin shell import bzr_apps works16:03
cjohnstonso i dont know why it isnt when calling manage.py16:03
cjohnstondaker-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#L18716:13
daker-cloudcjohnston: back17:47
daker-cloudtype : ls17:47
daker-cloudin your working dir17:47
cjohnstonk17:48
cjohnstonbzr_apps  common  hardware  lab  lab_manager  manage.py  menu  static17:49
daker-cloudbzr_apps i there17:49
daker-cloudso it should work17:49
cjohnstonI know17:49
cjohnstonand when I try it in shell it works17:49
cjohnstonbut trying ./manage.py pullapps doesnt17:50
daker-cloudthen type  ./manage.py help17:50
daker-cloudand see if it the commands are there17:51
cjohnstonnope17:51
daker-cloudls in bzr_app pls17:55
daker-cloudcjohnston: ^17:55
cjohnston__init__.py  __init__.pyc  management  models.py  tests.py  views.py17:55
daker-cloudthen if you try to add bzr_apps to INSTALLED_APPS ? it works ?17:58
cjohnstonyou mean manually?17:58
daker-cloudyes17:58
cjohnstonthat works17:59
daker-cloudwhich django version ?17:59
cjohnston1/417:59
cjohnston1.418:00
daker-cloudok18:02
daker-cloudlet's see now18:02
daker-cloudtry to replace this :18:02
daker-cloudtry:18:02
daker-cloud    import bzr_apps18:02
daker-cloud    INSTALLED_APPS.append('bzr_apps')18:02
daker-cloudexcept:18:02
daker-cloud    pass18:02
daker-cloudwith :18:03
daker-cloudimport bzr_apps18:03
daker-cloudINSTALLED_APPS.append('bzr_apps')18:03
cjohnstonAttributeError: 'tuple' object has no attribute 'append'18:08
daker-cloudthat's it :)18:08
cjohnstonso something changed between 1.3 and 1.418:08
daker-cloudi guess yes18:09
daker-cloudbefore the append add this:18:10
daker-cloudINSTALLED_APPS = list(INSTALLED_APPS)18:10
cjohnstonthat works18:11
daker-cloud:)18:12
daker-cloudthe except statement have to display a message and not pass just like that18:16
cjohnstonthen its broken in all of the projects ;-)18:17
daker-cloudyes18:18
* cjohnston blames nigelb ;-)18:18
daker-cloudno no it's not broken18:20
daker-cloudthe INSTALLED_APPS in your settings is a tuple18:21
daker-cloudbut in the other projects it's a list18:22
cjohnstonI was talking about the lack of a message18:22
daker-cloudoh yes18:22

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!