assumed I'd like to crate a REST api endpoint with django (1.9) for external sources. is django-nap "the" tool to implement the api? data encoding in json would be optimal.
tbaxter
then show the complete ativade model
shangxiao has quit
vyscond
tbaxter: this is the complete man
i swear .-.
tbaxter
no manager?
vyscond
finster: you can check rest framework now
tbaxter: no .-.
tbaxter: if you want it i can show the whole models
all the*
omarek joined the channel
johnny_b joined the channel
johnny_b
hello
vyscond
yo
tbaxter: seriously, no joking. i paste the whole code of those two models man :/
god dammit. why am i always hopeless about my bugs u_u
johnny_b: calling update_wrapper
isj joined the channel
keimlink has quit
johnny_b
vyscond: missed the param for the @wraps m(
eperzhand joined the channel
ubuntu_aze has quit
Debnet joined the channel
vyscond has quit
tbaxter has quit
aossama has quit
lorddaedra joined the channel
aossama joined the channel
omarek
Hi, do I need to set anything to use request.path in django templates ? I used to be able to just do {{ path }}
hutch34 has quit
jaywink joined the channel
vyscond joined the channel
eperzhand has quit
eperzhand joined the channel
govg joined the channel
shangxiao joined the channel
littlebit joined the channel
Itkovian joined the channel
vyscond has quit
Earlo joined the channel
ejb has quit
subho has quit
SntPx
If I have a model ModelBase that has 2 children ChildA and ChildB and if I want to create a relationship between a user and one of the models ineriting from ModelBase, can I do something like Relationship(models.Model) : child_project = ForeignKey(ModelBase); user=ForeignKey(User) ?
If I wanna create a Relationship like Relationship(child_project=instance_of_child_A, user=instance_of_user) will it work ?
telling_ joined the channel
maryokhin joined the channel
maryokhin has quit
vyscond joined the channel
maerteijn has quit
z1r0_ has quit
telling has quit
int3grate has quit
maryokhin joined the channel
jaywink has quit
linkedinyou joined the channel
maryokhin has quit
jessamynsmith joined the channel
jessamynsmith has quit
jessamynsmith joined the channel
josuebrunel has quit
yomilk has quit
josuebrunel joined the channel
yomilk joined the channel
keimlink joined the channel
hesperos joined the channel
hutch34 joined the channel
hesperos
how to use a datetime.datetime.now for DateTimeField in case the validation fails ?
jcda has quit
Evidlo
Can someone point me to the document on critical changes to 1.9?
I'm having an import problem with django.utils.unittest
iron_houzi
Anybody using let's encrypt on Heroku. I'm just wondering how to get automatic renewal going. I'm assuming that the renewal should be done with a cronjob, but I've never seen a crontab on my heroku-instance..
doismellburning
iron_houzi: Heroku scheduler
iron_houzi
Nice
amcorreia has quit
doismellburning
iron_houzi: not sure that's the ideal solution for cert renewal, but it's certainly what you want for "Heroku-y cron"
iron_houzi
doismellburning: Are you using LE on Heroku?
doismellburning
iron_houzi: no
nineinchnick joined the channel
sbasso joined the channel
sbasso has quit
iraj joined the channel
sbasso joined the channel
iron_houzi
doismellburning: Are you using SSL/TLS on any of your Heroku apps?
shangxiao joined the channel
Leeds has quit
sbasso has quit
doismellburning
iron_houzi: plenty
Tomatosoup1 joined the channel
Tomatosoup1
hi guys
staticshock joined the channel
doismellburning
iron_houzi: mixture of Heroku's cert and my own
Croves joined the channel
iron_houzi
doismellburning: OK. Do I get everything I need just by activating the ssl:endpoint, or do I need a cert as well? Or .. rather: if I go for the "Expedited SSL" app, do I need to pay for the ssl:endpoint as well?
littlebit
hi people, I have defined in one of my views.py to redirect to another url. I start off with the url 'foo/bar' and I fill up the form and hit the submit button. I want to be redirected to localhost:8000/login/index/id/ where id is a value given from my function at views.py. The problem is that I get redirect to the url 'foo/bar/login/index/id'. can someone help?
silverfix joined the channel
donspaulding joined the channel
doismellburning
iron_houzi: you get their SSL by default on their domain
iron_houzi: automagically
isj has quit
iron_houzi: their ssl addon is for ssl on a custom domain, for which you'll need a cert
iron_houzi: it's possible their "Expedited SSL" thing comes with a cert but I doubt it
iron_houzi
doismellburning: Sorry for only implying that I was talking about custom domain tls.. OK. I'll go with LE and pay the SSL endpoint fee ($20/month) then. Thanks for your help.
grumpi has quit
Croves has quit
doismellburning
iron_houzi: just use CloudFlare?
iron_houzi
doismellburning: I read that this option would cause cert warnings on certain older browsers..
.. unfortunately, I cannot assume the visitors will have moved away from XP and Android 4.0
doismellburning
iron_houzi: sure
fair enough
lacrymology joined the channel
lacrymology
is there some kind of meta tag that will tell feed readers the link to my rss fed?
feed
akarambir joined the channel
doismellburning
lacrymology: yes
qengho joined the channel
googling "meta tag rss feed" should help you...
lacrymology
doismellburning: sorry, just googled it now because I'm lazy.
thanks
I do have a django-specific question, though
fission6 joined the channel
qengho
Hi all. I'm working on a RESTish API, and I'm wondering if query set order_by parameters are considered safe from injection attacks. Can I take a user supplied string and use it as an order_by parameter and be hurt in any meaninful way?
lacrymology
with no feed_type, inheriting directly from django.contrib.syndication.views.Feed I'm getting this header: <rss xmlns:atom="http://www.w3.org/2005/Atom"; version="2.0"> << shouldn't it be RSS by default?
govg has quit
citizen-stig has quit
it has <description> items, not <subtitle> but the name is still weird