CryptoHunt
Hello guys, i have react app that works with my django API. Django API is deployed in one server and react in another. Now i need to combine them in one app to run in one server, can someone explain how to do that?
rr
Hello guys, i have react app that works with my django API. Django API is deployed in one server and react in another. Now i need to combine them in one app to run in one server, can someone explain how to do that?
Technically you cant "deploy react app on server" because it is a client side app. Now the question is not about how, it should be why? Why do u want to do that? What's the problem?
CryptoHunt
I already run my django on their vps
rr
Thank you friend My employer whants me to run react and django on his VPS You think its better to deploy as two apps?
Actually take a look at your web server. React is a node-based app so it needs node runtime environment to be served. Django on the other hand needs python So obviously u can't run both at same palse. You can create containers but that's another topic.
Boburbek
HI, are there who is worked with django websocket?
CryptoHunt
Actually take a look at your web server. React is a node-based app so it needs node runtime environment to be served. Django on the other hand needs python So obviously u can't run both at same palse. You can create containers but that's another topic.
Okay, thank you I already put whole django project to docker and it runs inside vps from docker hub Can you tell: i need to create separate container to react and after that run them both? Or its way to put react inside existing container and run both inside one container?
CryptoHunt
Ok, anyway thank you for your help
MeHDI_rh ∞
Hello, When I add channels to INSTALLED_APPS, and server runs using ASGI, Then views will be processed sequentially instead of concurrently Which means if I have: view1(): sleep(10) return HttpResponse() and view2: view2(): return HttpResponse() if I open view1() and then view2() ... view2 will not respond untill view1 is completed
CryptoHunt
Anyone solved this problem before?
Faced the same, +1 to question
Alex
Hi guys I use django&gunicorn&nginx for deploy and have a problem with celery-progress - progress-bar doesn’t move, while jobs are executing fine (200 response, status pending). When I use celery-progress with dev settings everything works fine (settings do not include nginx and gunicorn) What might be the problem?
Anonymous
hi good morning i have a doubt, can any one explain me, why we should use specifics keyword in django path('specifics/<int:question_id>/', views.detail, name='detail'),
shiva
How to use field of one model into another model
shiva
shiva
Without foreign key?
shiva
There is no foreign key for the that field
shiva
Can I use that field?
Naveen
Guys any body explain how to update some field in django rest framework
Naveen
It's urgent
Naveen
Am asking last seven days daily
Doragonsureiyā
It's urgent
Is it urgent? You shouldn't be here, wasting time and poking strangers and waiting for them to do your job for you. Search on Google/DuckDuckGo, do the research, and solve your problem yourself, nobody here will drop what they're doing to do your job, just because "it's urgent!". Have a nice day! 😉
elf
Can I use that field?
You can create an Abstract Bade class if you find yourself using more than one fields in different models. Then use inheritance to define your new models
༒ROHIT
Facing Integrity Error I have deleted one migrated file 0003_extra.py and field in the model is DecimalField and Remove the field for the models The issues is still unresolved after migration Need help with this...
Abdulhamid
Hello guys! have you ever worked with django celery? if you == worked(): please(give('github link'))
Abdulhamid
if user.question.is_meta == True: chat.read_the_rules()
you give me base celery project, i asked simple project
Alex
you give me base celery project, i asked simple project
did you check the link? https://github.com/celery/celery/tree/master/examples
Abdulhamid
i need simple celery project in django
Anonymous
so I need
hi friends, I have a doubt yesterday I asked it: I am sharing some small code, this code work only for render page, my code is: in app url py path('page/<int:id>',views.page,name='page'), and my views page code is def page(request,id): id1=str(id) return render(request,'user/a'+id1+'.html') first time my urls address calling from a template like this project_name/page/3 and if I am calling the same url address from the html page link for go to next page the url address now calling like this, project_name/page/page/4 here no path for project_name/page/page/id so I am getting error why it's happening can any one tell me please
Хумоюн | Developer
༒ROHIT
Plz help me 🙂i have deleted the migrated file how could i recovery it
Imran
Plz help me 🙂i have deleted the migrated file how could i recovery it
run the command python manage.py makemigrations . if get response "no change detected" than python manage.py makemigrations appname. than migrate it. if there still problem than change database and apply new migrations.
Брат
You can just delete it
Брат
db.sqlite file
༒ROHIT
db.sqlite file
Unable to delete😒
Брат
Close everything I mean your server
༒ROHIT
Thanks uhh..
༒ROHIT
Okk
Imran
use postgres database it's better than sqlite
༒ROHIT
use postgres database it's better than sqlite
Thank you but I'll add this letter..
Imran
Thank you but I'll add this letter..
if you are start a professional project I will recommend to use postgres . because you can easily take database backups and load same data to another database .
Anonymous
Anyone please help me in deployment of django project I'm getting lot of error
Anonymous
Please help me
Mirco
Anyone please help me in deployment of django project I'm getting lot of error
we don't have magic balls, start by sharing some errors
Alex
Anyone please help me in deployment of django project I'm getting lot of error
Or better to say - describe your steps and if there were any errors.
Mirco
yup
Alex
!paste
Doragonsureiyā
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
https://dpaste.com/H5G34CFUV
Anonymous
Aaush
Hey can anyone tell me how to Use AJAX in python?
Alex
Here is the error
did you migrate before launching the app? python manage.py migrate
Anonymous
Hey can anyone tell me how to Use AJAX in python?
There's a video of Dennis Ivy on the subject... He explained it well... You can check
Salim
hello everyone ....please give me a hint to deactivate and activate my django project on specific time interval
Alex
Yes
Locally or on the server? Because it tells that there is a missing table.
Anonymous
Locally or on the server? Because it tells that there is a missing table.
It is working fine on local server. Every CRUD operation is running well
Anonymous
On the server
Alex
It is working fine on local server. Every CRUD operation is running well
Then there is only one solution - you didn't deliver the migrations on the server.