pmachine: I still get a "No 'Access-Control-Allow-Origin' header is present on the requested resource" on the client, even though I've check the response in dev console and I see the appropriate header. I have some weird feeling it's something to do with preflight OPTION request or something that middleware eats up, any ideas?
SntPx has quit
kuter has quit
Goopyo joined the channel
streety has quit
slick666_work has quit
adrianribao has quit
lindii_ joined the channel
elyezer has quit
lionmac has quit
rge1 has quit
franco has quit
ohrstrom has quit
pmachine
disgrntld: if a preflight options request is being sent, you'll need to add additional Access-Control-* headers
Genitrust joined the channel
disgrntld: at minimum, Access-Control-Allow-Methods
ethos_w has quit
I would verify you have all the correct headers you need
One question.. te recommended way to create a user profile is via onetoone relationship or inheriting from AbstractBaseUser ?
disgrntld
I tried 'GET,POST,PUT,DELETE,OPTIONS', but I'll look over that link
subleq joined the channel
grumpi has quit
jladage has left the channel
jheyrlla has quit
yeukhon joined the channel
lionmac joined the channel
m8 has quit
lindii_
?
kenbolton joined the channel
toothe
I want certain HTML features/links to only render in the template based on logic. (ie, Admin's get a link, non-Admins don't). Is that done by the template
or do I do the rendering out of the template, and then send the HTML to the template
schinckel
toothe: It can be.
pmachine
lindii_: if your happy with the default user object, then a one-to-one relation is usually easier to set up
toothe
what's the preferred way? It seems that its bad to put logic in a template aside from a for loop.
lorddaedra has quit
schinckel
{% if request.user.is_admin %} ... {% endif %}
toothe
oh....okay, that works! :-)
lorddaedra joined the channel
lindii_
pmachine: thanks
FunkyBob
toothe: it's in the docs :P
ohrstrom joined the channel
elyezer joined the channel
lionmac has quit
sjaak_trekhaak has quit
toothe
FunkyBob: You know my thoughts on the docs :-)
but no, i've seen that before, I wasn't htinking.
elyezer_ joined the channel
NBhosting has quit
yeukhon has quit
sjaak_trekhaak joined the channel
elyezer has quit
daidoji has quit
areski has quit
daidoji joined the channel
Laybunz has quit
drapetomaniac has quit
FunkyBob
toothe: your thoughts on the docs? that they're too big?
Genitrust has quit
schinckel
Hmm. I've been using DuckDuckGo, and it seems to put other copies of the django documentation above the official site sometimes. That's not totally awesome.
d0ngz
my app is passing all tests. but is not showing the base bootstrap/html5 template
i get a weird message: onsider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)
schinckel
(broadening my search made it hit the docs first)
jarshwah joined the channel
d0ngz
this is my base.html https://dpaste.de/vjc1 below the code is my project directory structure
ryanhiebert joined the channel
any thoughtts why is not showing the default bootstrap template?
jfkdaddy joined the channel
hubx has quit
tylrr has quit
FunkyBob
d0ngz: where is the "default bootstrap template"?
d0ngz
good question, is exactly what i am looking at
lol, sorry
yeukhon joined the channel
havent slept in 2 days, i will die in 4 hours
donspaulding joined the channel
ainmosni has quit
unbracketed joined the channel
Ariel_Calzada has quit
FunkyBob
noted
okimoyo joined the channel
ohrstrom has quit
okimoyo
I'm in the process of rolling out my first app for actual, realworld, online, usage (eek). I'm trying to tighten down security on my webserver as much as humanely possible. Running gunicorn/nginx. Thoughts?
the_rat_ joined the channel
Has anyone used naxsi for instance, and it is any good?
don't let a task/process/user have access to anything it doesn't need
faldridg_ has quit
julianofischer has quit
okimoyo
FunkyBob: I have a firewall which only passes through ports 22, 80, and 443... I don't think I'm running anything non-essential on my out of the box ubuntu server installation
FunkyBob: As mentioned, nginx for reverse proxy. Mostly I'm just unsure what threats to worry about...