Django Plotly Dash Tutorial How to Connect Dashboards & Graphs into a Python Full Stack Application

  Рет қаралды 94,695

Pip Install Python

Pip Install Python

Күн бұрын

🤖 Newest App🗽:
geomapindex.com
*********************************************************************
Find the Finished Code:
github.com/cryptopotluck/plot...
--------Useful Links---------
django-plotly-dash:
django-plotly-dash.readthedoc...
Postgres:
www.postgresql.org/
Bootstrap Theme Used:
startbootstrap.com/themes/sb-...
Plotly:
plot.ly/python/
Dash Docs:
dash.plot.ly/
Still Have Questions?
geomapindex.com/message/

Пікірлер: 192
@antoinemercier82
@antoinemercier82 4 жыл бұрын
With the documentation alone, I was unable to make Django Plotly Dash working, but now it totally works after watching your video. Thanks!
@Piteramazon
@Piteramazon 4 жыл бұрын
So I recently started building a Django project with Dash integration. Been looking for good resources all over the net and sl far this is literally one of the only clear and detailed ones! Amazing that this topic is not covered more. Thanks a lot for the video!
@pipinstallpython
@pipinstallpython 4 жыл бұрын
Happy it was able to help! I also went through a good amount of time, banging my head against the keyboard looking for resources on this topic & everything I found was incomplete. Knew once I figured it out I had to contribute and help lead others to the solution. Looking forward to adding more on this topic and seeing what everyone builds because combining it with the users model can be a really powerful tool for application development.
@DenisBarbas
@DenisBarbas 3 жыл бұрын
For those using Django > 3 , if you get a TEMPLATE ERROR: Note that {% load staticfiles %} was deprecated in django 2.1 and removed in django 3.0 Remove {% load statictfiles %} and just leave the static. It should work.
@khaledabdelmokitmebhah6591
@khaledabdelmokitmebhah6591 3 жыл бұрын
didn't work for me
@bellakhi2393
@bellakhi2393 3 жыл бұрын
thanks - after leaving - it's work for me
@ronaldfungss
@ronaldfungss 3 жыл бұрын
Thanks a lot. Simply remove the line {% load statictfiles %} in setting.py works.
@danielwalsh1912
@danielwalsh1912 2 жыл бұрын
I have been struggling to get plotly running with django for the last two days and this tutorial just helped me figure it out. FINALLY! THANK YOU. SUBSCRIBED!
@brunoabreu8161
@brunoabreu8161 2 жыл бұрын
this is great, thank you so much! I was scratching my head trying to read all the docs and wasn't getting anywhere til I found your video. Cheers!
@johnatasrabelo7088
@johnatasrabelo7088 4 жыл бұрын
You helped me a lot , 2 weeks looking something about this content and nothin clear, soon you appears with this video
@lalitverma8864
@lalitverma8864 4 жыл бұрын
Thank you so much buddy it will help me a lot. I was so much confused about how it works the django with dash but you clear it, again thanks man.👍
@ivaniliev93
@ivaniliev93 3 жыл бұрын
I am professional C# developer and I wanna thank this guy for doing the hard work for me. Thank you brother!
@TarabUTK
@TarabUTK 4 жыл бұрын
Thank you for pointing out the udemy course .... went straight there and signed up. On Black Friday Sale.
@redrum4486
@redrum4486 2 жыл бұрын
You absolute legend! Straight forward and to the point! I had some dependency conflicts as django-plotly-dash 1.6.6 requiring dash=1.11 and dash-bootstrap-components 1.0.3 requires dash>=2.0.0. I just uninstalled dash-bootstrap-components and installed version 0.13.0 which was compatible with dash==1.20.0.... other than that,, THANK YOU!!!
@ashleyadrias
@ashleyadrias 4 жыл бұрын
BOOOOOMMM!!!! AWESOME TUTO .... this video has convinced me to buy your course! thanks again
@DattaMks
@DattaMks 3 жыл бұрын
Thanks, your video was helpful. If anyone gets errors like refused to connect 127.0.0.1 then add the following to the settings file. X_FRAME_OPTIONS = 'SAMEORIGIN'
@mitsolee
@mitsolee 3 жыл бұрын
You're a legend
@mazqoty.01
@mazqoty.01 2 жыл бұрын
thanks, could you plz elaborate how you managed to find the solution
@HP-ow2up
@HP-ow2up 2 жыл бұрын
thanks dude. i spent well over an hour trying to figure out what was the matter and i didn't want to go to bed til i'd figured it out
@annafreezze2373
@annafreezze2373 Жыл бұрын
thank you so much
@arjungoalset8442
@arjungoalset8442 4 жыл бұрын
One of the best tuts out there! thanks a lot
@biggymag
@biggymag 4 жыл бұрын
Thanks man, Great job! love your content keep doing it man :)
@jayhu6075
@jayhu6075 4 жыл бұрын
What a amazing tutorial. Hopely more with sample data.. Many thanks.
@ProdbyTrehnt
@ProdbyTrehnt 4 жыл бұрын
My dawg. This is worth than my degree 😂🙏
@fernandobustamante7782
@fernandobustamante7782 2 жыл бұрын
You literally saved my internship. THANKYOU
@victorburnett6329
@victorburnett6329 4 жыл бұрын
"Configurate", "Repeditory".. these are some new words I'm learning in addition to Django Plotly
@brianlarsen3209
@brianlarsen3209 2 жыл бұрын
Thanks for sharing. Got it working nicely in a Python 3.6 pipenv and still using a preexisting Django out of the box sqlite3 database.
@tungleanh9993
@tungleanh9993 3 жыл бұрын
this is amzing, why didn't I know your channel sooner ?!? ^^
@pedromoreira5676
@pedromoreira5676 4 жыл бұрын
You helped me a lot!! THANK YOU!!
@TheBigOTech
@TheBigOTech 2 жыл бұрын
Great work, thanks for posting this video, really helped me out with this.
@alexmanuele6983
@alexmanuele6983 3 жыл бұрын
great video- nice to see the debug progress too. cheers
@ajborbzzz
@ajborbzzz 3 жыл бұрын
I bought the lesson in Udemy at $9.00. I'm learning a lot from the instructor
@pipinstallpython
@pipinstallpython 3 жыл бұрын
Thanks aj, Currently working on perfecting a more in-depth course that condenses my life work on a larger scale than just Dash. If you have any issues on the course feel free to ask for help on Udemy or join the new python discord: discord.gg/QWNeUg6 or Application for Newer Courses: pipinstallpython.com
@selenecerna3023
@selenecerna3023 2 жыл бұрын
So great !! Thank you !
@SUPERHEAVYBOOSTER
@SUPERHEAVYBOOSTER 4 жыл бұрын
Definitely getting the Udemy course, thanks!
@soaso39
@soaso39 4 жыл бұрын
Great bro, many thnx
@santlabs
@santlabs 8 ай бұрын
Gracias mi pana from Venezuela Thanks man, Great job!
@robertbriscoe277
@robertbriscoe277 4 жыл бұрын
You make great and informative videos. Was wondering if you have found any way to have dash and plotly graph a ray when giving it two sets of (x,y) coordinates?
@eduardolucas391
@eduardolucas391 4 жыл бұрын
Brilliant!
@jontrueblood7082
@jontrueblood7082 4 жыл бұрын
Thank you so much for this tutorial! I'd been struggling for weeks on this exact problem. I can't believe there's not more resources given how powerful Django and Dash are. Just out of curiosity, if Dash didn't exist, what would be the alternative if someone wanted to make interactive plots in django projects?
@pipinstallpython
@pipinstallpython 4 жыл бұрын
From my experience, I've been able to get Bokeh to work with Django. It was actually the first graphing mechanic I was able to integrate into a Django project & I found it easier to do than Dash. (Bokeh link: bokeh.org/ ) Another alternative would be through Javascript, although I've never attempted chartjs could be a javascript alternative, though getting it to render interactive components would be limited. The only approach I'd assume is through updating the models & pushing context. But I'm happy to hear this video was helpful and I share the same amazement in the lack of understanding most people have with the power this stack holds of Dash & Django. Its a hidden gem in the python programming community, hope you take advantage and build some cool stuff.
@getabegaz
@getabegaz 3 жыл бұрын
Thank you very much Bro.
@ab5848
@ab5848 3 жыл бұрын
If you're having multiple postgres versions running locally at different ports(of course), make sure you pass the PORT in settings. I had postgres 12 and 13 at 5432 and 5433 respectively. So I added "PORT": "5433" in DATABASES in settings.py. Hope this helps anyone in need.
@bellakhi2393
@bellakhi2393 3 жыл бұрын
many thanks. it helped me. But the link for the setting does not open, can you send a code snippet to replay
@EdwardTilley
@EdwardTilley 4 жыл бұрын
On a windows machine I had to change the static configs to ... STATICFILES_LOCATION = 'static' STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') At this point, I also have to keep static files in the first app directory ... probably due to something in my urls.py or settings.py setup? I couldn't see css/style.css (a file in the static folder) without these changes. Collectstatic - also works correctly with this config.
@gregorynorris4302
@gregorynorris4302 3 жыл бұрын
I also ran into this issue. The template files had to remain in the application folder rather than the base directory.
@zeroPRIME_28
@zeroPRIME_28 3 жыл бұрын
Great tutorial! One note: modern versions of plotly (version 4+) do not require plotly.offline. Instead, use the to_html method to convert a figure into an HTML string representation. In the tutorial, this would mean to change the plot_div line in 'views.py' like this: plot_div = fig.to_html(full_html=False)
@132metoer123
@132metoer123 4 жыл бұрын
Very great tutorial! Is there any way to also use dash_bootstraps_components with djano_plotly_dash? If I put in any component it does not show any error, however it does also not display anything.
@rahbo1
@rahbo1 2 жыл бұрын
This video is just great and helpful, well done 👍. PS.: Think you have to relook to the second link in the description, you should probably remove it 😅.
@mondengwenya4871
@mondengwenya4871 3 жыл бұрын
this is gold
@atharvakatre3256
@atharvakatre3256 3 жыл бұрын
Thanks a lot your video saved me a lot time figuring out how to embed my plotly charts on django! Also any idea on how to make these charts responsive for different screen sizes?
@thomasbooij6239
@thomasbooij6239 2 жыл бұрын
According to the dash docs, the graphs are responsive by default!
@NjoiUrself
@NjoiUrself 4 жыл бұрын
At 16:40, instead of postgresql, how would you use mssql?
@alperakbash
@alperakbash 4 жыл бұрын
Your udemy course seems pretty interesting. I purchased it.
@pipinstallpython
@pipinstallpython 4 жыл бұрын
Hopefully you enjoy it! Reach out if you have any issues really looking forward to releasing more stuff soon.
@stonylli
@stonylli 3 жыл бұрын
May I ask where can I learn how to deploy this dash app with Django framework? (I saw you changed some setting just for the dash, and I am not sure how to revise it correspondently while delopying)
@sangbongbang1222
@sangbongbang1222 3 жыл бұрын
Thanks for excellent tut. I got both graphs but the first graph only has two points (0,0) and (1,1) and got this error - Uncaught TypeError: Cannot read property 'length' of null at Object.acquireContext (Chart.min.js:7) . Can someone help if you got this error also?
@localyaar.bf-tv3603
@localyaar.bf-tv3603 3 жыл бұрын
i get this error : TemplateDoesNotExist at / base.html Error during template rendering In template C:\Users\Amosrab\PycharmProjects\dash_plotly\home\templates\home\welcome.html, error at line 1 base.html 1 {% extends 'base.html' %} "this line is red" 2 {% load static %} 3 {% block content %} 4 PAGE D'ACCUEIL 5 {% endblock %} 6 i need some help, please!!!!
@jovischuah4031
@jovischuah4031 4 жыл бұрын
Hi, u done a great video. Do u have tutorial about how do create a live graph according sql or nosql database or from csv file?
@pipinstallpython
@pipinstallpython 4 жыл бұрын
Yeah, I have a udemy course & within there I have a few graphs that work with uploading csv files through a dash dashboard. I've recorded more videos based off this project where we will create graphs that work directly with database data from Django & those will also be uploaded to my udemy course so I'd keep an eye open for that in the next week. www.udemy.com/course/plotly-dash/?referralCode=16FC11D8981E0863E557
@DenisBarbas
@DenisBarbas 3 жыл бұрын
Awesome tutorial dude. Will you cover how to extract data from the database and plot it to dashboard graphics??
@pipinstallpython
@pipinstallpython 3 жыл бұрын
Currently in the processes of setting up a None-Proffit but I'd love to address this soon any suggestions just the database to graph render or...?
@DenisBarbas
@DenisBarbas 3 жыл бұрын
@@pipinstallpython I'd like to extract all the data from my custom database, and create a modern dashboard, with some tables and graphs and charts, thought that would be awesome, but I'm kinda new to python and django.
@abelalexander2277
@abelalexander2277 2 жыл бұрын
Hiya, Is your Udemy course for Django is updated as per Django 2.0 and above? Because {% load staticfiles} is now removed and I am not able to get this working following this video. Please advise!
@farhadtabrizi4878
@farhadtabrizi4878 2 жыл бұрын
I have tried this tutorial step by step, at the end the browser won't load dash component inside django page for security reasons, what may I do to load everythings together?
@vikramchauhan7717
@vikramchauhan7717 2 жыл бұрын
I am working in a complex dash application and I am facing challenge with dash vanilla authentication so planning to integrate with this library? Is the multiple call back yet not supported? Any other option?
@Duncangkcl
@Duncangkcl 2 жыл бұрын
Hi, I'm at 25:04 and am trying to collect static, but it says that "NotADirectoryError: [Errno 20] Not a directory: '/home/####/#####/static/vendor/jquery'" despite have the folder there along with all the other files from the vendor folder in the plotly_django_tutorial static folder. I completed the collectstatic at 18:46 without a problem, but now I get this error for each folder I add to the static folder when I try collectstatic. How can I fix this?
@peterscannell2268
@peterscannell2268 3 жыл бұрын
I just followed this tutorial with the most recent django/plotly/dash libraries and had an issue getting the marks to appear on the square root slider graph. The fix was adding "min=0," to the list of args in the dcc.Slider
@peterscannell2268
@peterscannell2268 3 жыл бұрын
@MANUEL GERARDO ORELLANA CORDERO channels==2.4.0 channels-redis==2.4.2 dash==1.17.0 dash-core-components==1.13.0 dash-html-components==1.1.1 dash-renderer==1.8.3 dash-table==4.11.0 Django==3.0.4 django-appconf==1.0.3 django-compressor==2.4 django-compressor-toolkit==0.6.0 django-jsonfield==1.4.0 django-plotly-dash==1.4.2 django-redis==4.12.1 Flask==1.1.2 Flask-Compress==1.8.0 numpy==1.18.2 pandas==1.0.3 plotly==4.11.0 psycopg2==2.8.5 pytest-asyncio==0.12.0 pytest-django==3.9.0 sqlparse==0.3.1 tornado==6.0.4
@adarshtambe1043
@adarshtambe1043 2 жыл бұрын
Sir, I am getting this error : ImportError: channels_redis doesn't look like a module path Can you help me out ?
@muhammadfayyaz8544
@muhammadfayyaz8544 3 жыл бұрын
Hey i am working same but receiving templatesyntax error plotly_app received some positional argument(s) after some keyword argument(s)
@patrickjoseroxas1998
@patrickjoseroxas1998 3 жыл бұрын
Hi @Pip Install Python, ddo you have any tutorial like this that involves dash_leaflet?
@Shruthi16367
@Shruthi16367 2 жыл бұрын
Hi I am facing issue of the same app instance being updated for multiple users .how to handle multiple users in django plotly dash
@mattbalistreri6090
@mattbalistreri6090 4 жыл бұрын
Hello, I'm trying to follow along here but am getting stuck when adding the "vendors" folder from the download into the static folder. In the beginning, we copied four folders to static and ran collectstatic. Later, we took vendors from the download and dropped it into static (like the first time) and ran collectstatic again. I cannot get that fifth vendors folder to collect. The first four folders collect properly (css, fonts, img, js) but no matter what I try, vendors will not collect. Any ideas?
@dillonbourne6802
@dillonbourne6802 4 жыл бұрын
I have this problem, did you figure it out?
@mattbalistreri6090
@mattbalistreri6090 4 жыл бұрын
@@dillonbourne6802 I did not unfortunately. I haven't touched it since.
@mathgeek420
@mathgeek420 3 жыл бұрын
I'm having this same issue. Still haven't figured it out.
@derabschlepper5897
@derabschlepper5897 Жыл бұрын
may be a bit late, but for everyone running into this issue...: personally I fixed it using: not sure if I had the same issue as you, but you might try it... STATIC_URL = '/static/' print("STATIC_URL: ", STATIC_URL) STATIC_ROOT = os.path.join(BASE_DIR, 'static') #'static' print("STATIC_ROOT: ", STATIC_ROOT) STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'PROJECTAPP\static') ] print("STATICFILES_DIRS: ", STATICFILES_DIRS) change PROJECTAPP into your main app directory name (same name as project name) after running "python manage.py collectstatic" you should see the prints and verify or modify your directories. Main change was changing the STATIC_DIR --> STATICFILES_DIR... because before django was only collecting the predefined admin-static files and did not find any other static dirs...
@rajatchikara
@rajatchikara 4 жыл бұрын
@Pip install Python I am facing a error while installing channels, =================== "Installing collected packages: twisted, daphne, channels Running setup.py install for twisted ... error ERROR: Command errored out with exit status 1:" =================== could you please help on this, Thanks for the nice tut
@lospaturno
@lospaturno 2 жыл бұрын
I tried to access session data from the callback without success. Is there a tutorial for that?
@aat89
@aat89 4 жыл бұрын
Great! Tried it and works. However the css is not getting rendered. I am stuck on accesing the "assets" folder of the dash app. In a dash application, typically the static files are rendered from the "assets" folder. Any ideas on how to access static files through django_plotly-dash?
@pipinstallpython
@pipinstallpython 4 жыл бұрын
My dash css experience is limited, my approach would be to try and style it from the dash app itself. If that doesn't get the job done a student suggested this alternative that might help: imgur.com/hCuLh9d. Another cool find I found was a bootstrap add on for Dash: github.com/facultyai/dash-bootstrap-components
@julianpalacio7581
@julianpalacio7581 4 жыл бұрын
did you find a solution for this? i'm struggling with the same problem :(
@tpz1474
@tpz1474 4 жыл бұрын
@@julianpalacio7581 gosh I'm stuck on the same problem as well. The external_stylesheets do not seem to be brought over to the dash app in Django. Have you found a solution?
@azkana680
@azkana680 3 жыл бұрын
i've read many tutorials about django and plotly and i think this is the most helpful one. i have a question, around the 36:54 mark you used slider.py from the previous tutorial. is there any link to the script?
@sahilchaudhary2321
@sahilchaudhary2321 3 жыл бұрын
It's in the finished code for which he has provided the link in description.
@JainmiahSk
@JainmiahSk 4 жыл бұрын
First of all thanks and congratulations on the video content clarity and good reviews. I have a doubt that like one website we create and multiple signup users have their own accounts, can we do same here? like building one dashboard model and different users can view their own analytics? no one answering my question so I asked. Thank you.
@pipinstallpython
@pipinstallpython 4 жыл бұрын
Yeah, I built that. Connects to the account of the user and if the user has a binance api key it will show a dashboard specific to their portfolio and positions. So its possible and not as hard as youd expect
@JainmiahSk
@JainmiahSk 4 жыл бұрын
@@pipinstallpython Thank you so much for the super-fast reply I never had earlier from KZfaq. As you said I'm learning Django now. Did you cover what I asked in this video? if yes then I'm very much lucky if not please do a video on it. Thank you.
@pipinstallpython
@pipinstallpython 4 жыл бұрын
Yeah, I cover it. But I'm currently working on a more in depth course that will go into this topic deeper. Stay subscribed and you'll get notified when it drops
@JainmiahSk
@JainmiahSk 4 жыл бұрын
@@pipinstallpython Thank you for updating about upcoming depth concepts. Being an intern and in tight situations currently, I can't afford your courses on udemy but I can buy you a cup of coffee if you share me your payment address(eg.paypal..etc). Once again thank you so much.
@mbschriek
@mbschriek 4 жыл бұрын
@@pipinstallpython I'm interested in exactly the same question. Any idea when this content is ready? Kind regards.
@getabegaz
@getabegaz 4 жыл бұрын
Hey. Really thank you very much for this. I couldn't follow what is happening as you are fast. Can you share the final code? Thanks
@getabegaz
@getabegaz 4 жыл бұрын
Got it. But your coupon please for registering at Udemy
@ramosdmr97
@ramosdmr97 4 жыл бұрын
Hi ! I was not able to fully run it, because because the load of the Dash aplication was denyed by the X-Frame-Options. Can someone help ? Thank you !
@AlanFreeman-IMG
@AlanFreeman-IMG 3 жыл бұрын
See Paul Thomas's comment: need "X_FRAME_OPTIONS = 'SAMEORIGIN'" in settings.py since Python version >3. This because with version 3, default was changed to "X_FRAME_OPTIONS = 'DENY'. Explained here: docs.djangoproject.com/en/3.1/ref/clickjacking/
@jonklopez
@jonklopez 4 жыл бұрын
Do I need to setup docker in order to have the django channels to work?
@pipinstallpython
@pipinstallpython 4 жыл бұрын
No docker isnt required for this project
@LuisLopez-sf7ky
@LuisLopez-sf7ky 3 жыл бұрын
I followed the tutorial and worked like a charm, but I am struggling to solve one problem. Since the dash app I am inserting on the "content" block to the base.html file has several charts, an additional scrollbar is appearing on my django page apart from the one corresponding to the html tag. Is there any way that the dash app inherits the original scrollbar instead of creating a new one?
@MrMaxtng
@MrMaxtng 3 жыл бұрын
I'm having the same problem. The graph appears "clipped" and scrollable and doesn't fit the page. Any ideas on this?
@ericsonmattoso9987
@ericsonmattoso9987 3 жыл бұрын
Hello Guys, same problem here. Have you got the answer fot that?
@nghiepcrypto7034
@nghiepcrypto7034 4 жыл бұрын
It gonna be much better if there is a timeline for your video. Thanks from Viet Nam
@kyur48
@kyur48 4 жыл бұрын
After running the first chart I get a “Type Error: expected string or bytes-like object”. Does anybody know how to fix it? In template C:\Users\...\templates\base.html, error at line 0 expected string or bytes-like object 1 {% load static %} 2 3 4 5 6 7 8 9 10
@lautaroparada950
@lautaroparada950 3 жыл бұрын
Starts at 3:44
@lftf-beats
@lftf-beats 4 жыл бұрын
TypeError at / expected string or bytes-like object what can we do with that?
@miloszkrasowski2518
@miloszkrasowski2518 4 жыл бұрын
I have the same error. Have you perhaps figured out how to fix it? I'm using Django 3.0.5. It starts after running the website with SimpleExample. In template C:\Users\...\templates\base.html, error at line 0 expected string or bytes-like object 1 {% load static %} 2 3 4 5 6 7 8 9 10
@lftf-beats
@lftf-beats 4 жыл бұрын
@@miloszkrasowski2518 the problem can be in dash-bootstrap
@surajthapafc
@surajthapafc 4 жыл бұрын
👍👍👍
@EdwardTilley
@EdwardTilley 4 жыл бұрын
When trying to display the top "Square Root Slider (Dash) Graph , I get an error in the chart area instead - Localhost refused to connect. The Plotly chart below renders fine ... I don't see anything in a google search of this is. Any ideas?
@taoofinvestment5676
@taoofinvestment5676 4 жыл бұрын
Hi there, I'm having the same problem... just wondering if you have come up with a solution yet? Thanks!
@gwagner3446
@gwagner3446 4 жыл бұрын
i'm having the same problem. By oppening the browser console, I can see that the reason is the following: "Refused to display '127.0.0.1:8000/...' in a frame because it set 'X-Frame-Options' to 'deny'.". If I go straight to the dash app URL, that it shows in the console message, it renders nicely (as a "standalone" app). I haven't yet found where this configuration is, but I think it would be a matter of simply changing it to "False". Would appreciate if you could share the solution when you come up with it.
@gwagner3446
@gwagner3446 4 жыл бұрын
Guys, I just found the problem, and a temporary workaround. It's all due to a clickjacking protection, that is set-up by default. just comment out the "'django.middleware.clickjacking.XFrameOptionsMiddleware'" line in the "MIDDLEWARE" section of settings.py and you're good to go! (docs.djangoproject.com/en/3.0/ref/clickjacking/)
@EdwardTilley
@EdwardTilley 4 жыл бұрын
@@gwagner3446 Brilliant - this fixed my problem the same. Very much obliged G!
@jonklopez
@jonklopez 4 жыл бұрын
This solved the problem! Thanks
@zackoryyy
@zackoryyy 4 жыл бұрын
Your discord link has expired. I'ma wonderin' if you'ld help me out with that.
@pipinstallpython
@pipinstallpython 4 жыл бұрын
discord.gg/rNc6xtP
@stephenlee3822
@stephenlee3822 3 жыл бұрын
I've downloaded Postgres, can't get the window that you have. What is that application called?
@padmanabh7031
@padmanabh7031 2 жыл бұрын
what is it
@stefaniereeg3251
@stefaniereeg3251 3 жыл бұрын
Hi, i found this very helpful, but I have the problem, that _dash-layout is not loading, it is stuck "pending". Did somebody had the same issue? I added "X_FRAME_OPTIONS = 'SAMEORIGIN', but it is not working. Thank you!!!
@stefaniereeg3251
@stefaniereeg3251 3 жыл бұрын
@MANUEL GERARDO ORELLANA CORDERO Thank youuuu! That helped! :-)
@krayush-ak
@krayush-ak Жыл бұрын
Hi, Is there a way to add CSS files associated with the dash app?
@pipinstallpython
@pipinstallpython Жыл бұрын
app.py file add an external_stylesheets=[‘assets/style.css’] in the app = Dash() , then just create the style.css file in your assets folder.
@ujjwalduvedi2339
@ujjwalduvedi2339 3 жыл бұрын
is anyone facing the problem of 127.0.0.1 refusing to connect. the charts are not getting displayed while dashboards wre working.
@CyberYouGeek
@CyberYouGeek 3 жыл бұрын
@MANUEL GERARDO ORELLANA CORDERO add this in your settings.py X_FRAME_OPTIONS = 'SAMEORIGIN'
@johnhodgkiss9882
@johnhodgkiss9882 2 жыл бұрын
Where is the coupon code?
@saurabhramya144
@saurabhramya144 4 жыл бұрын
When I run with docker then i get this error "ModuleNotFoundError: No module named 'django_plotly_dash'"
@pipinstallpython
@pipinstallpython 4 жыл бұрын
I never used docker to setup this app so that's your problem. You can just pip install that module or it should be included in the requirements of the project
@ujjwalduvedi2339
@ujjwalduvedi2339 3 жыл бұрын
Can we Use other database instead of postgres ? I am using mongodb along with a query transpiler(Djongo) Can This Work ??
@pipinstallpython
@pipinstallpython 3 жыл бұрын
The db shouldn't effect the processes. You should be able to work through it
@ujjwalduvedi2339
@ujjwalduvedi2339 3 жыл бұрын
@@pipinstallpython thanks but faced another problem. Actually the bootstrap components are not working properly , especially the dropdown menu does not comes. Triple checked the procedure of making partial files , what could be the problem??
@koustubhavachat
@koustubhavachat 4 жыл бұрын
Can we use Dash in enterprise application for free ?
@pipinstallpython
@pipinstallpython 4 жыл бұрын
Yeah as long as you build them yourself. My course and some other videos on the channel cover how to go about doing that
@openedx121
@openedx121 2 жыл бұрын
still waiting for responses from this guy to the questions which are asked in his paid courses in udemy!
@pipinstallpython
@pipinstallpython 2 жыл бұрын
yikes. 🙄 2 weeks later I might get back to you. 4.5 star review for the slow instructor... if it wasn't for this guy i'd be 5 stars. welp, suppose that be life.. can't win them all.
@alextr8829
@alextr8829 6 ай бұрын
Guys, help plz i take Flask mistake AttributeError at /dashboard 'PseudoFlask' object has no attribute '_got_first_request' at this line {% plotly_app name='SimpleExample' ratio=0.65 %}
@alextr8829
@alextr8829 6 ай бұрын
Now it works, thanks. Updating lib helps me
@ketankulkarni427
@ketankulkarni427 3 жыл бұрын
Everything was going fine, rather awesome and suddenly I got stuck into {% load staticfiles %} issue. Can someone plz help me with this ? Why it is saying - "Unresolved library reference" and if I remove it, the look and feel of the web page is getting lost. Please help me with this. I am using the same pycharm professional edition.
@pipinstallpython
@pipinstallpython 3 жыл бұрын
You can jump into the discord and ill see what I can do should be an easy fix: discord.gg/G3KjWr
@ketankulkarni427
@ketankulkarni427 3 жыл бұрын
@@pipinstallpython Hii. Hope you you are doing good. Thank you so much for the quick response. I have joined discord. Thanks for allowing me. What should i do there now ?
@pipinstallpython
@pipinstallpython 3 жыл бұрын
@@ketankulkarni427 sorry didn't know you joined you should of pmed me lol I was busy coding but if you shoot me a picture of the file system. Then go into settings and send me STATICFILES_FINDERS, TEMPLATES & the actual template of the page I should be able to locate the problem.
@ketankulkarni427
@ketankulkarni427 3 жыл бұрын
@@pipinstallpython Ok Sure. Let me send you the necessary stuff that you have mentioned. Thanks in advance :-)
@saurabhramya144
@saurabhramya144 4 жыл бұрын
i see this '{ % plotly_app name='SimpleExample' ratio=0.65 %}' on my page. what could I be doing wrong?
@pipinstallpython
@pipinstallpython 4 жыл бұрын
You need to render it in the html make sure you have {%load plotly_dash %}
@saurabhramya144
@saurabhramya144 4 жыл бұрын
@@pipinstallpython it looks like this {% extends 'base.html' %} {% load static %} {% load plotly_dash %} {% block content %} Home Page { % plotly_app name='SimpleExample' ratio=0.65 %} {% endblock %} this error comes when I am running without docker. when i run with docker then I get "ModuleNotFoundError: No module named 'django_plotly_dash'"
@jaspreetjc5817
@jaspreetjc5817 4 жыл бұрын
Hello sir, can you tell me how to integrate athena database in database settings
@pipinstallpython
@pipinstallpython 4 жыл бұрын
I haven't messed with athena, most django projects I've seen have had postgres
@jaspreetjc5817
@jaspreetjc5817 4 жыл бұрын
@@pipinstallpython ok sir thanks
@othnieldavidson7579
@othnieldavidson7579 Жыл бұрын
m y boostrap did not seem to load n my dashboard..
@othnieldavidson7579
@othnieldavidson7579 Жыл бұрын
what did i missed hmm
@swarnarampalli
@swarnarampalli 4 жыл бұрын
I am getting ''NotImplementedError' when I run the final project
@pipinstallpython
@pipinstallpython 4 жыл бұрын
You need to setup a virtual environment and install all the requirements that's what the error is saying.
@swarnarampalli
@swarnarampalli 4 жыл бұрын
@@pipinstallpython Actually when I am removing the channels in installed_apps it is working fine.Otherwise it is showing that error
@swarnarampalli
@swarnarampalli 4 жыл бұрын
Also,can you show an example of.embedding Jinja template in JavaScript and reference it in HTML form
@robcz3926
@robcz3926 4 жыл бұрын
docs for this is absolute crap on official page. with this tutorial at least I managed to get it working, although I am still not convinced that there is any point for django integration of dash, the whole point of dash is its simplicity, by the time I set it up in django I could design 5 dash apps
@levirenatto924
@levirenatto924 Жыл бұрын
i don't find a solution for this error wtf File "", line 1203, in _gcd_import File "", line 1116, in _sanity_check
@pipinstallpython
@pipinstallpython Жыл бұрын
Second your terminal starts sending out _sanity_check, ya know you into some serious errors lol
@levirenatto924
@levirenatto924 Жыл бұрын
@@pipinstallpython i follow all steps, i try so hard but nothing works :(
@pipinstallpython
@pipinstallpython Жыл бұрын
@@levirenatto924 Find a github that works and build from that. This video 3yrs outdated. Planning on remaking it and in some ways I did. The information to make it work is out there just gotta keep fishing
@cryptomaniac3885
@cryptomaniac3885 Жыл бұрын
it has something to do with STATICFILES_FINDERS in settings..i removed it from settings
@TheLKStar
@TheLKStar Жыл бұрын
@@pipinstallpython can you recommend one?
@lftf-beats
@lftf-beats 4 жыл бұрын
Template error: In template \templates\index.html, error at line 7 expected string or bytes-like object 1 : This is working:D! 2 : 3 : 4 : {% load plotly_dash %} 5 : 6 : Django Dash 7 : {% plotly_app name="example_1" ratio=1 %} People, why is that? And how to solve it?
@pipinstallpython
@pipinstallpython 4 жыл бұрын
I think you forgot the django media tag most likely
@lftf-beats
@lftf-beats 4 жыл бұрын
@@pipinstallpython What do you you mean? What tag?
@pipinstallpython
@pipinstallpython 4 жыл бұрын
{{ plot_name | safe }}
@lftf-beats
@lftf-beats 4 жыл бұрын
@@pipinstallpython Thank you and thanks for great tutorial!
@mrqreeny
@mrqreeny 3 жыл бұрын
Classic 'I'm just gonna go here and do this' tutorial. Not explaining why... pity
@hackastak
@hackastak 4 жыл бұрын
Complete waste of time. You spent no time on how to actually install postgres for this application ('just like install it then open this application thing'). No mention that the application name was pgadmin instead of postgres something. Also, you are using the professional version of PyCharm which creates django venv and project for you so the directory structure is different for anyone not willing to pay $200 for the professional version of PyCharm. There was also several other things throughout the video that you never actually explained but left us with "you'll see". I applaud the fact that you tried to teach people how to do this because there is not a lot of info on this out there... but the execution was just not good at all.
@pipinstallpython
@pipinstallpython 4 жыл бұрын
Lol the video title isn't "django postgress tutorial" or even a "django tutorial" it's a free tutorial that shows how to connect django and dash. That's it, idk how you can watch this and trash the tutorial for not being a basic django starter tutorial 😂 most programmers who are watching this understand the basics to django, how to connect django, how to create an env... if I had to cover the basics for every video I made I'd never be able to make progress. Watch some basic django courses then watch this again and maybe it will make more sense
@abdullahatif7854
@abdullahatif7854 2 жыл бұрын
Man, you talk too much. Everyone, the video starts from here 3:44 Up to 9:45, he's talking about the regular project setup included in every Django project. 19:29, this is the point where he literally says, "The real fun actually starts." Meanwhile, he was just copying some bootstrap theme. Configuring Database and static files. 28:11, this is where the dashboard starts. He just took more than half of the video just to set up the home page.
@sumabich721
@sumabich721 Жыл бұрын
Yeah that's my issue as well. There's also no reason for that. He could have just created a simple view with a plotly dash app on it. Instead the entire video is needlessly long and confusing.
@matteogabellini3785
@matteogabellini3785 2 жыл бұрын
In this video you show how to deal with a single database. I tried to use multiple database, I used a DATABASE_ROUTER in settings.py but I stil have the same problem: "setting.py Is improperly cinfigured. Please supply the engine valute". If I remove {% plotly_app .... %} in template, the problem disappear, so I think that the problem is related with django-plotly-dash. Any suggestion please ?
@sumabich721
@sumabich721 Жыл бұрын
I hope this is still current. Cuz I need to do exactly this for my work.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 5 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 24 МЛН
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 59 М.
Introduction to Dash Plotly - Data Visualization in Python
29:21
Charming Data
Рет қаралды 778 М.
How To Access Any Forked GitHub Repositories Data
9:31
Mental Outlaw
Рет қаралды 32 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 389 М.
This React UI Library is GAME CHANGER!
18:13
developedbyed
Рет қаралды 520 М.
Plotly Dash Tutorial - Interactive Python Web App Development
32:38
Charming Data
Рет қаралды 57 М.
Asynchronous Web Apps in Python
15:30
mCoding
Рет қаралды 29 М.
7 Python Data Visualization Libraries in 15 minutes
15:03
Rob Mulla
Рет қаралды 73 М.
Python Logging: How to Write Logs Like a Pro!
11:02
ArjanCodes
Рет қаралды 160 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 5 МЛН