#django

/

      • foo
        [redacted]
      • shangxiao
        celesrina: if you follow the django girls tutorial they recommend it
      • celesrina
        because its all related
      • have you guys done react stuff
      • schinckel
        foo: You can get it...
      • celesrina
        its crazy
      • lb1c joined the channel
      • monkeypuckpuck
        celesrina: yes you should learn it, but dont think you have to. Its recommended for people who are more advanced IMHO.
      • foo
        [redacted]
      • monkeypuckpuck has quit
      • celesrina
        I am a front end developer
      • but I wanna understand this stuff so I dont make an ass of myself on interviews
      • my last interview the guy yelled at me
      • for having one commit
      • on my project
      • shangxiao
        :)
      • celesrina
        the initial commit
      • shangxiao
        i would walk out of an interview if they yelled at me
      • schinckel
        monkeypuckpuck: Can't find a direct link, but https://mail.python.org/pipermail/boston/2016-J... references it
      • (re not using sudo pip)
      • celesrina
        he is like why do you only have one commit? uhh I did the project locally then I added it to git? THATS not good enough!!
      • shangxiao
        celesrina: which country are you in?
      • celesrina
        Canada
      • shangxiao
        east or west coast? i think some django friends of mine were doing a vancouver django meetup
      • foo
        [redacted]
      • celesrina
        east coast
      • I wish I could work in the states
      • schinckel
        foo: That's exactly what I was about to say - that's where I get it from.
      • celesrina
        but the american government frowns upon canadians working there
      • shangxiao
        ping jessamynsmith
      • jessamynsmith
        hi shangxiao
      • shangxiao
        hiho! you have a fellow canadian here :)
      • jessamynsmith
        indeed
      • schinckel
        This is where they apologise to one another.
      • shangxiao
        xD
      • celesrina
        sorry for the maple syrup incident
      • foo
        [redacted]
      • [redacted]
      • fpghost84 joined the channel
      • schinckel
        foo: If you do a GET on the view, it will reset the storage for this session.
      • celesrina
        Kappa
      • schinckel
        So to move from page to page you need to use a POST request.
      • foo
        [redacted]
      • [redacted]
      • mattmcc joined the channel
      • shangxiao
      • foo
        [redacted]
      • OtherAllan has quit
      • schinckel
        👍
      • shangxiao
        🍻
      • foo
        [redacted]
      • Dunedan_ joined the channel
      • [redacted]
      • celesrina
        I wish freenode had a discord server
      • discord is way better :D
      • Dunedan__ has quit
      • foo
        [redacted]
      • mojtaba
        Hello, I am using a context_processor method to make signup form available in each page. I am using also the CreateView class to handle the signup form. The problem is that when the form is not valid the page just refreshes with fresh form and no errors are displayed. Is there anything that I have to add to CreateView class? (because I have changed the context variables name from the default.)
      • sec^nd has quit
      • luckyfluke has quit
      • luckyfluke joined the channel
      • govg joined the channel
      • luckyfluke has quit
      • mj_k joined the channel
      • celesrina
        when I did python3 -m venv myvenv
      • I dont see (myvenv)
      • in my terminal
      • ionescu77 has quit
      • jessamynsmith
        celesrina: that command just creates the venv
      • you still have to activate it
      • celesrina
        how do you activate it?
      • shangxiao
        celesrina: source myenv/bin/activate
      • aditya_r joined the channel
      • celesrina: it's important to remember to activate whenever you open a new shell in terminal. it will stay activated until deactivated or the shell is closed.
      • mojtaba
        I found the problem, I have giving the form with another name to the template, using context processor. But the createView is using the form. So that is why it does not bound the form. Does anybody know how can I fix this problem?
      • mattmcc has quit
      • ionescu77 joined the channel
      • sec^nd joined the channel
      • celesrina
        ty :D
      • wait
      • jessamynsmith has quit
      • that command says no file or directory
      • shangxiao
        celesrina: run it from the same place that it was created in
      • jessamynsmith joined the channel
      • celesrina
        I am in the directory
      • jhfisc joined the channel
      • it asked me to create a djangogirls folder so I did
      • and I created the venv
      • using python3 -m venv myvenv
      • shangxiao
        is there a folder named 'myenv'?
      • rainy-day joined the channel
      • stickperson has quit
      • jhfisc has quit
      • rainy-day has quit
      • celesrina
        in my home directory no
      • on my mac
      • shangxiao
        ah right so it sounds like you need to run that command from the djangogirls folder
      • (check that there's a 'myenv' in that djangogirls folder)
      • celesrina: oh i just reread the tutorial - they've used 'myvenv'
      • with an extra v
      • i misread your command above sorry :)
      • __love__ joined the channel
      • celesrina
        I still dont see that
      • in my home directory
      • on my mac
      • rainy-day joined the channel
      • jhfisc joined the channel
      • mattmcc joined the channel
      • jhfisc has quit
      • ionescu77 has quit
      • ionescu77 joined the channel
      • ionescu77 has quit
      • ionescu77 joined the channel
      • ionescu77 has quit
      • ionescu77 joined the channel
      • ionescu77 has quit
      • ionescu77 joined the channel
      • ionescu77 has quit
      • jhfisc joined the channel
      • shredding joined the channel
      • shredding has quit
      • milardovich joined the channel
      • mojtaba
        Hello, I am using a context_processor method to make signup form available in each page. I am using also the CreateView class to handle the signup form. The problem is that when the form is not valid the page just refreshes with fresh form and no errors are displayed. Is there anything that I have to add to CreateView class? (because I have changed the context variables name from the default.)
      • mj_k has quit
      • elbarto_e joined the channel
      • jhfisc has quit
      • FunkyBob
        mojtaba: does the signup page work all on its own, when you start from that page?
      • mojtaba
        FunkyBob: Yes, I removed the context processor and "with form=signupform" from the template, and it was working.
      • milardovich has quit
      • FunkyBob
        ... no
      • that sounds very wrong
      • probably better to use an inclusion tag, though
      • elbarto_e has quit
      • which template are you doing that in... and why ?
      • jhfisc joined the channel
      • elbarto_e joined the channel
      • mojtaba
        FunkyBob: I want to have signup form in all the pages, so I created a context processor.
      • FunkyBob: In the registeration template I am adding it.
      • FunkyBob
        yes, that's just about rendering
      • mojtaba
        I have also one for login.
      • FunkyBob
        why are you using "with form=signupform"?
      • where ?
      • where and why
      • mojtaba
        So what should I do? I shouldn't use with form=signupform, in the template?
      • FunkyBob
        WHICH TEMPLATE?
      • you're giving so little detail, it's hard to know
      • imack joined the channel
      • mojtaba
        I am using it where I want to include the registeration form in the main page.
      • {% include regireationForm with form=signupform %}
      • FunkyBob
        ...