Sherry
How can we do file/IMG upload In django signals
If any anyone have prior experience help me out
Артём
Guys, hello everyone. I might have a slightly stupid question. The thing is, I'm new to python and don't know if it's worth starting to learn Django now? Does he have any prospects? Thanks in advance
bikrant
What are possible questions that can be asked in job interview for a developer role based on django react?
Deleted
🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘 https://stackoverflow.com/questions/67633954/add-django-native-authentication-as-the-second-layer-of-authentication-after-us 🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘🆘 Stack Overflow
Hello
Can anybody tell me how do I get the user location like latitude, longitude in django
Hello
Use request.META
Kk what if I want create a model field to store that value
Anonymous
Kk what if I want create a model field to store that value
qq: Use ipaddressfield if you wanna store users ip Also you can collect things like useragent, ip address etc. For useragent you can use charfield If you know not big piece of JavaScript, you can collect info about users device. To retrieve geolocation you can send users ip to some service api endpoint, and in response you get location But, I think you have to make users know that you collect this data
Artem
How to delete password field from Django AbstractBaseUser? I've tried a lot of things, but nothing helped me at all.
Amir
Hi, I have a problem with django when using mongodb as Database here is my question I really appreciate any help and response https://stackoverflow.com/questions/67656602/django-query-to-get-count-of-all-distinct-values-for-column-of-mongodb-arrayfiel
Anonymous
How to delete password field from Django AbstractBaseUser? I've tried a lot of things, but nothing helped me at all.
You can inherit it and use it as user model (set it in settings.py) then set password = None After that probably django won't create that column but it can make many problems. Why do you want to do that?
Artem
You can inherit it and use it as user model (set it in settings.py) then set password = None After that probably django won't create that column but it can make many problems. Why do you want to do that?
I just wanna make a simple auth form (phone, code). User enters a phone, get a code and log in to account. No need passwords and other fields.
⁣ ⁣⁣⁣ ⁣ ⁣⁣⁣ ⁣⁣𝙼𝚘𝚘𝚕𝚎𝚛⁣ ⁣⁣⁣
elementary question, getting this error: The current path, notify/1/vote/, didn’t match any of these. views.py def vote(request, question_id): return HttpResponse("You're voting on question {}.".format(question_id)) urls.py path('<int:question_id/vote/', views.vote, name='vote'), #urlpattern
Anmol
Can anyone send me study material ??
Shiv
Hi I want to write test cases for views.py calls
Shiv
Can someone point me place where I can find
Anonymous
Who has frontend codes for practise in django
William
Most of the books are either available in pdfdrive or zlibrary sites
⁣ ⁣⁣⁣ ⁣ ⁣⁣⁣ ⁣⁣𝙼𝚘𝚘𝚕𝚎𝚛⁣ ⁣⁣⁣
error in urls.py
yeah, it would be great if u tell me where it went wrong
⁣ ⁣⁣⁣ ⁣ ⁣⁣⁣ ⁣⁣𝙼𝚘𝚘𝚕𝚎𝚛⁣ ⁣⁣⁣
Daler
dude, what's different from what I just wrote?
U missed '>' after question id
⁣ ⁣⁣⁣ ⁣ ⁣⁣⁣ ⁣⁣𝙼𝚘𝚘𝚕𝚎𝚛⁣ ⁣⁣⁣
U missed '>' after question id
OH MY FUCKING GODDDD BRO, FUUCCCKKKKKKK
⁣ ⁣⁣⁣ ⁣ ⁣⁣⁣ ⁣⁣𝙼𝚘𝚘𝚕𝚎𝚛⁣ ⁣⁣⁣
Anonymous
I just wanna make a simple auth form (phone, code). User enters a phone, get a code and log in to account. No need passwords and other fields.
Ok so you don't need to change AbstractBaseUser you can simply create a form and handle authentication yourself
Anonymous
Hello friends Can you tell that how can we make the like system in django or suggest any video related to it. For example we can add comment by using the form.py But how can we make the like system?
Artem
Ok so you don't need to change AbstractBaseUser you can simply create a form and handle authentication yourself
Does it mean I need to have 2 models, first for registration form and second for auth? Having trouble to realize it
Anonymous
Does it mean I need to have 2 models, first for registration form and second for auth? Having trouble to realize it
You don't need another model you can create a regular form (independent to model) and use its data to generate code/ validate code / authenticate
Robz
React or vue will be good for django..for beginner
shashikant
I am using list_filtet in my admin and passed foreign key field like ('author__name',).but in my django admin,I get the filter with (by name )only.need your help guys . Thanks
Amir
People on reddit respond faster
tnx a lot🙏🙏🙏
pat
Simple question guyz.. I'm learning Django right now.. Is it possible to make half of my website static to host documentation with mkdocs and the other half dynamic? Will it work if I simply install mkdocs in the static folder in django? Or do I need to install mkdocs in a new app in django? Hard to find some good tutorial on Google.. Thanks for your help
pat
Yes you can. just you'll need to configure webserver (forexample nginx) as you need to handle it
I'm running on apache, I guess you talk about httpd.conf? I don't understand it very well.. Isn't it it easier to just install mkdocs in static folder in django?
Anonymous
I'm running on apache, I guess you talk about httpd.conf? I don't understand it very well.. Isn't it it easier to just install mkdocs in static folder in django?
If you place it in static files path it will work but if you want to make its urls separate of other static files (like css, js) you can configure your webserver a bit to do it forexample instead of '/static/docs/somewhat.html' it can be '/docs/somewhat.html'
Anonymous
I get it Thank you very very much God bless you
But I recommend you to don't serve documents like static files because they're not (css, js, etc.). Your website can have 3 parts that makes its structure better (urls are just for example): 1- Main django app => example.com 2- Django app's static files => static.example.com 3- Docs => docs.example.com Serving docs is like serving static files by webserver
Anonymous
who wants a quick job paid in bitcoins and if your good we will work longterm and you will get paid in bitcoins daily minimum $500. dont reply if you sound like police or you think i am lying. looking for a old school python coder to make good money. no newbies! ко жели брзи посао плаћен у битцоинима и ако је ваше добро радићемо дугорочно, а ви ћете бити плаћени у битцоинима дневно минимално 500 УСД. не одговарај ако звучиш као полиција или ако мислиш да лажем. тражећи стари школски питхон кодер да би добро зарадио. нема новајлија!
Anonymous
In Django channels, self.scope['user'], always shows anonymous user, please help.
sunita sharma
Scrapy module in python ? Im Not able to extract the pound symbol properly in json format while scraping using scrapy module in python ..instead of showing pound symbol ..its showing some code \u00a3
John
How to add a custom input boolean field in a model serializer
John
I'm able to insert it in serializer but not able to input the boolean value
Anonymous
who have expert in react django rest orm
Doragonsureiyā
who have expert in react django rest orm
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Ejas
Hi Django Lovers, I had a trouble with one of my projects recently. The front end was calling the GET API continuously (Some Mistake) And the Server Usage went to 100% and then Disk IO too. Which is the best things to take care to prevent these? I am using Nginx & Gunicorn to Deploy the project Should I try changing the Nginx configurations?
Ajitesh
Husain
Guys any libraries you can suggest to convert django apps to microservices
Himanshu
I am trying to make a custom authentication where i login only with the user id without password . i searched over the internet but i couldnt find a good/working answer . i m new to django maybe this is the reason for why i cant find a solution . can anyone help me to solve the problem ?Thanks
Nimesh
yourapp.auth_backend.PasswordlessAuthBackend Use this
Nimesh
After this you can call authenticate without password
Nimesh
authenticate(username=user.username) Like that
Anonymous
How can we send message from admin to specific user Using django To transfer data from I app to another app ?
Owolabi
Hello guys, please how can I pass user ID to serializer for validation. Thanks
Ejas
serializer = ProductSerializer(context = {'request':request},data=request.data)
Ejas
def create(self, validated_data): user = self.context['request'].user print("User is") print(user)
rohittt
Can anyone tell me?
rohittt
Iam making template by using os method in 3.2 django version. However,while writing template name in setting. Py . It says template doesn't exist??
Abdulaziz
Good day which tutorial if better for rest framework API?
Mirco
Good day which tutorial if better for rest framework API?
Official docs and Django for APIs book ( imho )
Mirco
Means?
It means you have to study Django basics