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
Sergei
telegram bots?
cj
Sergei
thanks again
Anders (izzno / gooood) 🇳🇴
احمد
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
per month
Anonymous
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...
aan
Rajjix
aan
aan
Anonymous
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
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
Syed Jafer
sandboxing with docker
Syed Jafer
common docker or individual separate docker image for all users
George
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
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
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
ʚɞÇherry Łoveʚɞ
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ʚɞ
r0b0t
ʚɞÇ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
N S
Is gunicorn needed to deploy a django project ( i am not sure what is the use of it )
Shubham
Mirco
Anonymous
what is the "initial = {'key': 'value'}" in the doc about class-based views?
Mirco
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
Anonymous
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?