ѕнυĸυralι
AttributeError: 'User' object has no attribute 'customer' help
Suhaib_0.0
ѕнυĸυralι
💢💢
Traceback (most recent call last):
File "c:/Users/shyam/OneDrive/Desktop/Js_Round1/employee.py", line 3, in <module>
import pymysql
ModuleNotFoundError: No module named 'pymysql'
💢💢
I have installed pymysql but still this error comes?
Jucaoma
Hi all, im triying to use timepicker widget, in admin forms it works ok, in my own modelform didnt.
How i can debug that?
cj
AR
Hello all, I need to create web page that user can upload excel sheet then it shows in table, user can edit the data and download the data. I watched some tutorial but all of them did it for one model and I have three models, how I can achieve that any ideas?
AR
I tried to follow some tutorials but it doesn't work 😢💔
Vxvek
Guys can I use put request to submit a form ??
Anonymous
why i got invalid host header, I know my app has may problems but don't know cause of the problem
....
i have an error when i deploy my django app with heroku.
heroku deploying process is all set with no errors . but when i click view the app it give me error
"
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
"
how can i fix this ? procfile changed to Procfile .
Jayesh
Get error in celery Received unregistered task of type
T
Hi there! Could anyone help me with certificate based authentication? Any implementations or libraries ?
Pouya
T
Daredevil
Daredevil
....
Pouya
Yes, for the first time in localhost
it 's a little bit tricky , you can use certifi package and install it with pip .
but i used mkcert to generate keys and used those keys.
read this article ,if you had any problem just ask.
https://web.dev/how-to-use-local-https/
Vasilii
I ran celery beat like this celery -A ecommerce worker -B -l INFO --detach -f celery_beat_info.log --logfile=celery_beat_info.log -n CELERY_BEAT -s /home/projects/ecommerce/celerybeat-schedule in settings.py:
CELERYBEAT_SCHEDULE = {
'update_orders': {
'task': 'update_orders',
'schedule': 10.0
}
}
logfile: https://pastebin.com/bExdVH8s
Vasilii
why my task isn't ran, nothing about it in log file
Shivam
In userchangeform can possible email and mobile number exists
Validations with ajax
Alexander
hi there!
may someone help me with Exception Type: IntegrityError Exception Value: FOREIGN KEY constraint failed in easy db model?
I've tried to remove migrations but nothing helps😞
Item is:
name = models.CharField(max_length=50, verbose_name='Товар')
Others use that in next way:
item = models.ForeignKey(Item, on_delete=models.CASCADE, verbose_name='Товар')
feel free pm me😅
SNIR
Hi, what is the best way using terminal to create a user and add it to a group?
Maxim
SNIR
Yes
SNIR
python manage.py create user test test && python manage.py shell -c "from django.contib.auth.models import Group,User; ...."
Like this? Its look like ugly code
Alex
Alex
Alex
Alexander
Alex
https://dpaste.com/7CYKX73TJ
The above exception (FOREIGN KEY constraint failed) was the direct cause of the following exception:
Are you sure that this is a full one? It states that there is some upper part.
Alex
And I doubt that the exception just came from django's source.
Alexander
Alex
Alex
Could you please show then the ModelAdmin that describes foo?
Alexander
@alkalit May I send pm?
Alex
Anonymous
Access to XMLHttpRequest at 'https://backend.niksanat.repl.co/api/todos' from origin 'https://mytodosapp.niksanat.repl.co' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
i have have django-cors-headers
and whitelisted fronted url
V
Hello I need some help using django rest framework notification based....
Example-
Some user post a request then receive to other user
It's like sender to receiver and receiver to sender to get message notification.....can anyone help please about this solution I need....
Эмиль
Hi, can I change an existing project this way? I need to add a path to all links on the site. For example, instead of /hue/ -> /myfolder/hue/, /static/xxx.css -> /myfolder/static/xxx.css, everywhere. So that all requests to any components of the site include /mypath/ at the beginning. Is there a place where it can be entered, or is it too difficult?
Sergio
Hi people! I wanna send mails with sendgrid. I set it up and worked perfectly, but at the same time I'm using Djoser, and it package sends mails as well. Mainly when a user is created. And I got an error because Djoser takes EMAIL_HOST_USER like a sender but it should not, because that value is apikey, This cause an error. Could anyone tell me how can I change this configuration in djoser? Please help
chaygo
Hello everybody! I want to do app like google meet or zoom with django! So do you have any video or book to learn?
Игорь
Hi. i have the folder with static files (react js project build)> can i integrate this code to django frontend? Thanks
Doragonsureiyā
user
Without geoip any good package to get locations of user
ann
hi how to resolve unknown table error while change Manytomany field to foriegn key
Anonymous
Can someone tell me how forms.Regexfield works?
Alex
Alex
cj
Shilpy
Does anyone know how to use F object in Serializer?
Shilpy
Rohan
Rohan
If you’re a rookie with a small use case, try to integrate firebase or SQS
Rohan
Rohan
Allowing all to make cross origin requests can introduce vulnerabilities in your web app
.
Shilpy
Rohan
Any reason?
the only sane solution is using django channel it gets tiresome to manage as your project scales
Rohan
Rohan
.
Rajesh
Sorry
Rohan
Rohan
We generally use kafka or sqs like solutions.
Shilpy
Akshay
Where can i refer the backend codes
Akshay
I need to do the backend of a project the front end is done by reactjs and now the backend we have to use python djangoo its an edutech
p
hi team, I have stored epoch time in sqlite db, how to create filter query to select date range
Mirco
p
yes..
p
Mirco