theology: if you are starting to do tests, there's probably an existing code base? then you should probably also learn about refactoring
legacy code bases without tests are usually impossible to test "correctly"
theology
nkuttler, its a cron job script thats about 250 lines of code
jhfisc has quit
nkuttler
oh my, i thought it was a django app..
theology
nkuttler, its new
seven-eleven has quit
nkuttler, it is
nkuttler, cron job script adds data to database, django interface
seven-eleven joined the channel
nkuttler
sounds like your script should be a management command?
theology
nkuttler, its a cron job
nkuttler, it runs every night to add new data to the database from an api at a college
nkuttler, their db sucks so we're creating a new one or something
glassresistor joined the channel
andyhoang joined the channel
jhfisc joined the channel
jas02 joined the channel
lobo_d_b joined the channel
the_rat joined the channel
milardovich has quit
ASUchander1 joined the channel
jhfisc has quit
the_rat has quit
jhfisc joined the channel
ASUChander has quit
seven-eleven has quit
rodolfojcj joined the channel
seven-eleven joined the channel
aussiejames joined the channel
jhfisc has quit
jas02 has quit
gugah has quit
jhfisc joined the channel
andyhoang has quit
tourdownunder joined the channel
XofP has quit
jhfisc has quit
hilltop
How do I remove an object from an existing queryset? I have a variable pointing to the desired object.
jhfisc joined the channel
mattmcc
If you turn it into a list you can delete elements.
jhfisc has quit
hilltop
that might work for me
jhfisc joined the channel
seven-eleven has quit
jhfisc has quit
seven-eleven joined the channel
hilltop has quit
theology has quit
theology joined the channel
seven-eleven has quit
laudiacay
hey, i defined the url pattern logout like so: url(r'^logout/$', views.logout, name='logout'), and the view is just def logout(request): blah blah blah
laudiacay: IIRC there are existing logout/logout_then_login views that you could use in django.contrib.auth
jhfisc has quit
jhfisc joined the channel
jhfisc has quit
seven-eleven has quit
andyhoang joined the channel
seven-eleven joined the channel
jas02 joined the channel
jhfisc joined the channel
yoongkang joined the channel
Volund joined the channel
Volund
hrrrrrrngh
inspectdb is very handy. it created exactly the schema I wanted for an existing .sqlite file. Unfortunately it did not pick up on relations, primary keys, etc so I need to specify those myself...
droxey joined the channel
jessamynsmith has quit
ycon_
Disavowed: whats the major advantage over DRF?
muffinsofgreg joined the channel
hutch34 joined the channel
jhfisc has quit
jessamynsmith joined the channel
Neomex has quit
jhfisc joined the channel
Neomex joined the channel
ycon_ has quit
hutch34 has quit
jhfisc has quit
changlp has quit
seven-eleven has quit
Disavowed
ycon_ FunkyBob will be able to delineate the advantages much better than I can, but as I understand it, it's lighter, simpler to use and was written by one of the greatest Django devs in history!