/srv/irclogs.ubuntu.com/2014/04/12/#ubuntu-website.txt

slangasekI am unsure why this template is not picking up login_url00:00
dakerslangasek: why do you need it in a template ?00:07
slangasekdaker: erm, the render_to_response() is missing large chunks of the context00:08
dakeryou can use the decorator login_required00:08
dakerhttps://docs.djangoproject.com/en/dev/topics/auth/default/#the-login-required-decorator00:08
dakerif a var is global and used everywhere you can use a context_processors instead of putting it each time in the context00:11
slangasekadded the decorator, still claims I'm not logged in00:19
slangasekah, was a missing RequestContext()00:22
slangasekkees: ok, I have the form loading now01:35
* kees switches windows01:37
keesslangasek: ah-ha excellent01:37
keesslangasek: what's next?01:38
slangasekkees: writing the bits to validate the form and save it to the db01:45
slangasekand eventually, probably fixing it so we don't accidentally leave spurious records in the db for people who click on 'register' but don't actually fill it out01:46
slangasek- splitting the table between user profile data and dc14-specific data01:46
slangasek- prettifying the formatting01:46
keesI thought it auto-validated since we've got the field type specified?01:47
slangasekright, maybe there's no additional validation needed, but it does have to be explicitly saved to the db01:50
slangaseksome of the field types need adjusted, too still01:51
slangasekkees: pushed another commit, name/email prepopulated now02:03
keesexcellent!02:11
slangasekhow do you set the label for a ForeignKey field?02:50
slangasekaha; verbose_name= to the constructor02:56

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