Ashok
TypeError: init() got an unexpected keyword argument 'related_name'
Ashok
i tried migrate from 1.8 to 1.11
Mirco
Share your model
Mirco
Your model, even if I understood how's it
Ashok
creator = models.ForeignKey(AUTH_USER_MODEL, related_name='created_setts')
Mirco
!paste
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
Ashok
https://dpaste.org/np1p
Ashok
https://dpaste.org/ep8x
Mirco
Ashok
No, there are too many models
Ashok
it was working fine in 1.8
Ashok
now I am migrated to 1.11
Ashok
then I got this issue
Ashok
https://stackoverflow.com/questions/19495329/django-unexpected-keyword-argument-related-name
Ashok
this is not helped me
Ashok
https://dpaste.org/hrz1
Anonymous
Hey, I made a website using django but it's running so slow locally. May I ask why? Is it because I have added 5 apps in 1 website or there is something else?
Thank you!
Anonymous
http://dpaste.com/37JZ62S.txt
Anonymous
Directory indexes are not allowed how do I fix
Anonymous
Guy's, anyone here has used "huey" or any other async task queues for django before?
Anonymous
Anonymous
Nikolay
Anonymous
I want that when the user sends a POST request on my api endpoint, the object is added to the queue. Another consumer service then reads the object from the queue and send it to another API with one extra constant field. If this POST request to another API fails a specific number of time then I set my model field as FAIL in db, otherwise SUCCESS.
Anonymous
Anonymous
Is celery the right way to achieve this or is there some other way too?
Deepak
hi, I am following Denish Django tutorial User Registration and Login Authentication | Django (3.0) Crash Course Tutorials (pt 14) in which form.errors not working also registration not working I don't know why?
Nayan
Hi may be this is stupid question but can anyone please help me on this
I am using mysql at backend
I want django orm query for this
Select * from tablename groupby serialnumber order by filedatetime desc
How to write this query with django for mysql , for me when i write django query it says group_by is not supported .
Nayan
Above i need all data and want to do group by for specific column
K
Why this command is not running on my terminal python manage .py makemigrations the error it is showing is no such file or directory
Anonymous
Anonymous
K
I m not using space still
Anonymous
Type ls in terminal or dir in cmd
Anonymous
K
No it is not there
Anonymous
No it is not there
It means you're in wrong folder or youve not yet created a django project
K
Ok thanks I will see to it
Anonymous
K
Yes that was the problem
Nikolay
Anyone?
Its a difficult question, I don't think anyone could tell you how to do it right. Celery is one of the options, if you need to be sure 100% that object won't be lost - Celery+RabbitMQ, otherwise rq+redis ligther and faster for that. second service should return information about fail/success request. Dunno what to say else
Anonymous
hello i connect my monogodb with django so how i will create model with monogodb
Anonymous
like class field
Nikolay
Anonymous
i have no idea i
Anonymous
use sql so i am confused how define class fetch data field
Deepak
UserCreation form not saving data in users
Deepak
I don't know why is it happening?
Shubham
I need little help wrt drf
In drf I have 2 modal
1. Parent modal
2. Child modal (has foreign key from parent modal)
Now I have to send a list of all the data from child modal. And a column data from parent modal.
How can i do this?
Nikolay
Nikolay
Anonymous
Hi I'm new to this group,
Anyone here from Dublin/Ireland?
:)
Deepak
got the solution actually i did not mention context
Anonymous
Ayy
Anyone experienced with editing PDF in-app?
I have a Django web app where users can view and edit documents within the app.
I am unable to find an option to save that updated PDF once it's edited by the user in the application
Jay
Hi everyone I have a django rest framework based API server and for the front-end I have purchased a template for the front-end which is in html css and js, so I want to know that do I need to create a separate hosting to serve the front-end or what should be the best approach for this?
Jay
I don't want to convert the front-end to django template I want to keep it as it is
Anonymous
Jay
Through Ajax
Jay
The authentication is on jwt
Anonymous
Jay
What do you mean by place everything at one place??
Shubham
Anonymous
Jay
I mean on the same host
Okay and what about the routing? Do I need to write routes in urls.py or how should it be?
Anonymous
Anonymous
For example with Nginx you can do something like website.com/ will render the static pages and website.com/api/ request will go to Django
Jay
I got this point, is there any tutorial for this?
Jay
Great thanks for the help
Praksh
Can we make the static website into dynamic website by django
Anonymous
What do you mean?