What do you guys use for managing and minifying assets?
mihasya has quit
mrydell has quit
schinckel
I have used django-compressor for quite some time: I'm currently really only using that for CSS/Sass at the moment. I'm experimenting with requirejs, and haven't found a nice way to combine these yet.
ohrstrom joined the channel
twoface joined the channel
sayan joined the channel
Fervicus has quit
hoot joined the channel
dash_ joined the channel
jangoh joined the channel
igorline joined the channel
FunkyBob
schinckel: I believe django-pipeline was blessed at Pyconau, and not just because of its py3 support
bulkan has quit
Milossh has quit
jasondot_ has quit
dodobas
yello
FunkyBob
dodo
nicklo has quit
Milossh joined the channel
MrS1lentcz
hello, how can i make datetime ">" and "<" conditions in query set using filter method?
*please
aliona_ joined the channel
FunkyBob
MrS1lentcz: __lt and __gt ?
dodobas
FunkyBob: my 'old' man :)
MrS1lentcz
FunkyBob: i found only _gt, thank you very much :)
It looks like technically they need to have a content_type (which there is one of per-model class, IIRC). Not sure what you would use in the case there is no model to associate with.
ChrisMorgan
Actually, that's still requiring content_type. Hmm.
I'll take a look at it later.
schinckel
You may be able to associate them with ContentType :)
ContentType.objects.get_for_model(ContentType)
ChrisMorgan
That sounds at least moderately evil. I'll check with the source if that would do Bad Things.
schinckel
I'd try to think about a more meaningful association, though. Since it is permission-based, you could associate it with the installed User class, or even Permission.
georgeirwin_ joined the channel
georgeirwin_
I'm having issues with celery-haystack: 'Settings' object has no attribute 'CELERY_HAYSTACK_TRANSACTION_SAFE'
Can anyone point me in the right direction?
ChrisMorgan
schinckel: thanks
jSanp joined the channel
jarshwah has quit
stephenmcd has quit
k_sze[work]
What's the best way to add custom contraints to a field in a Model? By overriding the Model.clean_fields method?
jvennik joined the channel
Bosox20051 has quit
viwal_ joined the channel
schinckel
k_sze[work]: Is it a field-level constraint, or does it affect multiple fields at the same time?
k_sze[work]
field-level
Natsu- joined the channel
schinckel
I've used a pre_save listener in the past, or override the save() method.
bulkan has quit
You may be able to use a field-level validator then. IIRC, they don't always run though.
ChrisMorgan has quit
TrioTorus has left the channel
BakaKuna joined the channel
moneydouble joined the channel
TrioTorus joined the channel
jangoh has quit
moneydouble has quit
souradeep joined the channel
jax joined the channel
sokmar
does aaugustin hang around here?
schinckel
sokmar: Never noticed him. FunkyBob might know.
bulkan joined the channel
ArcTanSusan has quit
grug joined the channel
FinalAngel joined the channel
nex9 has quit
jax has quit
bahamas joined the channel
nex9 joined the channel
bigkevmcd has quit
bigkevmcd joined the channel
jrm2k6 joined the channel
arturrro joined the channel
ghostlines joined the channel
jax joined the channel
Furoido
now i dont know which image app should i be using
jax has quit
ohrstrom has quit
ohrstrom joined the channel
jwa
Furoido: you don't have to, use whatever suits your project best. or make your own
Furoido
maybe i should make my own then, but i cant find a tutorial to to fit my needs
jwa, though theres a tutorial that i bumped into but it uses FileField instead of ImageField
bahamas
does anyone have some optimization resources? how do I know if my uwsgi server is using too much ram for example?
grandfatha has quit
bulkan has quit
sayan has quit
jwa
Furoido: not sure why you wouldn't want to use ImageField - also you might want to look at easy_thumbnails, I often just go with that
jangoh joined the channel
Furoido
jwa, i want to use ImageField, but the tutorial that ive got was using FileField