2008-3-22

23:47 cpengwin
basically, is there anything I should know
23:47 cpengwin
in terms of structuring my app, files to include/not include
23:47 mikeal
that way it handles all the linking and path stuff for me, and it's linked to the directory i checked it out in
23:48 insin
cpengwin: I don't think there are any RCS-specific tips on that one, really :)
23:48 mikeal
this also has the added benefit of only adding that module to sys.path, and not adding all modules in the parent directory
23:48 bryan
I see.
23:48 mikeal
so if that project has a setup.py
23:48 [530]
cpengwin: no pyc or pyo else nothing much
23:48 mikeal
run python setup.py develop
23:48 cpengwin
ok
23:48 mikeal
if you get an error
23:48 mikeal
it's because they are using distutils instead of setuptools
23:48 cpengwin
and presumably also the data....
23:49 cpengwin
that's the other thing - database stuff
23:49 [530]
cpengwin: yes
23:49 cpengwin
storing settings for development vs. deployment
23:49 mikeal
just change the line that imports the setup function to be "from setuptools import setup" and everything will work
23:49 malibu
Is there an easy way to make a file which I can check into SVN and preload into my django database?
23:49 bryan
Alright.
23:49 [530]
cpengwin: i somtimes include fixtures, but not automatic fixtres
23:49 mikeal
those steps are actually what I use for getting django in to my Python installs as well
23:49 malibu
and is it resilient to changes in the model?
23:50 mikeal
and now if you ever wanna update the sources just $ svn co, and the updated module is already linked
23:50 mikeal
and you don't have to worry about munging PYTHONPATH
23:50 [530]
mikeal: svn up
23:50 mikeal
whoops
23:50 mikeal
svn up
23:50 mikeal
haha
23:51 mikeal
oh man, i can't wait until more people use git :)
23:51 [530]
or git svn rebase :P
23:51 [530]
mikeal: agree
23:51 malibu
what's git?
23:51 mikeal
git is _really_ nice for this, because then if you wanna switch branches you just use git branch x
23:51 mikeal
and all the sym links remain the same
23:52 ferringb
alternatively just swap the directory
23:52 ferringb
never really found the checkout functionality they have all that useful, mostly serves as a way to confuse the hell out of myself as to which branch I'm on
23:52 mikeal
with svn i gotta go in to the branch i'm working in and re-run setup.py develop
23:52 [530]
ferringb: but it ells you why
23:52 [530]
tells
23:53 mikeal
i just run $ git branch , before I do any real work
23:53 [530]
if you forgot a checkin
23:53 mikeal
then i know which one i'm on
23:53 ferringb shrugs
23:54 [530]
git wins over hg for me
23:54 ferringb
far more comfortable w/ bzr personally, but to each their own
23:54 mikeal
i really don't like hg
23:54 [530]
ecach their git :P
23:54 mikeal
i really hate the way you put together patches
23:54 [530]
each
23:55 thinketh
quick question: should i be using str(myint) to convert strings in django? or is there some unicode equivalent?
23:55 empty
trbs: you there?
23:55 Magus-
thinketh: erm, unicode() :��
23:55 mikeal
u"string" to declare, or unicode(string)
23:55 [530]
the linux kernel uses git, is there really a choice?
23:55 [530]
:P
23:56 thinketh
Magus-: thanks.
23:56 thinketh
mikeal: thanks too!
23:56 mikeal
but if you have characters that don't translate you'll hit errors
23:56 mikeal
you might wanna use
23:57 mikeal
"string".encode('utf8', 'ignore')
23:58 mikeal
that'll save you from people getting 500 errors when they put in non-unicode characters
23:58 axiak
[530]: have you seen the new #2070 patch? :)
23:58 DjangoBot
23:58 [530]
mikeal : assuming utf-8
23:58 [530]
axiak: think so
23:58 mikeal
i'll assume all i want :P
23:58 [530]
unless you just added it
23:58 axiak
[530]: it's like 2 days old...and changes a lot of things
23:59 [530]
axiak: have looked at it but not to closely
23:59 mikeal
did you get that thinketh ^^
Page 5 of 5   ← Previous  (470 total)