Mi
ELK
Mi
Maybe you can get more help in a devops group
Mi
Does anybody know about one?
Django Bot
>> Links
- Django ORM Cookbook — Django ORM Cookbook 2.0 documentation
Luis
https://dizballanze.com/django-project-optimization-part-1/
Luis
Guys, I'm having problems with silk middleware when I put django-debug-toolbar in my applications.
Luis
Is there a way to split middleware setting between setups?
Django Bot
>> Links
- How To Make a Django Blog App and Connect it to MySQL | DigitalOcean
Thomas
Hi everyone. Guys is possible attach with field some variables without render it inside <input> field? I tried add extra attributes through widget but it is the same. Everytime it renders automatically inside <input> field and I need it like separate variable. Is somehow possible do this without custom field creation? Problem is within Input class: "format_html('<input{} />', flatatt(final_attrs))"
Django Bot
>> Links
- Django ORM Cookbook — Django ORM Cookbook 2.0 documentation
Django Bot
>> Links
- How To Make a Django Blog App and Connect it to MySQL | DigitalOcean
- Python Django Crash Course - YouTube
Django Bot
>> Links
- Terrible choices: MySQL | ionel's codelog
Mi
But it feels robust
Daniel
Mi
Yes my intention is using pipeline plugin
Mi
And launch the docker compose commands
Mi
Have you done something similar?
Anonymous
Thomas
I didn't understand your question properly
When you add extra widget attributes to field it will be in <input> element in template rendered automatically (when you inspect in browser). But I need this like django template tag separately that I can do things with that in template.
Thomas
Sorry for my english.
Anonymous
Ahh
Thomas
Do you understand what I mean? :D
Anonymous
Yes
Thomas
But I need it with field together because when Im using forloop in template in form.fields I want it inside that field like variable.
Thomas
For example {{ field.custom_var }} . Right now all I know how it works it is that it is inside {{ field }} tag and I dont know how to get that variable. Also it is rendered automatically and I dont want it inside <input> html tag.
Anonymous
You can make custom tags
Anonymous
https://docs.djangoproject.com/en/2.0/howto/custom-template-tags/
Anonymous
This documentation should serve you fine
Thomas
But I have to make custom class Input to change init method?
Thomas
I saw docs also try find answer with google...without any luck.
Thomas
I dont need template tags itself...I need field additional variable.
Anonymous
You mean attributes?
Thomas
I need some field variable outside field. Like for example bootstrap column class.
Anonymous
a.attributes?
Thomas
Yes attributes.
Thomas
But outside field :D
Thomas
Hard to explain :D ...standard field variables are placeholder, required, value, name ...Correct?
Thomas
Yes outside <input> element.
Anonymous
Oh god
Thomas
:D sorryyyy
Anonymous
At last I understood
Thomas
Thank you :)
Thomas
Is there any way how to add atribute that will be outside field <input> element?
Anonymous
Well you can use attribute outside the field
Anonymous
By just using it outside element
Anonymous
But you'll have to separately use it
Thomas
I know but that attribute is rendered inside <input> and I dont know how to stop it.
Anonymous
You can't do that the way you want
Anonymous
Or maybe you can🤔
Anonymous
Wait a sec
Thomas
I know one way...forms.Input(widget) class has render method where is <input{} > definition. But I dont like this way.
Anonymous
Anonymous
I did myself similar but in the init
Anonymous
init
Anonymous
If you're so keen try Jinja maybe
Thomas
Yes but there is way to overload that Input class because I dont want to create all new custom fields and widgets for this only because I want to add my new CustomInput class.
Thomas
Can you show me please some example? I know how to overload with init...but I dont know where :D
Thomas
I have to make a class that will be inherited from form.Input something like "class MyInput(form.Input):" and where will be init
Anonymous
I am not with my laptop
Anonymous
Anonymous
You are using forms right?
Thomas
Yes
Anonymous
Then you can mangle with forms too
Anonymous
But, I think modifying field is better
Anonymous
You'll just have to modify
Anonymous
What you want
Thomas
hm ehm but I really appreciate some example (some working :D)
Thomas
I need to see how to do that :( because Im trying this whole week.
Anonymous
Currently I only can point you to doc
Anonymous
Thomas
It is ok :) but when you will be on laptop can you send me some example? Please. I would very appreciate it.
Anonymous
Approximately 13 hours
Thomas
Im newbie for django and I have to do some hard things (for me hard).
Thomas
No problem 13 is good 👌
Anonymous
@inchidi may help earlier
Anonymous
Dunno if he is awake