KAKASHI
I'm getting error Invalid username or password
Charly
No
I haven't asked a yes/no question
KAKASHI
I got it
KAKASHI
https://hastebin.com/share/ifudirizid.python
KAKASHI
CHECK my code
Amirhusein
Hello, i need to be created some default instances of my model, when first migration command is run, how to do that?!
Amirhusein
Considered using a management command?
What is it? Explain it more please 🙏
mani
Dynamically load a template from Django views and using Ajax
mani
Pls tell the solution if any known
kiran
Can anyone help me with In how to limit choices of a foreignfield based on another field in the same model?
mani
http://xyproblem.info/
No proper information
cj
No proper information
did you even read what's inside that link?
cj
Yes I read
so, did you realize what that page is for?
kiran
Can anyone help me with In how to limit choices of a foreignfield based on another field in the same model?
kiran
In django admin
⍣ ᏗᏝᎥ ⍣
can you help me
⍣ ᏗᏝᎥ ⍣
I want to calculate the prices of the products according to their characteristics by JavaScript and send them to Django
Toto Syrax
What's the most advanced projects to do with Django
Anonymous
What's the most advanced projects to do with Django
Ecommerce systems... Task management systems Team management system E learning system
Asad Ullah
can anybody help me about creating custom user model in django?
Anonymous
can anybody help me about creating custom user model in django?
I think you should set it as a custom view and give it a url pattern
Asad Ullah
I think you should set it as a custom view and give it a url pattern
i am talking about models not url or anything else @hillaryprogra12
Naughty
what is the code for the the user to edit,delete his/her on uploaded documents in django and display the documents uploaded by the corresponding user.can anyone give me the code for this question I have searched in internet but the answer for my question is not available
Alex
hi could you help me pls to find a good intro book to django framework? I've tried Django for Beginners by W. Vincent. It seemed pretty hard for me and I've dropped it by 3rd chapter. Then I've tried Django 4 for the Impatient by Greg Lim, Daniel Correa. The first two chapters were ok, it seemed to me to me that i began to grasp some main ideas. But then I've lost the understanding of the material. Probably does anyone know some good books for complete beginners? I feel really frustrated now ps: I'm not an absolute 0 in it, I have basic knowledge of internet, http protocol, html, css, DB, python etc
StI
Hey guys! Can someone help me please? I want to create an order with POST req, but I have "created" field with ForeignKey in my order model. What should I do?
Aba
Good evening dear members I wanted to know where to start to learn django thank you
Asad Ullah
What’s your issue with it?
i want to create a custom user model with different roles like teacher, student, and admin, etc. and i also want to use email as unique instead of username thanks for asking
Asad Ullah
i am waiting for responses
Asad Ullah
i have tried so much time but there is an error while migrating it
.
Hey guys! Can someone help me please? I want to create an order with POST req, but I have "created" field with ForeignKey in my order model. What should I do?
Try this foreign_id = request.POST.get(foreign_id) Order.objects.create( created = ForeignModel.objects.get(pk=foreign_id) )
Mohammad.H
Can anyone please help me with this ? It is very important!! can anyone spot the problem in this model im trying to use foreign key property as primary key django but now I cant add instance to  'FieldsofInterestandBio' table because It asks me to specify the (ostan_handler) manually and even then it doesn't let me add the record https://linkode.org/#7RAWQcYpN6yKwgRTntCrI5
AnonymousAJ
Can anyone tell me how can i make Database design for employee attendance module? Please!
Doragonsureiyā
Can anyone tell me how can i make Database design for employee attendance module? Please!
So, why don't you do it yourself first? When you have an issue with the Python code you wrote (read rule 5️⃣ to show your code), come back here and people will help you. 😉
AnonymousAJ
I m trying, but after designing I cant access the data by employee name and date...
Doragonsureiyā
I m trying, but after designing I cant access the data by employee name and date...
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Svail
Hello everyone. Can some one give me a hint on how I can do the following. I have Django view which calling progress function in for loop this function returns number1-100. I want to update it dinamicaly in HTML+JS as progress bar. What is the easiest way to do that? Can I pull it in js script directly from view non stop and update in HTML until it reach 100?
Svail
How I can catch that yield to display it in HTML non stop(basically stream it) maybe you have some example?
ajef
Hey guys I need a little help from the following code store(request): if request.user.is_authenticated: customer = request.user.customer order, created = Order.objects.get_or_create( customer = customer, complete=False) Now, How can I access the value of the variable order?
DoT
getting error
Chocolate_girl
What's the error
Yogaraja
"GET / HTTP/1.1" 200 5828 any idea for this error
Yogaraja
in form post method is not working, but action is working
Mirco
in form post method is not working, but action is working
If you don't share code we cannot help u
Yogaraja
.html
Yogaraja
path('contact',views.contact,name='contact'), urls.py
Anonymous
add a [method = GET ] just in case
Azamat
How can I send request with fetch to django without API?
Yogaraja
but what problem with post
Yogaraja
add a [method = GET ] just in case
sorry get method also not work
Mirco
Use pastebin.org
Yogaraja
it prints fail
Doragonsureiyā
it prints fail
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Yogaraja
Use pastebin.org
what is this where want to use?
Mirco
what is this where want to use?
To share code here that is readable for everyone
Sagar
Can anyone help me how to create searchable drop-down field in forms
cj
Can anyone help me how to create searchable drop-down field in forms
that's front-end feature, not Django... you can use select2 or something similar
..
Can anyone help me how to create searchable drop-down field in forms
I think u looking for Ajax feature to search as you type
Tobi
Hello everyone. Please, I need some help.😬 I'm working with Django DRF and I'm implementing my front-end with ReactJS. So, I'm rebuilding a blog I've already built sometimes ago (then with only Django and Ajax) with ReactJS this time. I've been able to serialize and retrieve my posts and display post detail in React front-end. But the issue is that I'm trying to get all the comments for each post detail and all the replies for those comments on a post. And I want to serialize them so that I can consume them in my ReactJS front-end. I have three models: Post, Comments, and Replies. I've made research and I've tried everything I saw, none is giving me what I want. I don't know whether I'm the one missing out on something. This is what I'm trying to achieve: post = {'post_title': '...', 'post_body' : '...', 'author': '...', comments: [ {'id': 3, 'Name': '...', 'comment': '...', replies : [ {'id': 2, 'reply': '...', 'user': '...'}, {'id': 3, 'reply': '...', 'user': '...'} ] ] Please help me out. Thanks.