Shiva
Add csrf token into your form....{{ csrf_token }}
Yes I did , the problem is it creating same csrf token for all user
cj
i have created form to get some input from users on submit i want to save the request
show your code, you really don't need to worry about CSRF yourself, let django do its job
Anonymous
Please how can I integrate mobile money payment system in my website
#
check it
Anonymous
there is paypal api for djanogo
I mean mono A payment system in my country ,can't find any tutorials about it
#
I mean mono A payment system in my country ,can't find any tutorials about it
u don't need tutorial, if they support payment for organization, u must have api to integration. so,check whether they have api for integration or not
#
could u send me the link to check?
Finding
what module can i use to find a googlemap route in my django website?
Lamepic
Hello guys, i want to ask if there's anyway i can integrated biometrics into my django project. Lets say i have a person model which includes names and other info but i want to add their finger print for identification too. Can anyone help? Thank you.
Lamepic
Please how can I integrate mobile money payment system in my website
You need to go to the mobile money service provider and request for their api
Artur
Hello! Please tell me a tutorial where I can see how to deploy a Django project on AWS?
Anonymous
Django project needs to be installed on web server or app server ?
Anonymous
Because django project contains app also.
Doragonsureiyā
Hello! Please tell me a tutorial where I can see how to deploy a Django project on AWS?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
cj
Django project needs to be installed on web server or app server ?
on a server and you need to have a web server to make it publicly accessible
cj
(I hope you understood)
Anonymous
🧐
R
Hello guys, I need your help: how do I can show image from my model in html page (not as static file)?
Bjorn
Hello guys, I need your help: how do I can show image from my model in html page (not as static file)?
I don't have the time to explain it all, you can easily find the procedure on Google.
R
Thanks, I'll take a look
Bjorn
Hello guys, I need your help: how do I can show image from my model in html page (not as static file)?
https://simpleisbetterthancomplex.com/tutorial/2016/08/01/how-to-upload-files-with-django.html Here it is, hope it helps
Moe (محمد)
I need help with handling form via ajax, can i send pictures to someone?
Moe (محمد)
How do i share my code here?
Anonymous
on a server and you need to have a web server to make it publicly accessible
Hello CJ, I understand that web server is required to host django application and that can be easily done with nginx but what is the need to host a django application with jboss app server, whether it is for django app or we can host the entire project on jboss
cj
where did you read that?
cj
read this please: https://docs.djangoproject.com/en/3.0/howto/deployment/
Anonymous
when we have views and templates for frontend in django. what is purpose of using react if i can get all capablities with django itself. btw i m new to this.
Gaurav
react are mostly used to provide spa
Mirco
Frontend team and backend team could be totally different and frontend ones don't have to know Django
Anonymous
so we can have frontend in django itself also?
Mirco
so we can have frontend in django itself also?
Frontend in Django is templating ( if u mean that )
Anonymous
ok....
cj
django does everything at back-end
Anonymous
no
oh that means for even small change we have to make request
Anonymous
like it will make it slowl?
Mirco
oh that means for even small change we have to make request
There's no Virtual DOM, with Django templates you use real DOM etc. etc.
Anonymous
ok.....through django only can we have third party authentication
Hello
so we can have frontend in django itself also?
Django is mostly used to make the backend stuff... You can make api with django And then use react with that api
Anonymous
u mean to say abt django rest framework particularly?
Hello
Yes
Anonymous
ok..thanks everyone
cj
o well, depends what you do on each request 🤷🏻‍♂
Anonymous
hello guys , ı have porblem ,, ım login but ı can joın again login html
Anonymous
how ı can ı fixed
Anonymous
@login_required(login_url="user:login")
Anonymous
ım used login requ
Dextroleav
Hey, can anyone tell my how i can run on localserver so that it is accessible by mobile or other desktop in my localhost
Dextroleav
cj
How can we change it to 0.0.0.0
manage.py runserver 0.0.0.0
Dextroleav
Ok
Dextroleav
Thnk u
Dextroleav
So after this , how can i get it do load on my phone
cj
So after this , how can i get it do load on my phone
use the IP of the machine the server is running
Dextroleav
Hey its saying me that 0.0.0.0 is not a valid port no.
Dextroleav
Then how can i ?
cj
or u can use chrome for that with usb debugging and port forwarding
@SitiSchu did we agree to warn this kind of 💩 advices?
raven
Then how can i ?
I use ngrok
Anonymous
No one will know ur url server and no need to open ports
Anonymous
Maybe it is too much if it is jist for local testing lol
cj
No one will know ur url server and no need to open ports
what if he wants to access from other devices in the same network? 🤷🏻‍♂ using ngrok is totally overkill
Anonymous
what if he wants to access from other devices in the same network? 🤷🏻‍♂ using ngrok is totally overkill
Or maybe he just want to see from a mobile view and dont know about browser debug lol
cj
Or maybe he just want to see from a mobile view and dont know about browser debug lol
you don't need browser debug if the mobile is in the same network via WiFi 🤷🏻‍♂