Sergei
ok, cool thanx for advice
Rajjix
It’s not that hard tbh, if you know django should be easy just get familiar with some newer syntax, the logic is basically the same
Sergei
telegram bots?
Sergei
thanks again
احمد
I want to connect country forginkey with state forginkey
احمد
Any help please
Anders (izzno / gooood) 🇳🇴
What do you mean =
cbag
Hi
cbag
A french group did exist
aan
May i know? How much salary Django developer in your country?
Anonymous
May i know? How much salary Django developer in your country?
Ukraine. It depends on your skill set, but on average $500 - $4000.
Anonymous
per month
Rajjix
Ukraine. It depends on your skill set, but on average $500 - $4000.
i know some that earn less than that junior developers with 1+ years of experience, ukraine is very cheap when it comes to salaries too many thieves in my opinion that just want to slave their workers instead of giving them what they deserve
Anonymous
for Sr
Rajjix
international companies pay good because they’re not Ukrainian😁
Anonymous
There are branches which are based in cities like Kiev, Lviv, Odessa
Anonymous
but it is only 3-4 companies anyway
Anonymous
I know that some junior student will agree to work for $300-$400 but the quality...
Anonymous
Ok, thank you Paul
what about your country?
aan
what about your country?
$400 - $600 for junior
Anonymous
$400 - $600 for junior
Where are you from?
Anonymous
Someone from China there? Interesting to know how much hardware engineer is earns?
cbag
French group of Django
cbag
https://t.me/joinchat/G1el41CUUBS-YcVJHzjhNA
cbag
Please share it
aan
Where are you from?
I'm from Indonesia
George
how would you handle a list of choices with a field to input manually? I think the rational thing is to generate only one column in the model and fix it in the form, right?
Syed Jafer
how hacker rank , code chef works
Syed Jafer
how do they sandbox the users code
Syed Jafer
and execute them
Syed Jafer
also any idea of sandboxing code in python
inchidi
how would you handle a list of choices with a field to input manually? I think the rational thing is to generate only one column in the model and fix it in the form, right?
if i really get what you need. usually i'll use get_or_create() and the <option> value will be object value (string for example) and not object id
inchidi
also any idea of sandboxing code in python
you should start from here since they actually just run this part but the code send through http.
Syed Jafer
sandboxing with docker
Syed Jafer
common docker or individual separate docker image for all users
inchidi
iirc you can do something like this list_display = ('get_technology',) def get_technology(self, obj): # return the string version of your technology technology_string = obj... return technology_string
George
I saw it but why :(
inchidi
because your technology field is choice. thats what choice means, it will map the data and store data as simple version ('0', '1', ..., '5') in your case
George
Mmm
George
No, in my database it saves the full version
George
Even then i get a hyphen
George
inchidi
i did this instead: https://pastebin.com/YC71VVh3 But it gives me some problems in the admin
oh i just realize that you dont have field for other_technology
George
Yeh, thats the trick, i dont need two fields thats the purpose
George
I just need a charfield for my other case and save it in technology
George
That works but admin works unexpextedly
George
Also, how do i reload the other field in case its not in my list when updating values?
inchidi
i guess it got hypen coz django admin trying to present your field as its display and fail since the choice invalid. so the trick broke your choice field.
inchidi
so i can only give you 2 option, use custom display field like this or update your model like this
Yashendra
you can use: {{ your_object.your_boolean_field|yesno }}
Hey cj if we want to customize it more like 'vlavailable' and 'not available' instead of true or false then how can we do it
inchidi
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Shubham
Anybody over here who can help me with web scraping
r0b0t
Hey guys. What is the best way to go around user authentication using django rest framework?
Anonymous
https://dpaste.de/oRGY
r0b0t
have you tried any?
I'm using token authentication but I read on stack overflow there are better ways to do it but the guy didn't mention those methods
ʚɞÇherry Łoveʚɞ
ʚɞÇherry Łoveʚɞ
AngularJS
you dont need use token to authenticate. just use django default is session-base.
R
https://www.nomoreransom.org/en/decryption-tools.html
R
Anybody over here who can help me with web scraping
Take a look to scrapy or simply go ahead with some requests lib and beautifulsoup
N S
Is gunicorn needed to deploy a django project ( i am not sure what is the use of it )
Anonymous
what is the "initial = {'key': 'value'}" in the doc about class-based views?
Mirco
what is the "initial = {'key': 'value'}" in the doc about class-based views?
For example when u have a form, u can initialize it with those data
Anonymous
did not quite understand
Mirco
Let's say u wanna display a prefilled form field So when u go to the page that render the form, you will see that prefilled field specified inside initial dict Do u understand now ? So if u have a date field in your form and u wanna always display the current date You can put into initial dict the current date
Fayeq
How to generate pdf with dynamic template
Fayeq
And the template has Persian data
dhelbegor
Hi guys, can someone help me with a doubt please? I have a lot of filters, and i need verify if a context exists in a queryset, if the value is positive i have return the filter How can i do this?