tga is trying to loaddata into transmeta models and hitting some problems with missing fields
SmileyChris
HowardwLo: order_by().distinct()
HowardwLo
SmileyChris: is that in addition to values_list() ?
nvm, stupid question XD
MrS1lentcz has left the channel
Ariel_Calzada joined the channel
johtso has quit
IVplay has quit
gazumps has quit
thedodd joined the channel
fllr joined the channel
chiasmj has quit
faldridge has quit
Guddu has quit
cwu has quit
cesar_bo joined the channel
thedodd has quit
cewing joined the channel
honestemu joined the channel
tyfighter has quit
jrm2k6 joined the channel
willingc joined the channel
chiasmj joined the channel
kenbolton has quit
prydie joined the channel
sxn has quit
mgrouchy has quit
chiasmj has quit
hydraidm801 has quit
jrm2k6 has quit
k_sze[work] joined the channel
BabySuperman joined the channel
cr8ivecodesmith joined the channel
kyheo has quit
BabySuperman
How do I make south recognize that it has already added some fields? I schemamigration --auto and it tries to re-add relations that already exist...!
prydie has quit
CodenameTim has quit
FunkyBob
why does it not believe it's added those fields?
BabySuperman
FunkyBob: you got me, the migration definitely exists I can see it... I run our fab fresh_db which resets everything and re-runs migraitons and it's there as well
nlh joined the channel
hsiojo joined the channel
fllr has quit
rukawa joined the channel
twoolie has quit
rudedogg joined the channel
siqi joined the channel
dylukes joined the channel
mattmcc
If running through all your migrations from a fresh DB works, then your current state is probably different from what south_migrationhistory thinks it is.
djapo has quit
djapo joined the channel
nlh
any idea how i can set a FK limit_choices_to a user's permission?
FunkyBob
freakboy3742: holy shit... I want to have your babies! [Translation: I just used Cricket]
nlh: you can't...
IVplay joined the channel
nlh
FunkyBob: oh :(
siqi has quit
freakboy3742
FunkyBob: They'll be on the next plan to Melbourne :-)
s/plan/plane
FunkyBob
freakboy3742: hahaha
touche!
freakboy3742
Glad you like it though.
mattmcc
FunkyBob: Because yours aren't enough?
munichlinux has quit
freakboy3742
Still got a lot of stuff I want to do with it; need to find time...
FunkyBob
freakboy3742: have been hunting for a test sequence so I can find why I'm getting unique constraint issues [probably, rally, because it's only half migrated to factory-boy]
djapo
what is the best hosting env that provides free time for testing django apps, ive read about heroku but the way their settings work with django seems awkward
furoido joined the channel
at first glance
JohnDoyle joined the channel
mattmcc
djapo: It's not that weird, you just use dj-database-url.
nicholasserra has quit
remark123 has quit
BabySuperman
djapo: seems awkward, isn't really
djapo: best option for "Free" I think
rthat has quit
FunkyBob
saw something on G+ the other day about "top 5 free django hosts"
a_little_birdie
I have a models.CharField(unique=True, blank=True).. what I want is, if it is blank, I don't care if it's unique. If it's not blank, I do. But django complains about duplicate values when I enter a blank. The database allows it (using NULL) but does django?
djapo
mattmcc: what would multiple databases look like with that
silly question but, when i want to restart the development server, i do quit then run again, is there a way to reboot with a single command ?
klysium joined the channel
jonesy is now known as chrisjones
FunkyBob
Brachamul: dev server generally restarts itself
Brachamul: you mean "manage.py runserver" , yes/
?
HowardwLo
mattmcc: thank you
Brachamul
yeah i do funkybob
FunkyBob
Brachamul: well, unless you're editing a template [or adding a new template tags lib] it should restart on its own
nedbat has quit
munichlinux joined the channel
Brachamul
oh ok
i tend to do it everytime i change something :o
thanks
Should i use [ url(r'^login/$','django.contrib.auth.views.login', name='login') ], or should I do [from django.contrib.auth import views] and then [url(r'^login/$', views.login, name='login')]
mattmcc
Brachamul: It doesn't need to restart for template or static file changes. When you change a file it already knows about, watch it restart itself automatically.
alexsnake joined the channel
Brachamul: There are pros & cons to either urlpattern format, it's up to you.
FunkyBob
Brachamul: you could even just include django.contrib.auth.urls
Brachamul
So I could replace [url(r'^admin/', include(admin.site.urls)),] with [url(r'^admin/', include(django.contrib.admin.site.urls)),]?
ehmatthes joined the channel
FunkyBob
no
admin works differently
because you're adding the url patterns for a particular configure AdminSite instance
Brachamul
ah
okay
thanks again
nedbat joined the channel
EyePulp has quit
nedbat has quit
Why does Django still print errors when i purposefuly comment out the HTML which causes a bug? Does it not recognize the html comments as not needing to be processed ?
yogert joined the channel
mattmcc
Brachamul: HTML templates are not part of the Django template language, no.
holy hell, {# #} takes about 20 minutes to type on a french keyboard
xchu joined the channel
thanks btw :)
dlogs has quit
the_rat joined the channel
is there an out-of-the-box way to enable users to create accounts on my django site or should I create a form and use create_user() ?
amaier
I'm creating a custom command, but when I try to run it it says unknown command. Is there anything I need to do to register it aside from putting it in myapp/management/commands/?
Guddu joined the channel
the_rat has quit
Also, management/commands was not created when I created my app. Is that supposed to be the case?