Fuyou: It's fine if you want a performant wsgi server with a learning curve. For people just getting set up, I'm recommending the gunicorn API every time. Frankly, I wish the uWSGI folks would get it together and offer some sane out-of-the-box defaults so people could just use that.
The problem is that, when the form is invalid, it does not bound the form. (When it is valid, it just saves the users correctly.)
Do you know how can I fix this issue? (It does not show errors and just refresh the page with an empty form, no error is shown.)
enkrypt joined the channel
Leeds has quit
morenoh149
yesterday someone explained that I should put data generating code outside of my models. Could someone share an article or elaborate on this?
r29v joined the channel
moldy
what kind of data generating code?
iiie0 has quit
mtellez_ joined the channel
pete___ has quit
morenoh149
dunno, my original question was how to avoid if Model A can generate Model B, and Model B can generate Model A in their functions. someone said data generating code should exist outside of the models
moldy:
jerojasro has quit
Mulugruntz has quit
jerojasro joined the channel
rpkilby joined the channel
m712
i want to filter a query after ofsetting it, can this be possible?
i want to sort a set of objects by a field, offset them, and then filter them by another attribute
to reduce work in python code
iiie0 joined the channel
guess i can't do that
:<
Cavedude has quit
Cavedude joined the channel
the_rat has quit
fission6 has quit
Diemuzi joined the channel
bradfordli123 joined the channel
xliiv joined the channel
energizer joined the channel
scunion joined the channel
rpkilby has quit
lavalamp joined the channel
rpkilby joined the channel
hugotacito joined the channel
hugotacito
hello guys is it normal to django to call has_*_permission in every admin page?
the has_add_permission from postadmin is been called at commentadmin
Cavedude joined the channel
mojtaba
This is the View that I am using: http://paste.ubuntu.com/25639991/ And I have created a template_tag: http://paste.ubuntu.com/25639998/ The problem is that, when the form is invalid, it does not bound the form. (When it is valid, it just saves the users correctly.) Do you know how can I fix this issue? (It does not show errors and just refresh the page with an empty form, no error is shown.) I have more than one for
InfoTest joined the channel
Xard joined the channel
sol1x has quit
blastis has quit
sol1x joined the channel
andyhoang has quit
theology has quit
krfa1 joined the channel
jtiai^ joined the channel
NomadJim_ joined the channel
fission6 joined the channel
d3mvs has quit
hugotacito has quit
antfoo
I expect it's a trivial problem:
I named an urlpatterns (with name=) but I get an NoReverseMatch error when I'm using reverse() in the model
What's the trick here?
andyhoang joined the channel
Electrometro joined the channel
imack joined the channel
iNCoNFuN has quit
andyhoang has quit
ok, I found it; I missed the 'appname:'
epopt has quit
foo
[redacted]
czart joined the channel
fission6
do you guys use gettors and settors for your models?
foo what are you trying to pass along?
hubot joined the channel
hubot
Hi!
m712 has quit
I need help with Solr
czart has quit
foo
[redacted]
Fuyou
foo extending is not about passing variables, why you want it? Overriding block doesn't help you?
hubot
I'm unable to load config for Solr core in Django project
sec^nd has quit
czart joined the channel
sec^nd joined the channel
foo
[redacted]
[redacted]
[redacted]
Fuyou
and you can't use it just as variable?
foo
[redacted]
m712 joined the channel
czart_ joined the channel
fission6
foo looks like you need to extend get_context_data and add whatever variables you want
like you typically would for a class based view
foo
[redacted]
czart_ has quit
[redacted]
czart_ joined the channel
czart has quit
rpkilby has quit
m712 has quit
[redacted]
[redacted]
[redacted]
mojtaba
This is the View that I am using: http://paste.ubuntu.com/25639991/ And I have created a template_tag: http://paste.ubuntu.com/25639998/ The problem is that, when the form is invalid, it does not bound the form. (When it is valid, it just saves the users correctly.) Do you know how can I fix this issue? (It does not show errors and just refresh the page with an empty form, no error is shown.) I have more than one for
foo
[redacted]
mtellez_
Hi, my data datetime is stored as UTC, to get it back I use something like "p.fecha_compra::TIMESTAMP AT TIME ZONE 'America/Mexico_City' fecha_compra_tz" but django's ORM fetch the fields without time zone. I have enable TIME_ZONE = 'America/Mexico' and USE_TZ=True, what I missing?
function based views are a great start and should be how you do things until you can actually leverage and get value out of something CB (like Mixins and reusable parts)
or you can leverage the Generic Views of course
andyhoang joined the channel
mofs
hey, can someone tell me more about this error?
Module "django.db.backends" does not define a "postgresql_psycopg2" attribute/class