KAKASHI
I'm getting error Invalid username or password
Charly
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
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?
Doragonsureiyā
mani
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
Eric
Asad Ullah
can anybody help me about creating custom user model in django?
Asad Ullah
Anonymous
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
Doragonsureiyā
.
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
cj
Aba
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
.
.
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!
AnonymousAJ
I m trying, but after designing I cant access the data by employee name and date...
Doragonsureiyā
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?
.
Pravin
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
Mirco
Yogaraja
in form post method is not working, but action is working
Yogaraja
Mirco
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
Yogaraja
but what problem with post
Yogaraja
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
Sagar
Can anyone help me how to create searchable drop-down field in forms
..
Sagar
Sagar
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.