10 | Getting Started with Django Template | by Hardik Patel

  Рет қаралды 5,648

Hardik Patel

Hardik Patel

Күн бұрын

Пікірлер: 17
@Magistrado1914
@Magistrado1914 4 жыл бұрын
Excellent course 02/10/2020
@arminbwagner
@arminbwagner 6 жыл бұрын
Your STATIC setup (14:40 and later) didn't work for me. The css did not get loaded. I decided to put all static files in a separate directory 'static_dev' and set STATICFILES_DIRS = (os.path.join(BASE_DIR, 'ems/static_dev'),)
@arminbwagner
@arminbwagner 6 жыл бұрын
In development (DEBUG=true).
@hardcode5394
@hardcode5394 5 жыл бұрын
@@HardikPatelN respected Hardik sir, can u plz help. My index.html page is not displayed. My folder set up is--- ems- ems->base.html, poll->index.html poll employee
@vivek4634
@vivek4634 5 жыл бұрын
I like your videos very much. And the real-time errors happening and you fixing it is very useful for the viewers because the same errors happens to most of us.
@chennakeshavareddy3474
@chennakeshavareddy3474 4 жыл бұрын
i have one doubt
@vivek4634
@vivek4634 5 жыл бұрын
Hi, why do we need to use {% static 'css/custom.css' %} to link the CSS file? Normally, we just use href="css/custom.css" to link it with the HTML file right?
@vivek4634
@vivek4634 5 жыл бұрын
@@HardikPatelN Thank you very much for explaining.
@jitendrachhipa568
@jitendrachhipa568 6 жыл бұрын
this is the error i am getting can you help me out in this Page not found (404) Request Method: GET Request URL: 127.0.0.1:8000/polls/ Using the URLconf defined in ems.urls, Django tried these URL patterns, in this order: admin/ polls/ [name='polls_list'] The current path, polls/, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
@jitendrachhipa568
@jitendrachhipa568 6 жыл бұрын
ems\urls.py from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('polls', include('poll.urls')), ] ems\poll\urls.py from django.urls import path from poll.views import index urlpatterns = [ path('', index, name ='polls_list'), ]
@MrAntoAnish
@MrAntoAnish 5 жыл бұрын
Could you tell me which extension are you using for django in vscode
@MrAntoAnish
@MrAntoAnish 5 жыл бұрын
@@HardikPatelN When you typed render , it showed the syntax for render, it doesnt do the same in my case
@nagadurgabattula5001
@nagadurgabattula5001 6 жыл бұрын
Very nice Explanation Sir...And please provide the github link..
@edip_c
@edip_c 6 жыл бұрын
Thanks a lot for your efforts, I 've been watching few other tutorials, none of them shared useful tricks that you share in this series. One the interesting conventions you used was to locate the template folder in project subfolder(really useful for other static pages and keep everything in the same place). In that case; what if I want to create a link to static page(our services, team etc); how should we structure it? would I need a views.py (in the same folder with templates folder) to reference from urls.py? how would I import views from this views.py within urls.py? Thanks a lot!
@edip_c
@edip_c 6 жыл бұрын
@@HardikPatelN Thanks a lot! All the best.
@ravishankarbirajdar4072
@ravishankarbirajdar4072 6 жыл бұрын
I want gitfile of project
@nagadurgabattula5001
@nagadurgabattula5001 6 жыл бұрын
Very nice Explanation Sir...And please provide the github link..
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 660 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Django REST Framework Oversimplified
9:43
Dennis Ivy
Рет қаралды 361 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Путин ответил на ультиматум Трампа
7:25
Diplomatrutube
Рет қаралды 1,7 МЛН
5 Hidden Windows Features You Should Be Using in 2025!
8:05
Kevin Stratvert
Рет қаралды 125 М.
This AI Robot Is Doing the Impossible - Unitree x ElizaWakesUp
9:30
AI Revolution
Рет қаралды 162 М.
What is a Webhook? Webhooks for Beginners
10:06
Mehul - Codedamn
Рет қаралды 235 М.
Putin urgently interrupted a meeting / Change of power in Ukraine
14:46
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН