zanderle, I've never really poked at the admin before (this stuff was mostly created by other people) but I'm starting to realise its potential
TeeTime has quit
cssko joined the channel
TrioTorus has quit
jsaq007
FunkyBob: sorry to hassle you, I'm still learning django any chance you could show me a snippet of what the view for the domain redirect might look like?
you're calling show_menu from nav_bar.html and show_menu includes nav_bar.html. you're building an infinite nested nav bar
Paradisee
v0r0nwe: same error.
farn: so i should remove the include, and use show_menu instead?
that's what you mean?
mkoistinen has quit
{% include "main/nav_bar.html" %}
i got this inside layout.html
BeerLover joined the channel
v0r0nwe
ups
sry
Paradisee
\o/
Herehere has quit
BeerLover
i am inputting a date and want the epoch time range of that day
how to go about it?
Paradisee
if i include show_menu in the layout.html, it is global to all the content, is there a way to only use it inside nav_bar ?
shangxiao
what is an "epoch time range"
do you mean seconds?
BeerLover
see if i enter 21/8/2015
shangxiao
epoch means point of origin
BeerLover
i should get the timestamp from 0000 hrs to 2359
unix time
of that day
doismellburning
FunkyBob: you know what feels like rST's biggest mistake? Not having explicit header level syntax
shangxiao
BeerLover: you're still not making sense :P timestamps and ranges are not the same thing :)
BeerLover: it sounds like what your describing is exactly the steps you need to code up anyway
BeerLover
how to initialize a datetime object manually?
xterm has quit
shangxiao
datetime.date(2015, 8, 21) ?
or datetime.datetime(y, m, d, h, m, s)
etc
v0r0nwe
Paradisee: don't include a template if you render the same in a templatetag you include
Paradisee: so if you're including the menu template in layout.html, remove {% include.. %} and just use your {% show_menu %}
Paradisee: an alternate approach would be to let {% show_menu %} just be an assignement tag, use it like {% show_menu as links %} and after that you can include your nav_bar.html like {% include 'nav_bar.html' with links=links %}
which i find more cleaner in most cases (if an inclusion tag includes a big, complex template e.g.) but it just depends on taste, i think
Paradisee
too many information
im getting crazy already
xterm joined the channel
galuszkak joined the channel
jiang42 joined the channel
jeadre joined the channel
galuszkak
Does anyone use django rest framework? I have a problem, I have field which is PrimaryRelatedKeyField(many=True) and when I send request in JS as FormData() I got error on that field which states "u'Incorrect type. Expected pk value, received unicode.'