template not exist error snap in attechment

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

template not exist error snap in attechment

tribhuvan kishor
URL
 path('<int:year>/<slug:post>/',views.post_detail, name='post_detail'),
VIEW
def post_detail(request, year,  post):
post = get_object_or_404(Post, slug=post,
status='published',
publish__year=year,)
     return render(request,
'blog/post/detail.html',
{'post': post})

TEMPLATE
{% extends "blog/base.html" %}
{% block title %}{{ post.title }}{% endblock %}{% block content %}
<h1>{{ post.title }}</h1>
<p class="date">
Published {{ post.publish }} by {{ post.author }}
</p>
{{ post.body|linebreaks }}
{% endblock %}
Canonical URL

def get_absolute_url(self):
return reverse('blog:post_detail', args=[self.publish.year, self.slug]

TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html
--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX2LQ-oL0OwktHhLqCFwqqPwVwFagCaGX2rNTiBdxOa%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Screenshot from 2019-01-11 16-42-08.png (260K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

NAveeN Kumar Reddy
Check the link before pattern in path function

On Fri 11 Jan, 2019, 4:43 PM tribhuvan kishor <[hidden email] wrote:
URL
 path('<int:year>/<slug:post>/',views.post_detail, name='post_detail'),
VIEW
def post_detail(request, year,  post):
post = get_object_or_404(Post, slug=post,
status='published',
publish__year=year,)
     return render(request,
'blog/post/detail.html',
{'post': post})

TEMPLATE
{% extends "blog/base.html" %}
{% block title %}{{ post.title }}{% endblock %}{% block content %}
<h1>{{ post.title }}</h1>
<p class="date">
Published {{ post.publish }} by {{ post.author }}
</p>
{{ post.body|linebreaks }}
{% endblock %}
Canonical URL

def get_absolute_url(self):
return reverse('blog:post_detail', args=[self.publish.year, self.slug]

TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html
--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX2LQ-oL0OwktHhLqCFwqqPwVwFagCaGX2rNTiBdxOa%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BC2Q80cu1L4BvXE9PX%2BF140hOhiX8ZVLBqJtjATpm%3DJEcACNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

shiva kumar
Can you put your project file structure. 

On Fri 11 Jan, 2019 5:46 pm NAveeN Kumar Reddy <[hidden email] wrote:
Check the link before pattern in path function

On Fri 11 Jan, 2019, 4:43 PM tribhuvan kishor <[hidden email] wrote:
URL
 path('<int:year>/<slug:post>/',views.post_detail, name='post_detail'),
VIEW
def post_detail(request, year,  post):
post = get_object_or_404(Post, slug=post,
status='published',
publish__year=year,)
     return render(request,
'blog/post/detail.html',
{'post': post})

TEMPLATE
{% extends "blog/base.html" %}
{% block title %}{{ post.title }}{% endblock %}{% block content %}
<h1>{{ post.title }}</h1>
<p class="date">
Published {{ post.publish }} by {{ post.author }}
</p>
{{ post.body|linebreaks }}
{% endblock %}
Canonical URL

def get_absolute_url(self):
return reverse('blog:post_detail', args=[self.publish.year, self.slug]

TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html
--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX2LQ-oL0OwktHhLqCFwqqPwVwFagCaGX2rNTiBdxOa%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BC2Q80cu1L4BvXE9PX%2BF140hOhiX8ZVLBqJtjATpm%3DJEcACNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuHzyaj1H5ocfJQpfdOvMKmK_MHMhxxDywkxgpFYX%2By_FQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

Martin K
In reply to this post by tribhuvan kishor
TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html


You see directly in the error that template should be located in  PROJECT/APP/template/blog/post/detail.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56b852a-9948-45d5-bafd-479530c0c2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

tribhuvan kishor
this is my directory structure

On Fri, Jan 11, 2019 at 9:19 PM Martin K <[hidden email]> wrote:
TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html


You see directly in the error that template should be located in  PROJECT/APP/template/blog/post/detail.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56b852a-9948-45d5-bafd-479530c0c2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX4ScGJMbkik-zLvhh%2BQA6KCq7toBzFMEijOvJbtwKzFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Screenshot from 2019-01-12 11-14-25.png (254K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

shiva kumar
once post your setting.py file content . i will try to figure it out.


On Sat, Jan 12, 2019 at 11:16 AM tribhuvan kishor <[hidden email]> wrote:
this is my directory structure

On Fri, Jan 11, 2019 at 9:19 PM Martin K <[hidden email]> wrote:
TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html


You see directly in the error that template should be located in  PROJECT/APP/template/blog/post/detail.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56b852a-9948-45d5-bafd-479530c0c2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX4ScGJMbkik-zLvhh%2BQA6KCq7toBzFMEijOvJbtwKzFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuEAkL%2BsHDStbMn25eK%2BWsALdo%2BaD_Do8Z9%3DLVs3DzRchw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

tribhuvan kishor
"""
Django settings for mysite project.

Generated by 'django-admin startproject' using Django 2.0.5.

For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""

import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'po3(*jzn*8yzi$765qqcke+ewdc()g6xbwvx(g64i^bw28ulc@'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'mysite.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'mysite.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

DATABASES = {
'default': {
'NAME': 'mysite',
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'PORT':'3306',
'USER': 'root',
'PASSWORD': 'root',
}
}


# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'

On Sat, Jan 12, 2019 at 11:33 AM shiva kumar <[hidden email]> wrote:
once post your setting.py file content . i will try to figure it out.


On Sat, Jan 12, 2019 at 11:16 AM tribhuvan kishor <[hidden email]> wrote:
this is my directory structure

On Fri, Jan 11, 2019 at 9:19 PM Martin K <[hidden email]> wrote:
TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html


You see directly in the error that template should be located in  PROJECT/APP/template/blog/post/detail.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56b852a-9948-45d5-bafd-479530c0c2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX4ScGJMbkik-zLvhh%2BQA6KCq7toBzFMEijOvJbtwKzFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuEAkL%2BsHDStbMn25eK%2BWsALdo%2BaD_Do8Z9%3DLVs3DzRchw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSWE%2BuuUda3tQhBWULS3H2Rdf2-Mk7T3sERSmwvG%2BotHqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

tribhuvan kishor
even list.html is in the same place and its accessible . i am not getting why showing problem with details.html


On Sat, Jan 12, 2019 at 12:40 PM tribhuvan kishor <[hidden email]> wrote:
"""
Django settings for mysite project.

Generated by 'django-admin startproject' using Django 2.0.5.

For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""

import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'po3(*jzn*8yzi$765qqcke+ewdc()g6xbwvx(g64i^bw28ulc@'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'mysite.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'mysite.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

DATABASES = {
'default': {
'NAME': 'mysite',
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'PORT':'3306',
'USER': 'root',
'PASSWORD': 'root',
}
}


# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'

On Sat, Jan 12, 2019 at 11:33 AM shiva kumar <[hidden email]> wrote:
once post your setting.py file content . i will try to figure it out.


On Sat, Jan 12, 2019 at 11:16 AM tribhuvan kishor <[hidden email]> wrote:
this is my directory structure

On Fri, Jan 11, 2019 at 9:19 PM Martin K <[hidden email]> wrote:
TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html


You see directly in the error that template should be located in  PROJECT/APP/template/blog/post/detail.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56b852a-9948-45d5-bafd-479530c0c2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX4ScGJMbkik-zLvhh%2BQA6KCq7toBzFMEijOvJbtwKzFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuEAkL%2BsHDStbMn25eK%2BWsALdo%2BaD_Do8Z9%3DLVs3DzRchw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSUhxyhSkzKou8w%2BKEfuY8iYT%3DVR0wo5SM8re-5AcXvEiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

shiva kumar
It's not detail it's details.html

On Sat 12 Jan, 2019 12:42 pm tribhuvan kishor <[hidden email] wrote:
even list.html is in the same place and its accessible . i am not getting why showing problem with details.html


On Sat, Jan 12, 2019 at 12:40 PM tribhuvan kishor <[hidden email]> wrote:
"""
Django settings for mysite project.

Generated by 'django-admin startproject' using Django 2.0.5.

For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""

import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'po3(*jzn*8yzi$765qqcke+ewdc()g6xbwvx(g64i^bw28ulc@'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'mysite.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'mysite.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

DATABASES = {
'default': {
'NAME': 'mysite',
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'PORT':'3306',
'USER': 'root',
'PASSWORD': 'root',
}
}


# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'

On Sat, Jan 12, 2019 at 11:33 AM shiva kumar <[hidden email]> wrote:
once post your setting.py file content . i will try to figure it out.


On Sat, Jan 12, 2019 at 11:16 AM tribhuvan kishor <[hidden email]> wrote:
this is my directory structure

On Fri, Jan 11, 2019 at 9:19 PM Martin K <[hidden email]> wrote:
TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html


You see directly in the error that template should be located in  PROJECT/APP/template/blog/post/detail.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56b852a-9948-45d5-bafd-479530c0c2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX4ScGJMbkik-zLvhh%2BQA6KCq7toBzFMEijOvJbtwKzFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuEAkL%2BsHDStbMn25eK%2BWsALdo%2BaD_Do8Z9%3DLVs3DzRchw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSUhxyhSkzKou8w%2BKEfuY8iYT%3DVR0wo5SM8re-5AcXvEiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuFzZJWtEJaMz21ewnOUBaN_XWcn%3D0P5smQ6LguFnhWqEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

tribhuvan kishor
thanks, Shiva I think its matter of lack of concentration from my side thanks buddy, 

On Sat, Jan 12, 2019 at 1:32 PM shiva kumar <[hidden email]> wrote:
It's not detail it's details.html

On Sat 12 Jan, 2019 12:42 pm tribhuvan kishor <[hidden email] wrote:
even list.html is in the same place and its accessible . i am not getting why showing problem with details.html


On Sat, Jan 12, 2019 at 12:40 PM tribhuvan kishor <[hidden email]> wrote:
"""
Django settings for mysite project.

Generated by 'django-admin startproject' using Django 2.0.5.

For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""

import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'po3(*jzn*8yzi$765qqcke+ewdc()g6xbwvx(g64i^bw28ulc@'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'mysite.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'mysite.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

DATABASES = {
'default': {
'NAME': 'mysite',
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'PORT':'3306',
'USER': 'root',
'PASSWORD': 'root',
}
}


# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'

On Sat, Jan 12, 2019 at 11:33 AM shiva kumar <[hidden email]> wrote:
once post your setting.py file content . i will try to figure it out.


On Sat, Jan 12, 2019 at 11:16 AM tribhuvan kishor <[hidden email]> wrote:
this is my directory structure

On Fri, Jan 11, 2019 at 9:19 PM Martin K <[hidden email]> wrote:
TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html


You see directly in the error that template should be located in  PROJECT/APP/template/blog/post/detail.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56b852a-9948-45d5-bafd-479530c0c2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX4ScGJMbkik-zLvhh%2BQA6KCq7toBzFMEijOvJbtwKzFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuEAkL%2BsHDStbMn25eK%2BWsALdo%2BaD_Do8Z9%3DLVs3DzRchw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSUhxyhSkzKou8w%2BKEfuY8iYT%3DVR0wo5SM8re-5AcXvEiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuFzZJWtEJaMz21ewnOUBaN_XWcn%3D0P5smQ6LguFnhWqEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSV%2BFHEEJ0b%2B8p%3DrO6dAdN58Bj1yQu9LzKHWQA%3Do24LDjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: template not exist error snap in attechment

tribhuvan kishor
In reply to this post by shiva kumar
thanks shiva . thanks alot i think a lack of concentration 

On Sat, Jan 12, 2019 at 1:32 PM shiva kumar <[hidden email]> wrote:
It's not detail it's details.html

On Sat 12 Jan, 2019 12:42 pm tribhuvan kishor <[hidden email] wrote:
even list.html is in the same place and its accessible . i am not getting why showing problem with details.html


On Sat, Jan 12, 2019 at 12:40 PM tribhuvan kishor <[hidden email]> wrote:
"""
Django settings for mysite project.

Generated by 'django-admin startproject' using Django 2.0.5.

For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""

import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'po3(*jzn*8yzi$765qqcke+ewdc()g6xbwvx(g64i^bw28ulc@'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'mysite.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'mysite.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

DATABASES = {
'default': {
'NAME': 'mysite',
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'PORT':'3306',
'USER': 'root',
'PASSWORD': 'root',
}
}


# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'

On Sat, Jan 12, 2019 at 11:33 AM shiva kumar <[hidden email]> wrote:
once post your setting.py file content . i will try to figure it out.


On Sat, Jan 12, 2019 at 11:16 AM tribhuvan kishor <[hidden email]> wrote:
this is my directory structure

On Fri, Jan 11, 2019 at 9:19 PM Martin K <[hidden email]> wrote:
TEMplate DIrectory 
PROJECT/APP/template/blog/detail.html


You see directly in the error that template should be located in  PROJECT/APP/template/blog/post/detail.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56b852a-9948-45d5-bafd-479530c0c2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSX4ScGJMbkik-zLvhh%2BQA6KCq7toBzFMEijOvJbtwKzFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuEAkL%2BsHDStbMn25eK%2BWsALdo%2BaD_Do8Z9%3DLVs3DzRchw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSUhxyhSkzKou8w%2BKEfuY8iYT%3DVR0wo5SM8re-5AcXvEiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuFzZJWtEJaMz21ewnOUBaN_XWcn%3D0P5smQ6LguFnhWqEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACiphSV8uOvg--%2BLdDsadFz%3DiZiMqbDAnMeG-DuTOgKf%2BMhq9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.