Ghorz
Read django docs
Ghorz
https://docs.djangoproject.com/en/2.2
Mohan
Ghorz
https://www.udemy.com/python-and-django-full-stack-web-developer-bootcamp/
Jorge Luis
Ghorz
Mohan
Mohan
Tutorial
How many projects are available
Mohan
On there
Mohan
I'm unable to c
Ghorz
Thanks brother
read the page content.
it teach you in order
1. HTML
2.CSS
3.JAVASCRIPT
4.PYTHON
5.DJANGO
6.FEW DJANGO Projects
7.ADMIN TWEAK
Ghorz
Anders (izzno / gooood) 🇳🇴
How do you guys use npm modules in your Djnago projects ? I mean there's many pypi packages that just copy the whole node_modules dir to static, but that's not a good idea. Ideally something will find/use just the modules imported...
Ghorz
Ghorz
what ever you learn there can be easily translated to 2.2 later
Ghorz
forget about the version
Toni
Alright thanks bro 👍
deepak
please some one tell me how to connect django with react.
actually i want to draw a pie chart using matplotlib lib but show this char as react components...
deepak
please help.
how to call view.py function from react app
deepak
actually i already google it .
nothing found
Anders (izzno / gooood) 🇳🇴
I think you don't understand the technologies...
deepak
Anders (izzno / gooood) 🇳🇴
You can't "just" use a react component... Check out Vue.js I'm sure you have a similar solution you can just "dropp" in your html.
deepak
Anders (izzno / gooood) 🇳🇴
I just told you, you can't just drop a react component in a non react app. And I also gave you advice on what you CAN do. 😉 Gl
deepak
acctualy i alread learned many tutorials on google. but there is nothing related to call a python function from react..
they only show how to integrate django backend with react frontend . and access data stored in django db. and creact page on react to show ..
but i want to call a function which is written in views.py for generating graph from react
(in app.js) so the graph image is like a react component ..
deepak
deepak
main problem is how to call function which is writen in view.py from react component
Anonymous
Anonymous
And call it
Anonymous
You cannot draw matplotlib charts in browser other than as image data
Anonymous
There is nothing to do with react
Mirco
Jimmies San
Jimmies San
and the apps are separated. front and back.
Jimmies San
you have rest endpoint to call, from react
Jimmies San
in this way you "join" the apps
Anders (izzno / gooood) 🇳🇴
Mirco
I'm not sure what you mean here...
node_modules directory is always so big so it's not recommended to version it
Copy or generate a build or dist directory and serve it via nginx/apache as static root
Anders (izzno / gooood) 🇳🇴
Ahh, no I get that. So I take it you expose the whole node_modules directory... That might be a security risk.
Mirco
Serve via webserver just your dist/build directory
Anonymous
How can I fetch the particular field from. URL in get request
For eg the URL is 192.168.0.1:3000/course/5d567hfbjy7/abc
Anonymous
I want to fetch "5d567hfbjy7" from the url
Anders (izzno / gooood) 🇳🇴
Ah now we're getting somewhere, but when using node you use babel or similar to build. What / how do you "build/copy" only the things you need with Django?
Mirco
deepak
Mirco
Anonymous
Mirco
Cbv
So into your get() method, you need just to specify a parameter with same name of your url parameter
Anonymous
How
Anonymous
??
Mirco
How
I've just told you how
Jimmies San
Mirco
Mohan
Anders (izzno / gooood) 🇳🇴
I'm missing the part that goes in the templates and looks for what to build to the static dir 😂
Mirco
Mirco
For Babel there's a package called django-babeljs to handle it easily if I don't go wrong
Anonymous
Ok
Anders (izzno / gooood) 🇳🇴
Mirco
!yw
Doragonsureiyā
You're welcome! 😊
inchidi
please do let me know if you think any resource here not relevant anymore
https://t.me/pythonres/32
inchidi
*and know better resource for newbies
Anders (izzno / gooood) 🇳🇴
This is a python beginner (from scratch)
Anders (izzno / gooood) 🇳🇴
If they venture to the channel list they will find the rest. He is a very effiecent tutour.
inchidi
oh okay, am looking for better django tuts if any
Anders (izzno / gooood) 🇳🇴
haha.. same guy a sec
Anders (izzno / gooood) 🇳🇴
https://www.youtube.com/watch?v=UmljXZIypDc&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p
Anders (izzno / gooood) 🇳🇴
Django from scratch
Anonymous
inchidi
Anders (izzno / gooood) 🇳🇴
I dont know them, the only one i recognized is the Mozilla tuto, which is very good (written). All I know is this video tutorial covers many aspects of django including signals and filters, extra packages etc... Not just plain, which gives you a better start-