#django

/

      • brdma joined the channel
      • devsundar
        i get NoMethodError
      • any pointers please
      • wmw14 has quit
      • seanbrant
        devsundar: i think we will need more information. can you dpaste a stack trace?
      • devsundar
        seanbrant: dpaste link http://dpaste.com/778880/
      • seanbrant: code is here: http://dpaste.com/778882/
      • chuckharmston joined the channel
      • i do not see any obvious mistakes
      • seanbrant
        devsundar: while i do know ruby this is a django group
      • devsundar
        oops
      • seanbrant
        devsundar: :)
      • devsundar
        i am n wrong room :P
      • dodobas has quit
      • Sorry
      • lacrymology
        how do I create a FileField from a downloaded file?
      • sor_app has quit
      • Stalkr_ has quit
      • sambao21 has quit
      • cro joined the channel
      • craysiii joined the channel
      • jdo_dk has quit
      • pyxorg
        Hi, I installed django_markdown and followed the instructions for flatpages. The textarea has been modified in the admin but the text is not formatted when displayed
      • natea has quit
      • I didn't find anything in the doc http://packages.python.org/django-markdown/
      • Faisal
        hi there, is anyone here familiar with elementtree module ?
      • chachan joined the channel
      • rmcl joined the channel
      • v0lksman
        is there a way to pass request to a form in an inlineformset_factory?
      • Faisal
        nevermind, got my answer
      • leepa joined the channel
      • cyberdelia has quit
      • Partysun joined the channel
      • bahamas
        v0lksman: you have to make the Form accept the request
      • doughj3
        Is there a best practice for starting a django project? Every place I look is different, or some mention virtualenv and some don't (the first django app tutorial, for example). Is there like a definitive guide to follow?
      • And then there's lots of old info, too
      • v0lksman
        bahamas: the form is ready to accept request...but I don't know how to pass request to the inlineformset_factory or the form being used by the factory
      • ReekenX has quit
      • mercutio22
        doughj3: I not very experienced, but it seems you can relly on apt if you use a very up-to-date O.S. like debian sid. Otherwise its best to use virtualenv to get the latest software
      • devsundar has quit
      • darthlukan has quit
      • czpython has quit
      • v0lksman
        doughj3: not sure of docs but IMO best practise is use virtualenv and install all your modules in your env...it makes testing new releases a breeze.
      • pielgrzym has quit
      • natea joined the channel
      • doughj3
        v0lksman: i just see things like this (http://www.jeffknupp.com/blog/2012/02/09/starti...) and then this (https://gist.github.com/2596149), and I see they're similar but different, and there are many many other posts like this out there
      • v0lksman
        doughj3: follow the jeffknupp doc
      • pielgrzym joined the channel
      • well. that's closer to how I do things. ymmv
      • andredieb joined the channel
      • teppic joined the channel
      • notanumber has quit
      • mercutio22
        usually do you have one virtualenv for each project or on virtualenv for every project?
      • doughj3
        v0lksman: already having trouble following this doc
      • cyberdelia joined the channel
      • kroosec has left the channel
      • In the virtualenv, it seems to tell me django is already installed (I'm assuming thats the system django I installed with apt)
      • danfairs joined the channel
      • jdo_dk joined the channel
      • sambao21 joined the channel
      • colegatron_ has quit
      • jdo_dk
        lacrymology: Downloaded like ?
      • monstermus
        time to dive into the templates of django
      • vakaras has quit
      • doughj3
        I love using django, I just hate setting it up and deploying it.
      • jdo_dk
        lacrymology: Tried this one: http://chris.improbable.org/2010/01/26/django-r... (just change image to File)
      • knite joined the channel
      • hubx joined the channel
      • darthlukan joined the channel
      • doughj3
        in a virtualenv, what should `which pip` show?
      • I'd assume ./env/bin/pip right?
      • niix
        I might be thinking too much into this, but I notice that a lot of tutorials start off with making a project called something like mysite etc.. etc.. what's the general rule of thumb here for project names or does it not matter? Because with in the project there are several apps that may have the actual apps name or something
      • natea has quit
      • Stalkr_ joined the channel
      • knite
        anyone here using one of the model translation apps? I'm looking for a recommendation between django-modeltranslation, django-hvad, transifex, and django-transmeta.
      • doughj3
        Looks like I needed --no-site-packages
      • mercutio22
        doughj3: thats by default now.
      • doughj3
        must have an outdated version.
      • deni
        mattmcc: GrahamDumpleton : hey, just to follow up on yesterdays problem...the line that fixed everythin was: ProxyPass /media/ !
      • doughj3
        joseph:~$ virtualenv --version
      • 1.4.9
      • syphar has quit
      • deni
        ^ in case anyone else ever needs to use apache (instead of nginx) to proxy pass to gunicorn
      • mercutio22
        doughj3: virtualenv --version
      • 1.7.1.2
      • deni
        mattmcc: GrahamDumpleton if i was able to use nginx this would be done in like 5 seconds..instead i lost 2 days XD but atleast i learned something
      • doughj3
        I need to get off mint 11.
      • mercutio22
        doughj3: get debian man
      • doughj3
        mercutio22: I run debian on my servers, but not as my workstation
      • mercutio22
        doughj3: too bad
      • radez has quit
      • finspin joined the channel
      • deni
        doughj3: why not?
      • haven't used mint though.....can't say that i care to
      • doughj3
        deni: I find mint to be extremely "usable"
      • I was a windows guy for 90% of my life- mint is aesthetic and I dont find myself fighting with the OS when I need to do something
      • bitmonk has quit
      • I havent tried debian with a gui in some years, though
      • Maybe I'll give it another look
      • See if I can get it running with MATE and the mintmenu
      • deni
        debain was the first linux distro that really worked well for me....but that was like 9 year ago i think XD
      • bitmonk joined the channel
      • doughj3
        Mint also comes ready to do things- browser, java, flash, all set up.
      • franckbret has left the channel
      • deni
        but i have to say i've stuck with ubuntu for about 7 years
      • doughj3
        Every time I tried ubuntu I couldn't stand it
      • deni
        it just works...don't feel the need to change it. debian is on the server
      • doughj3
        Stupid things like the window buttons being on the top left ,not top right, or the menu bar being on the top (not the bottom, or even *and* on the bottom)
      • I know it's all things you can change
      • but I prefer to just get to work
      • nkuttler sighs
      • deni
        doughj3: that's just a simple theme change :D .... most of the people complain about unity. but that also one apt-get away from change
      • *shrugs*
      • jita
        whats the best way to set date of datetimefield to a static one for example say 1-1-2012, and don't ask for date in the form. I tried using TimeField but it does not response django time zones
      • deni
        it works for me
      • doughj3
        yeah I havent tried it since unity, but from what I've seen I'm not impressed
      • nkuttler
        jita: set it in save() ?
      • jita: fwiw, timezone support seems to need quite some polishing..
      • deni
        doughj3: stick to what you feel comfortable with.... that's the best thing you can do...
      • Z_A_M
        signals are awesome!
      • natea joined the channel
      • doughj3
        Yep. That's the beauty of choice :]
      • deni
        nkuttler: can't he just set a default in the model? or better yes in the form?
      • Z_A_M
        FunkyBob: I was a fool for not listening to you in the beginning!
      • lacrymology
        Z_A_M: sure they are!
      • jita
        nkuttler, maybe i can append the date string with cleaned data ?
      • nkuttler
        deni: oh right, that could work
      • craysiii
        signals are amazing
      • pjs
        Z_A_M, NOT listening to FB is a foolish decision 99% of the time
      • deni
        you what else is amazing? beer :D
      • Z_A_M
        It took me a little time to figure them out bc the documentation is not the best.
      • jita
        deni, absolutely :P
      • doughj3
        So, am I crazy, or with django 1.4's new dir structure, and a venv on top, i get paths like /home/joe/ProjectName/ProjectName/ProjectName ?
      • the first for the venv, the second for the project which has manage.py in it, and the last with settings.py et al
      • Z_A_M
        pjs: I was just stubborn and wanted to see if I could do it manually. But I realized that the state I was trying to get data from didn't exist.
      • pjs: Well FB helped me realize it :)
      • lacrymology
        Z_A_M: the docs might lack some stuff, but I'm yet to see some docs that don't, and django's about the very best I've seen yet
      • craysiii
        doughj3 it should be /ProjectName/ProjectName/
      • pjs
        doughj3, I create my venv in the project root (where manage.py is)..
      • doughj3
        Ah, ok
      • deni
        lacrymology: i whole heartedly agree about the docs...best i've seen
      • doughj3
        so you start the project
      • and then make the venv?
      • pjs
        Yup
      • keimlink joined the channel
      • doughj3
        But dont you install django in the venv?
      • pjs
        Yea
      • lacrymology
        can I get a hand with FileFields? I've got a FileField(blank=True, null=True), and I want to save a file to it later, and I'm having issues with that
      • label is the name of the field