Doragonsureiyā
And yes. It is related ot Django , If i can't ask for help so why this group is made to help Django developer right?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Rohan
"django conf"
Rohan
I have no idea what this person is talking about. Vague explanation.
Rohan
Use OT for your regular charades. Don't clutter here, thanks.
Nikhil
Anyone have experience with creating Digital asset management system in django
Doragonsureiyā
Anyone have experience with creating Digital asset management system in django
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
Hi
Anonymous
Im trying to create products under one category through admin panel, but the url is bit confusing. Need help 😀
Aziz
Hi, i have a winError 10053 in django 3(py 3.8). Its happen after i had add user registration for as Corey Schapher's video. They're repo of project: https://github.com/AzizNadirov/azepug
Aziz
Exception happened during possessing of request from (127.0.0.1 59753)
shekhar
can i map to dictionary in sqlalchemy?
Jasurbek
Hello, I'm new to django. I'm going to render quantity of items in the cart in header of the website. but as default header is in the main.html. o know I have to add quantity to each context of each view. #question: is there any alternative way without adding quantity to each view context
Anonymous
https://stackoverflow.com/questions/62898364/getting-issue-with-automatic-handling-rename-migrations-with-django-models-and-i
Anonymous
Can anyone help me with my stackoverflow question
---
i deployed my website to the server but its running under virtual environment, as soon as i deactivate it its stop working
shekhar
hiw to extract access token from a string if its length is not fixed
---
Finally my site is working.. :)
Dhruva
NOT NULL constraint failed: register_notes.user_id
Dhruva
When trying to have ManytoManyField with user
Doragonsureiyā
hiw to extract access token from a string if its length is not fixed
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Nikolay
!ot
why you think it's offtopic?
Mirco
why you think it's offtopic?
Because it's not related to Django
Mirco
Or he moves to off topic group or to @python
Mirco
Not agree
And why do you think is it related to Django ? He didn't add any context related to the framework
Kannan
Hi Is anyone knows how to automatically capture django app logs/all transactions
Mirco
So the question is related to Python hence we have a @python group
Mirco
Hi Is anyone knows how to automatically capture django app logs/all transactions
You have a whole topic about logging on official docs and you can configure where to send logs for every level
Mirco
his question related to web in python, and django as well
Nope, because he didn't mention Django neither web frameworks so it's offtopic in a Django group
Mirco
It's a question for Python group
Mirco
Otherwise every new user starts posting question related to Sanic, FastAPI, Flask and so on and we as admins wanna keep the chat on topic strictly to Django
Kannan
his question related to web in python, and django as well
Yes implemented logging django app. Need each transaction I want to capture all the transaction from login to logout automatically
Kannan
It's related to django only
Mirco
We are not taking about your message
Mirco
You are on topic
shekhar
i think if anyone asks abt frame work other than django then it should be an offtopic
Anonymous
Can you please help
What kinda help you need? It is clearly saying what the error is about
Jai
NOT NULL constraint failed: register_notes.user_id
Check the model if there are any null values in it
Jai
Check the model if there are any null values in it
Do Share your models.py if this doesn't help
Jai
Did you ensure the format of datetime input
Jai
Cause I don't think you should get an error if you don't specify the micro second values
Jai
You're getting the error while taking input right?
Jai
What value did you enter?
Jai
What does the error message say?
Jai
Why do you use the T there?
Jai
Try a string like this: 02-05-2018 11:56:00
Jai
https://dpaste.org/3LCw
Can't figure out what's wrong, have you created a superuser though?
Jai
Try without the T?
Edwin
Hello, how do I enable user registration using the django default user model?
Gil
One question about post_save signals. I need to assign a computed number that is is from a serie. I'm thinking do it with signals post_save, but what will happen if 2 users save this model at the same time, is this a race condition ? Exist any procedure for do this?
Rohan
That's almost like saying what if I add row to db at same time and expect it to have same id
Gil
I don't think that happens ever
Oh yes, but is out-of-db computed field. I need to know what is the last integer assigned ( because I need to reserve a vlan) So, I don't know if post_signals is the method. I think I need first save the initial request, without computing this number ( asking for last entry + 1 ) and save...
Gil
Or maybe I can compute this number into models
Gil
https://www.smallsurething.com/how-to-fix-database-race-conditions-in-django-views/
Mirco
https://www.smallsurething.com/how-to-fix-database-race-conditions-in-django-views/
Django has also transaction.on_commit hook to avoid race conditions so the callback you pass to the hook will be done after the commit done into the database
Rohan
Pessimistic approach for concurrency issues
Rohan
Nice
Rohan
An auto increment field with a custom increment value if needed
Rohan
So you get row level locking inbuilt
Gil
An auto increment field with a custom increment value if needed
like a trigger direct to postgres?... I prefer develop code in python nor into db.. but can be a fine solution too, i'm right?
Rohan
https://chartio.com/resources/tutorials/how-to-define-an-auto-increment-primary-key-in-postgresql/
Rohan
Something like this
Rohan
And not a pk
Gil
Oh yes, is not easy because is a computed auto-incremend, it depens from another field, There is two int fields, S vlan C vlan. S+C are unique, autoincrement is C .
Rohan
I see