Django Apps, Views and Templates (A Beginners look)

  Рет қаралды 63,485

CodingWithMitch

CodingWithMitch

Күн бұрын

Пікірлер: 81
@saudzubedi
@saudzubedi 3 жыл бұрын
Hey if "os.path.join(BASE_DIR, 'template')" doesnt work for you at 14:45 remove that and add the file location like this "C:\DjangoProjects\Saudwebsite\src\templates"
@deadman1999
@deadman1999 3 жыл бұрын
anyone knows how to really fix this without having the whole directory there like that?
@toshio1932
@toshio1932 3 жыл бұрын
@@deadman1999 in django 3 put only 'templates' in DIRS
@deadman1999
@deadman1999 3 жыл бұрын
@@toshio1932 Hey thanks for the reply, I am not working on that project anymore, but the solution is very much appreciated. Maybe someone will find it useful :)
@dazstuff1875
@dazstuff1875 2 жыл бұрын
@@toshio1932 I had to change to 'mysite/templates'
@yakoobalhsone8131
@yakoobalhsone8131 2 ай бұрын
@@dazstuff1875 thx its work
@bennyuchiha8501
@bennyuchiha8501 2 жыл бұрын
Dude... your content is so good and so well broken down youtube is doing you dirty man, i'm new here and imma stick around to learn a lot, love what you're doing here❤️
@medatre4792
@medatre4792 5 жыл бұрын
Thanks for the step-by-step info, it is really easy to follow!! Keep 'em coming please :)
@alidhaif9869
@alidhaif9869 4 жыл бұрын
at 9:00 when i type the code in setting.py/templates/dirs the BASE_DIR up in the page doesn't change? why isnt it changing please help me i have to submit 50% of my website in 3 days>
@borisdominguez9089
@borisdominguez9089 4 жыл бұрын
How'd the website go?
@bennyuchiha8501
@bennyuchiha8501 2 жыл бұрын
Having difficulties with the templates, i receive an error that says that the template does not exist
@donnaesperas3739
@donnaesperas3739 4 ай бұрын
This is really helpful! So thankful for your knowledge!
@samsclips8682
@samsclips8682 2 жыл бұрын
Finally I am in right place for learning.. thanks for wonderful teaching..
@dudiyalov
@dudiyalov 4 жыл бұрын
You did make a mistake in this video part: ERROR: 'tuple' object has no attribute 'get' when you had made a mistake in the views.py. You did not wrote return render(request, 'base.html', {},) so without the "render" people will get error!
@pushpamuralidhar6774
@pushpamuralidhar6774 6 ай бұрын
thanks for teaching step by step... very helpful.
@manvithyadavdega3921
@manvithyadavdega3921 4 жыл бұрын
Hello! I was asked to log in to the admin page. But I don't remember I created any user account. What to do now?
@OfficerRakesh
@OfficerRakesh 4 жыл бұрын
time: 14:45 I didn't get this the body..... there is template error "from personal.views import home_screen_view'
@adithyajjayasimha3493
@adithyajjayasimha3493 4 жыл бұрын
go to views and change home_screen to home_screen_views
@fazrinmegat5949
@fazrinmegat5949 4 жыл бұрын
u forgot to mention add import os so that the line 62 from settings.py wont have error name os not defined
@marliaren
@marliaren 4 жыл бұрын
hello, this happened to me. where do I put the import os?? thank youuu in advance :))
@supriyavunnava4147
@supriyavunnava4147 4 жыл бұрын
@@marliaren Add this import os from pathlib import Path in 12th line of settings.py hope this helps
@zuriatnaveed6723
@zuriatnaveed6723 4 жыл бұрын
Thanks a lot ...my error also solved 👍
@zuriatnaveed6723
@zuriatnaveed6723 4 жыл бұрын
I am getting error in form.view import home_screen....do u know the solution??
@b.sainathreddy4567
@b.sainathreddy4567 3 жыл бұрын
iam getting this error after adding import os do u know how to solve it : 'NAME': BASE_DIR / 'db.sqlite3', TypeError: unsupported operand type(s) for /: 'str' and 'str'
@shayansen861
@shayansen861 Жыл бұрын
Great vid 🤩
@magallonseancarl4061
@magallonseancarl4061 Жыл бұрын
Hi Mitch, followed everything you did but when I run the server, nothing shows on the page. It's just blank. What could be causing it?
@kingmop7249
@kingmop7249 Жыл бұрын
Thank you for the efforts you put into explaining to us step by step
@amirminay7511
@amirminay7511 5 жыл бұрын
Impatiently waiting for the next video.
@codingwithmitch
@codingwithmitch 5 жыл бұрын
haha. Todays sunday so It'll prob be tomorrow.
@sreyasreeya8724
@sreyasreeya8724 3 жыл бұрын
I am getting if response.get('X-Frame-Options') is not None: AttributeError: 'tuple' object has no attribute 'get' [04/Jun/2021 16:00:00] "GET / HTTP/1.1" 500 59604 error
@prathmeshmaurya5776
@prathmeshmaurya5776 4 жыл бұрын
I am getting an error in "from personal.views import home_screen_view'. I have checked for the correct hierarchy order of the directories. Any guesses, I am on Windows ?
@OfficerRakesh
@OfficerRakesh 4 жыл бұрын
same here I get a problem with "from personal.views import home_screen_view'
@tjaphyze7973
@tjaphyze7973 Жыл бұрын
i have a complain after i run the server on chapter 7 it shows os not define
@djStens
@djStens 3 жыл бұрын
Fucking goat dude. You explain django better than most people.
@pamelapricesoullinedancing9369
@pamelapricesoullinedancing9369 4 жыл бұрын
I am trying to be clear about an app in a project. What defines what should be considered an "app"? Would it be possible to put all your site functionality into a single app? Is it mostly about convenience and organization? The "apps" can talk to each other right?
@nassimback
@nassimback 4 жыл бұрын
after watching this whole playlist i noticed that i didn't press the like button on any of your videos ,so i just started pressing it on each video !if u have a python program that'll help me like your videos automatically send it LOL !
@codingwithmitch
@codingwithmitch 4 жыл бұрын
Thanks I appreciate that
@vasiliapilali8052
@vasiliapilali8052 Жыл бұрын
it doesn't work. it raises error in urls.py file "import personal.views could not be resolved".
@salehbensaleh4640
@salehbensaleh4640 4 жыл бұрын
i got problem here ,server not working, cmd msg sais' Nameerror : name templates is not defined' .. help plz
@davidsimunyola2909
@davidsimunyola2909 4 жыл бұрын
hey man my server stopped working after creating the app personal need help
@ghartube9562
@ghartube9562 4 жыл бұрын
have you find solution?
@rohansrinivas307
@rohansrinivas307 4 жыл бұрын
Mine too... What should I do
@davidsimunyola2909
@davidsimunyola2909 4 жыл бұрын
Not yet
@ShubhamSauravYT
@ShubhamSauravYT 5 жыл бұрын
Thanks for the video. I just wanted to ask a question. My question is: How does the view.py file knows that the base.html file is in template directory? Is it because of what we did in the settings.py file?
@eliasnicolas6443
@eliasnicolas6443 5 жыл бұрын
Yes...
@deekshasavarnika8305
@deekshasavarnika8305 4 жыл бұрын
Hi, this video helped me a lot thank you. I followed all the steps as you suggested, but here's an error as below when I run the command to check the server is active OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '' Then I tried to run the command python manage.py migrate (above error has gone) but I received another error as below: ModuleNotFoundError: No module named fitnessApp(name which I gave for my app) Am not sure what exactly is missing that's causing the error. Could you please help me out with this?
@pranithmahanti7208
@pranithmahanti7208 3 жыл бұрын
15:36 it's cls in Windows
@jamesmusembi1241
@jamesmusembi1241 Жыл бұрын
cls to clear in windows
@Ahmed-iam
@Ahmed-iam Жыл бұрын
Well explained
@bonfacenderitu9021
@bonfacenderitu9021 3 жыл бұрын
to clear the screen use cls in windows
@kharagkunchok
@kharagkunchok 5 жыл бұрын
Cls will do in windows.... I took challenge that I am gonna finish this course from tip to toe...
@marliaren
@marliaren 4 жыл бұрын
what do I do, this happened after running the server again (after setting up url and views)... 'NAME': BASE_DIR / 'db.sqlite3', TypeError: unsupported operand type(s) for /: 'str' and 'str'
@supriyavunnava4147
@supriyavunnava4147 4 жыл бұрын
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR , 'db.sqlite3'), } }
@prashantnegi5867
@prashantnegi5867 4 жыл бұрын
AttributeError: 'WSGIRequest' object has no attribute 'hearders' how to solve this error?
@amarnadhnagireddy4003
@amarnadhnagireddy4003 4 жыл бұрын
I getting error in settings.py 'DIRS' os error plz tell me how to cure it
@amarnadhnagireddy4003
@amarnadhnagireddy4003 4 жыл бұрын
Skipter thank you for suggestion I will try it
@hooverzavala8071
@hooverzavala8071 4 жыл бұрын
use bigger zoom to show the code please.
@MDDanishAnsariDev
@MDDanishAnsariDev 5 жыл бұрын
It's cls to clear terminal screen in Windows
@codingwithmitch
@codingwithmitch 5 жыл бұрын
Damnit I knew it was cl something
@MDDanishAnsariDev
@MDDanishAnsariDev 5 жыл бұрын
@@codingwithmitch hahaha
@kielmacapagal1453
@kielmacapagal1453 Жыл бұрын
CLS to Clear
@hawraaabdulrazzaq8371
@hawraaabdulrazzaq8371 Жыл бұрын
thanks so much
@KevinTempelx
@KevinTempelx 4 жыл бұрын
Thank you!
@sethzoid4033
@sethzoid4033 Жыл бұрын
doesnt work anymore
@sethzoid4033
@sethzoid4033 Жыл бұрын
nevermind
@ShivKumar-lg7rc
@ShivKumar-lg7rc 2 жыл бұрын
third party API integration using curl in Django
@documentingjourney7527
@documentingjourney7527 2 жыл бұрын
Why you do a tutorial with a bunch of errors, we are all stuck on home screen view or views and dir base, we do not get to the body page or base html, wasted bunch of time following this tutorial
@kossy_bml4407
@kossy_bml4407 Жыл бұрын
I think this error is of recent
@claytontill
@claytontill 5 ай бұрын
I found that you're code not same the default code and pythons spitting out how heap errors I found you're tutorial very unhelpful hard follow long with
@murphyscott5264
@murphyscott5264 Жыл бұрын
!!!!!!!! paste : import os in your url if server is not running
@pushpamuralidhar6774
@pushpamuralidhar6774 6 ай бұрын
thanks for the fix
@erickramones2167
@erickramones2167 5 жыл бұрын
thanks for the django tutorials, they are great but consider not to give too much explanation, try to be more direct. If someone is watching these tutorial is because they already have some knowledge about programming. I thinks Django is a bit confusing because It is not being easy for me to learn django. I know spring java web development, design patterns and I work as an android developer. I love your android tutorials, they are great.
@jdecrz
@jdecrz 2 жыл бұрын
Don't listen to him. Please give a lot of explanations to every detail you consider needs to be told because is very important to know what he just did.
Django Content Blocks and Snippets
10:40
CodingWithMitch
Рет қаралды 40 М.
Creating a Custom User Model (Django)
21:57
CodingWithMitch
Рет қаралды 104 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Learn Django in 20 Minutes!!
21:25
Tech With Tim
Рет қаралды 463 М.
Passing Variables to a Template with Django
8:41
CodingWithMitch
Рет қаралды 43 М.
Logging in Users
16:52
CodingWithMitch
Рет қаралды 19 М.
Django Tutorial #13 - Extending Templates
5:49
Net Ninja
Рет қаралды 80 М.
Creating views and urls for project | Django | Python
8:10
Django World
Рет қаралды 4,4 М.
Django Tutorial for Beginners - Build Powerful Backends
1:02:36
Programming with Mosh
Рет қаралды 2,8 МЛН
Custom User Registration Django (AbstractBaseUser and UserCreationForm)
17:04
Django Interview Questions (Junior Developer)
30:26
Dennis Ivy
Рет қаралды 130 М.
Django Tutorial - Templates & Custom HTML
27:52
Tech With Tim
Рет қаралды 115 М.
What are Django class based views & should you use them?
36:19
Dennis Ivy
Рет қаралды 85 М.