Ghorz
Read django docs
Ghorz
https://docs.djangoproject.com/en/2.2
Mohan
Read django docs
Thanks brother
Mohan
Read django docs
Any Django tutorial as ur suggestions
Ghorz
https://www.udemy.com/python-and-django-full-stack-web-developer-bootcamp/
Jorge Luis
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
Toni
https://www.udemy.com/python-and-django-full-stack-web-developer-bootcamp/
The couse states that it will use django 1.11, should I go for it? or look for 2.2 version as a complete begineer to django
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
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
Anders (izzno / gooood) 🇳🇴
please help. how to call view.py function from react app
Please use Google. There's MANY ways to do this and it's extremely well documented.
deepak
actually i already google it . nothing found
Anders (izzno / gooood) 🇳🇴
I think you don't understand the technologies...
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
Please use Google. There's MANY ways to do this and it's extremely well documented.
if some one who already do this. and got sussess,can help ,then i can understand easily
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
main problem is how to call function which is writen in view.py from react component
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
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...
Don't copy node_modules, you should version just the yarn file and yarn.lock Or your package.json ( It depends on which package manager you use , npm or yarn )
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
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
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?
Set the build directory as static directory into Django settings and then config the location into nginx or apache to serve it
deepak
and the apps are separated. front and back.
i create separate front end in react and backend in django..
deepak
i create separate front end in react and backend in django..
and django rest api is installes and added in setting.py
deepak
and django rest api is installes and added in setting.py
1 freind write above that u can't draw matplot graph in react .othar than image. , but if i call the function written in views.py in reactjs . is it possible ?? if yes then how
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
I've just told you how
he wants the code 😂😂😂
Anders (izzno / gooood) 🇳🇴
Set the build directory as static directory into Django settings and then config the location into nginx or apache to serve it
What do you use to build? Won't something like babel go nuts on the template tags? I've never mixed node / Django 🤷‍♂️
Anders (izzno / gooood) 🇳🇴
I'm missing the part that goes in the templates and looks for what to build to the static dir 😂
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
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-
Anonymous
he wants the code 😂😂😂
No 😂 I did it myself