/srv/irclogs.ubuntu.com/2011/07/30/#ubuntu-website.txt

mhall119new blog post about Summit development: http://mhall119.com/2011/07/the-new-direction-of-summit-development/04:02
=== Turl1 is now known as Turl
dakernewz2000, any progress on bug 275971 ?16:35
ubot4Launchpad bug 275971 in ubuntu-website "Ubuntu Local support - Arabic Language (affects: 3) (heat: 3)" [Undecided,Confirmed] https://launchpad.net/bugs/27597116:35
cprofittmhall119 or cjohnston - ping17:39
cprofittcd ..17:39
mhall119cprofitt: pong17:48
cprofitthey mhall11917:49
cprofittjust curious about postgres17:49
mhall119it won't last long17:49
mhall119curiousity will give was to confusion, then dislike17:49
cprofittif I am running 11.04 server and it has a different more recent version is that an issue?17:49
mhall119it shouldn't be17:49
mhall119but for development, you really should just use sqlite17:49
cprofittalso, I could not find a password in the settings.py file for the database password17:49
mhall119you put your own database settings into local_settings.py17:50
cprofittI installed postgres due to what was in the less INSTALL file17:50
cprofittif SQLLite is better I can do that17:50
mhall119it's postgres in production, but there's no need for you to set all that up for development17:50
mhall119Django abstracts the database, so you can develop on sqlite17:51
cprofittk17:51
cprofittso I use the local_Settings.py.sample to make my own local_settings.py17:51
mhall119yes17:51
mhall119it's probably already configured to use sqlite too17:51
cprofittyes17:52
cprofittbut the change looks simple for postgres17:52
cprofittis sqlite easier to use?17:52
cprofittI appear to already have postgres installed17:53
cprofittdoes the make install sqlite automatically?17:54
cprofittmhall119: got an error:18:01
cprofittTraceback (most recent call last):18:01
cprofitt  File "manage.py", line 2, in <module>18:01
cprofitt    from django.core.management import execute_manager18:01
cprofittImportError: No module named django.core.management18:01
cprofittmake: *** [test] Error 118:01
nigelblooks like you don't have django in your path.18:02
cprofittnigelb: how would I correct that?18:03
nigelbHad you installed django earlier?18:03
cprofittno, this is a brand new server18:03
cprofittsetup just for this18:03
nigelbah18:03
nigelbwhat are you setting up? Loco Directory?18:03
cprofittyes18:04
nigelbokay, so you can either install django system wide or use a virtualenv18:04
nigelbif you want to install it system-wide "sudo apt-get install python-django"18:04
cprofittI did that, but still get the error...18:06
cprofittI am trying to follow the instructions in the INSTALL file18:07
nigelbah, let me read that18:07
nigelbI should set up a readthedocs.org for loco-directory18:07
cprofittI did accidently setup postgres18:07
cprofittif need be I can re-install the server -- it doesn't take that long18:08
nigelbhm, I don't remember what docs I used. I didn't go this route18:09
nigelbcprofitt: okay, so the instructions already use virtualenv.18:09
nigelbSo I think you've not loaded your env18:10
cprofittquite potentially...18:10
cprofittdo the instructions tell you how to do that?18:10
nigelbat what point in the instructions are you getting this error?18:11
cprofittmake init18:11
nigelbcan you do an ls -al and tell me if you see a .env folder?18:12
cprofittI see an env folder, but not .env18:13
nigelbah, right env.18:13
nigelbI should read better :)18:13
nigelbso, do "source env/bin/activate" and see if your terminal prompt now starts with (env) if it wasn't there18:14
cprofittyes18:15
cprofittmake init still gives the same error18:15
cprofittif you have a link to the docs you used -- I could use those18:15
cprofittthis is a virtual machine so I don't care if it is in a virtualenv18:16
nigelbI already had everything in my system path.18:16
nigelbI used the old summit docs18:16
nigelbNow I'm confused in the mess of Makefile :/18:16
cprofittlol18:16
nigelbok, lets try this. do make init again18:17
cprofittmaybe I should just try learning some basic django first...18:17
cprofittsame error nigelb18:17
nigelbdrat18:17
dakercprofitt, run make clean18:17
dakermake depends18:18
nigelbah, there's a clean18:18
mhall119cprofitt: pong18:18
mhall119cprofitt: what steps have you dong?18:18
dakerah here is mr makefile18:18
nigelbhehe18:19
cprofittdaker the make clean appears to have moved things forward18:19
nigelbI'm tempted to get LTP docs like summit.rtfd.org18:19
nigelbdaker: if you find some time, pleaes check out the docs and let me know fi there are errors18:19
dakersure18:20
mhall119cprofitt: did one of the make steps fail?18:20
nigelbgah, we should have a Vagrantfile which does all this stuff.18:20
cprofittmake init failed18:20
nigelbSo. Much. Easier.18:20
mhall119cprofitt: that's no good, did it give an error?18:21
cprofittbut the make clean fixed that up mhall11918:21
mhall119also, did you "sudo make depends" first?18:21
mhall119cprofitt: oh, ok18:21
cprofittI posted the error at 14:01 mhall11918:21
cprofittmhall119: yes18:22
cprofittI was following the INSTALL file instructions18:22
dakernigelb, the bzr parameter is --fixes lp:bug_num, right ?18:25
nigelbdaker: yeah18:26
cprofittmake test resulted in two errors18:28
cprofittand 1 failure18:28
cprofittERROR: Test if check for a more complicated LoCo Team setup works18:28
cprofittERROR: test_unicode_agenda_title (meetings.tests.UnicodeTest)18:29
cprofittFAIL: test_anonymous_user (teams.tests.EditTeamTestCase)18:29
nigelbha18:29
nigelbmhall119: Your test isnt passing? ^18:29
cprofittdo I want to do the make lp, make live, make run still?18:30
nigelbyes18:30
dakeranyone to do some reviews https://code.launchpad.net/~daker/loco-directory/fix.818373 ? :)18:35
mhall119cprofitt: either make lp or make live, not both18:36
cprofitttoo late18:37
cprofittwhat is the difference?18:37
mhall119make live will delete everything make lp did and start over18:37
mhall119it won't break, just waste your time and bandwidth18:38
cprofittis there any difference?18:39
cprofitta reason to choose one over the other?18:39
mhall119nigelb: file a bug for my test not passing anymore18:40
mhall119this is why we have tests, so we know when things are broken before our users do18:40
dakermhall119, i am going to write a formula for LTP, but the postgres formula is not yet released18:44
cprofittafter make run -- what should be done to test?18:44
dakeropen http://127.0.0.1:8000/ in your browser18:45
cprofittis there a way to make the server run on a different IP address than localhost?18:45
cprofittI am using a virtual server...18:45
cprofittso no browser on the server itself18:45
dakeryep you can but you need to modify the Makefile18:46
dakeropen it then look at line 3518:47
dakerit's :18:47
daker$(django_manage) runserver18:47
dakerchange to :18:47
daker$(django_manage) runserver 0.0.0.0:800018:47
mhall119daker: ensemble?18:47
dakermhall119, yep18:47
dakerthey only have a formula for mysql18:48
mhall119daker: did you see jcastro's blog post?18:48
mhall119http://castrojo.tumblr.com/post/8237594556/my-first-attempt-at-an-ensemble-formula18:48
dakeryep i saw it18:48
mhall119cool18:48
cprofittdaker: then after I change that I need to do what?18:48
dakeropen the browser18:49
dakerthen type http://ip_of_your_server:800018:49
cprofittno need to restart the server?18:49
cprofittor re-do the make stuff?18:49
dakercprofitt, run : make run18:50
cprofittworking now18:50
cprofittthanks daker18:50
dakerwooww18:50
dakeryw18:50
cprofittso any code changes I make would need to be followed by a make run?18:50
dakerif there is a change on the python code(forms, views, models) django will restart the server automatically18:52
cprofittk18:52
dakerif not just stop the server with Ctrl+C then re-run the make run18:52
cprofittawesome18:53
dakerenjoy18:53
dakermhall119, there will a problem if we use mysql instead of postgres ?18:53
mhall119no18:56
dakerok cool18:56
cprofittmhall119: is there an LP team I should eventually join if I get this stuff under my belt?19:26
mhall119there's loco-directory-dev, which you only need once you start approving other people's merge proposals19:53
mhall119everything else you can do without being on a team19:53
=== Pendulum_ is now known as Pendulum

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