Static File Errors With New Version of Django - Django Blog #29-b

preview_player
Показать описание


And then it will all work again LOL
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Django Blog Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:

Codemycom
Автор

Sir, how to add stripe payment integration in this project pls make a video on.

rushabhgediya
Автор

Thank you again for all of your expertise! I'm greatly benefiting from this course and I appreciate your efforts.

steelydan
Автор

Sir i got error w/this "buffer dtype mismatch, expected 'SIZE_t' but got 'long'" im using joblib btw help me please sir i really stuck of this cases :"
Thankyou :)

sandrafitri
Автор

i installed django months ago im on version: 3.0.8
i was making a image uploading website and i needed a like button for my website
that's when I saw your video and I was like this guy makes epic django tutorials, that comment section video is absolutely awesome
I learned a lot, thanks cool
💪💪💪
👍👍👍👍
💖💖💖

shawnbeans
Автор

Thanks for this. The problem I have with static files is that my load static in my index.html deosnt apply the static changes even after piping jinja2 and all. I've tried both pycharm and vs but still my CSS, etc doesn't get implemented. And I've applied the static code on every style, java script and Js within my html codes.

oloruntobaipinyemi
Автор

John i did it before (during last viedo), but still thank you for update !

abdullahhazari
Автор

Well explained now
When you tell people that import os, i too didnt understand because am using 3.1.1 which uses
"from pathlib import Path" in settings instead of " import os"
hence we have to use {BASE_DIR / "static" } than { os.join(BASE_DIR ...)}

Thanks for clearing this out

dradrigapatrick
Автор

I'm a student of yours, recently tried to build another Django Website in my Mcbook using the step by step of your Dentist Website video and it did not work (the static files); keep getting the message in my terminal (could not get (static file name) ) and none of static loads. I inserted import os in setting.py but no success.

psicologiaobversa
Автор

Hi
In this collection of blog design tutorials
everything is great. (THANKS)

Only tags are not trained and I think it is important
Because the relationship between post and tags is many to many,
Please create a tutorial for it
Thanks ❤️❤️ 🙏🙏

azarsirdash
Автор

What if we want to use pathlib? How can we update our paths to it instead of using os?

code-snippets
Автор

Hello John how are you
do you'll continue with this Superblog ^_^ course

-aafeshtrend
Автор

Excellent course! Could you also make videos on deploying apps to Heroku at the end of this course? Thanks a bunch.

Dhruv_Jadhav
Автор

hey iam not getting loadstatic keyword in my vscode can you please help me???

hemanth
Автор

Can u make video on, How to make section of comments and replies in django rest framework? 🙏

jackiechann
Автор

its a best
i recommended it
thanks a lot

EmotionspkByTayyab
Автор

I had that issue with dj 3.1..overcame it back in July as you have suggested now.
At the top of settings:-
import os
from pathlib import Path

BASE_DIR =
Bottom:-
STATIC_URL = '/static/'

MEDIA_URL = '/media/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static')]

STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'), )

LOGIN_REDIRECT_URL = 'home'
LOGOUT_REDIRECT_URL = 'home'
Not sure why you put 2 STATICFILES_DIRS statements in ? Anyways it all worked and I'm up to date waiting for a better 'comments' setup when you progress it, as for some reason I'm unable to suss it but may go back to it.

ianpring
Автор

Sir The Video that when you told us how to host django project on heroku but after hosting it was live correctly as you told us but sir after filling forms it shows that ProgrammingError but before when it is not it is working correctly please make a video on this topic plz sir btw nice video

ayushtripathi
Автор

I just want to mention here:
i'm using Django 4.0 in 2022, and they added automatically ( import os ).
So just create your project and everything will be fine.
Thank you sir for your time.

TechWithSabri
Автор

Thank you for the video it solved he problem of os not defined but still there my static file is not serving

lakshy_