pavan
how to divide file into 10 diff files using Chunk sizes in python
Maxim
how to divide file into 10 diff files using Chunk sizes in python
why do you ask here ? this is not a Django-specific question think twice
Anil
Does anyone tell me what is the use of dbrouters in django
M Latif
Hi friends i a problem with django I have two table this two tables are join But i can insert record and return type error _str_ none string I don't know how i can solve this pls help me
Doragonsureiyā
Hi friends i a problem with django I have two table this two tables are join But i can insert record and return type error _str_ none string I don't know how i can solve this pls help me
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
Alex
Does anyone tell me what is the use of dbrouters in django
mostly for multi db setups. So if you have a few databases, instead of specifying for each model which DB it should use (by writing using for each qs call), you can simply solve it in a db router.
Shafquet
class Meta:         model = User I didn't get can anybody explain it
Shafquet
This is into serializer class?
While using UserCreationForm
Hossein.A
While using UserCreationForm
Ok Does not matter This is says form class related to which model class...to use and listen to model fields
Ademola
hi guys. Please how do i use PermissionRequiredMixin in class base view. to grant permission to different user..e.g User of manager, employee and supervisor. They are to login in to different url after login. class ShowPage(LoginRequireMixin, PermissionRequiredMixin ListView).
__deadsec__
Im getting a runtime error on installing debug toolbar how can i clear the error?
Doragonsureiyā
Im getting a runtime error on installing debug toolbar how can i clear the error?
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
__deadsec__
HI I just started django , I follow some tutorial and tried to install debug toolbar but its showing runtime error, python and django are updated, and followed the ofiicial document of the debug installer still im getting the error https://linkode.org/#3kWnoL44qk5VpV4cILLQO6
__deadsec__
Read line 7
i just googled it and find that to add django.contrib.sites but it didnt make any change
Heet Raval
How to solve django integrity error not null constraint failed????
Heet Raval
Pls anyone
Heet Raval
Help me it will be super helpful
Charly
How to solve django integrity error not null constraint failed????
By not inserting objects with null values on fields that require these values
Rajeev
Drf serializer.save() return null for the trigger prossessed field... How to get field value?
Breeze
pls i need help with this error, i have done everything necessary but it still persist... OperationalError at /admin/ connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
Aman
how can i fill a single {{form}} on two different pages e.g. ask email on first if email registered then password on next page thanks in advance :-)
Aman
Better use two different form
but then UI will suffer......ang other option
Charly
Can you clarify it bit more
What part didn't you get?
Anonymous
Any learning guide to GraphQl with django
Alex
how can i fill a single {{form}} on two different pages e.g. ask email on first if email registered then password on next page thanks in advance :-)
Create 2 separate forms and save the data somewhere between the calls. Either in the user model or in the session https://docs.djangoproject.com/en/4.0/topics/http/sessions/
Shakthi
how can i fill a single {{form}} on two different pages e.g. ask email on first if email registered then password on next page thanks in advance :-)
Send email in session to the next page nd validate whether it s registerd or not in views then get password from form on next page
Heet Raval
What part didn't you get?
By not inserting objects...
Lavrentiy
Guys, I'm at a crossroads right now, do I need to read a book by Tony Gadis or Eric Mathis, or I can start learning Django right now? ( Before that I read the A byte of Python book )
Anonymous
I have a problem with my django app
Anonymous
But i dont know how to fix this
Aman
thanks alot now page is not refreshing and that is the real thing for which i was looking
Charly
By not inserting objects...
Do you now what it insert? I mean cresting objects in the database
G4st0n
Hello, need some help here im deploying my django App wich has now two folders, v1 and v2. The thing here is that v2 folder has some functionalities depending on v1 folder so, when i ran v2 app on local it goes one level up and everything is fine, but with Docker i get this
G4st0n
unknow or duplicate parameter WSGI Path
Anonymous
I have a django app on pythonanywhere and when i try to post fotos is not working
(⌐■-■)
Is there any error message?
Anonymous
It says card image cap under my post , where should be the photo
Anonymous
Unfortunatelly i cant post any photo on this channel
Doragonsureiyā
Unfortunatelly i cant post any photo on this channel
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Anonymous
I try to post a photo as example
Mirco
I try to post a photo as example
You can use external image service like imgur
Anonymous
Ook
Anonymous
https://imgur.com/a/9ec0tzL
Anonymous
Here is the error
Anonymous
The photos arent working
Mirco
The photos arent working
We have disabled them, if you read group rules you can read the point
Anonymous
I mean the photos on my django app
Bright
Please friends I'm a laravel developer and now I want to learn a new language
Bright
I have learnt python a little but my friend ask me to learn react, please any advise
Bright
Thanks so much
Doragonsureiyā
I have learnt python a little but my friend ask me to learn react, please any advise
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Charly
I have learnt python a little but my friend ask me to learn react, please any advise
If you are her we can only recommend you to learn Django any other suggestion is offtopic here
Fan / Ac
If you are her we can only recommend you to learn Django any other suggestion is offtopic here
i was about to say how he can use react with python here, but it seems offtopic here
Ziad
Hi all how are you, I have in my case a google, facebook, and twitter authentications with django rest framework so is there any library to use it to integrate those aithentication into my code?
Ziad
If anybody have any experience with it please give me some hints
Breeze
The port might be busy try another port
I have cross checked the port id and they are same... Actually! my django app was deployed on heroku and my database is postgres... maybe this info might help
Breeze
yes
The first time i deployed, it worked fine but i made some changes and pushed again and the admin went off....
Breeze
The first time i deployed, it worked fine but i made some changes and pushed again and the admin went off....
it was showing me error 500 whenever i route to admin, until i turned debug = True and it showed this error. Even when i run $ heroku logs --tail
Charly
yes
How are you doing that? If that's true then it shouldn't run on localhost
Breeze
How are you doing that? If that's true then it shouldn't run on localhost
I added my localhost to my list of allowed host in settings.py
Breeze
One more thing to point out... When i run $ heroku logs - - tail on my heroku CLI, i get this error.. raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
Charly
I added my localhost to my list of allowed host in settings.py
I'm talking about the Postgres database
Breeze
I'm talking about the Postgres database
I have postgres installed locally... let me make it simpler, the prostgres db which i use on local is not connected to the one i use on heroku... So each time i deploy, i would have to migrate my tables via the CLI
Richard
Hello
Richard
I want to know how to use a variable python in JavaScript