Charly
SHEIKH HAFIJUL ALI
that looks exactly as what he has
there is nginx reverse proxy too. Now from what i know it listens on port 80 by default not sure if 5000 makes sense here
Iam
🙂🙂 guys, I am beginner on the struggling stage, I don't know what are these things. any way i need complete this by tomorrow evening
SHEIKH HAFIJUL ALI
thats extra but not needed
so it would listen to http/s requests by default?
Iam
there is nginx reverse proxy too. Now from what i know it listens on port 80 by default not sure if 5000 makes sense here
as I SAID b4, the documentation is telling to follow like that. i will share the link https://github.com/app-generator/django-react-berry-dashboard
Iam
I can accesss the front end, but unable to log out , once i changed the db to postgres. the error is error - Error: Network Error at createError (createError.js:16:1) at XMLHttpRequest.handleError (xhr.js:84:1) index.js:135 POST http://localhost:5000/api/users/logout net::ERR_EMPTY_RESPONSE
Iam
no, that's why I can't logout from the dashbord !
Iam
i think so
Alex
what's your objective or assignment?
Iam
what's your objective or assignment?
I am working on a freelance project
Iam
And can login? or use other stuff?
sorry , i didn't get you!
Charly
sorry , i didn't get you!
So you say you can' t logout, but other actions also fail?
Alex
I am working on a freelance project
and what are you trying to build?
Iam
the login, registrations pages can't access, but the dashbord is runnning, and can view
Iam
and what are you trying to build?
forms for submitting data
AZ
How is this happened, how you logged in the first time?
Alex
forms for submitting data
and you have to deploy this to production too by yourself?
Iam
yah, before the project was running in sqlite and that wasn't accessed because it is connected through docker. and once I logged in, it doesn't matter . now i changed the db to postgres
Iam
trying
Alex
the login, registrations pages can't access, but the dashbord is runnning, and can view
because that is the react part not django, most likely your django project is not even running.
Alex
kind of
you indian by any chance?
Charly
you indian by any chance?
Doesn' t matter don' t ask these questions here
Iam
because that is the react part not django, most likely your django project is not even running.
yap, i understand, but the api is connected with django, and that's how the login, logout, register are working
Charly
have you looked at the container logs?
Iam
after connection changed , these are not working
AZ
I am confused
Charly
after connection changed , these are not working
So then it means you made a mistake on that change, have you looked at the container logs?
Alex
after connection changed , these are not working
have you configured the db configuration changes in settings.py
Iam
have you looked at the container logs?
no, through the docker desktop
Charly
I hate to say it but it very much does.
Yeah? how nationality matters to code?
Alex
Yeah? how nationality matters to code?
Not the code, but the prerequisites regarding the requirements of the project for sure. He can't rely on his leader for any guidance and is basically on his own. The base project he mentioned is likely just a random project his 'leader' found and went ahead with, saying, 'Yeah, this is fine; go ahead and build on top of this.' P.S.: A lot of assumptions, but based on my prior experience, this is the most likely conclusion.
Iam
then do it
I am not familiar with this, can you please guide me how to check !
Charly
I am not familiar with this, can you please guide me how to check !
No, google it you need to read the logs alwas when working with django
𝚆𝚘𝚛𝚕𝚍𝚕𝚎𝚜𝚜
Hello fellow people , I'm a beginner at DRF and i have so so many questions Most of them were resolved when i watched some guide videos , but one truly remains. Can we use DRF and normal Django at the same time? Like using API views and normal views? The DRF concept is a little too new for me , so sorry if my question seems weird
michael
just separate the apps for easy management
So like one app for normal views and the other for API?
Alex
like docs and api
奈姆
But, if they are belong to the same feature (both views rely on the same models), shouldn't it be contained in one app?
Alex
there are no such restrictions.
WOLFxASSASSIN
I am creating 3 django project 1st project will be dealing with authentication function 2nd project will be a form to one Post operation 3rd will be a doing a get operation and a post one I am planning to use implement it as a microservices 3 database in total And then I created project that deals with authentication and it returned access token And then why I used those token to login to my next project, it shows token invalid or expired
White
Hello all, I need a help from you all actually I am trying to make a django project for job and I'm stuck in somewhere in project
White
Please help me
ZeroCool
What's the error or the problem?
White
Can I share screenshot?
White
I'll give you whole details of my problem or issue that I face in my project
ZeroCool
I don't really have much experience but I can try it
The TokenTitan
Can I share screenshot?
Use pastebin to send your code and the error ,you will definitely get help
The TokenTitan
How can I do this?
https://pastebin.com/ Use this site and paste your code and the error you get Of if the code isn't too long, you can use This Telegram
Jet
Hello fellow people , I'm a beginner at DRF and i have so so many questions Most of them were resolved when i watched some guide videos , but one truly remains. Can we use DRF and normal Django at the same time? Like using API views and normal views? The DRF concept is a little too new for me , so sorry if my question seems weird
Let the normal app stay as is. What i usually do personally is to create an api/ folder 📂 in each app. In that folder, I add api routes, serialisers and views. This helps me to debug, if the issue happened in the normal app, I stay at the top level, of it happened in the api, I only check inside the api folder
White
Give me some time
WOLFxASSASSIN
Why? These would all just be apps in the same project, same database too
Just wanted to try implementing a microservices Actually I am new to this concept
The TokenTitan
Drf
It happens that when you generate a jwt token (maybe login) and then you send it to the consumer of the API, then if you change anything on the code or the server has any cause to restart it reload, the token will expire or of the expiration is short . I don't know if you understand me
cj
Just wanted to try implementing a microservices Actually I am new to this concept
I'd say to not use django if you want small simple things, of course django is capable of that, you can use it, yes; but it's like killing a fly with a bazooka, try other framework like FastAPI
Zulik
Guys how make spa app by python?