Re: template not exist error snap in attechment

2019-01-11 Thread 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 <
tribhuvankishor...@gmail.com> 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 <
> kannamshivakumar...@gmail.com> 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 <
>> tribhuvankishor...@gmail.com> wrote:
>>
>>> this is my directory structure
>>>
>>> On Fri, Jan 11, 2019 at 9:19 PM Martin K  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 django-users+unsubscr...@googlegroups.com.
 To post to this group, send email to django-users@googlegroups.com.
 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 

Re: template not exist error snap in attechment

2019-01-11 Thread 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 
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 <
> tribhuvankishor...@gmail.com> wrote:
>
>> this is my directory structure
>>
>> On Fri, Jan 11, 2019 at 9:19 PM Martin K  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 django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> 

Re: template not exist error snap in attechment

2019-01-11 Thread 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 <
tribhuvankishor...@gmail.com> wrote:

> this is my directory structure
>
> On Fri, Jan 11, 2019 at 9:19 PM Martin K  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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.


Re: template not exist error snap in attechment

2019-01-11 Thread Martin K

>
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.


Re: template not exist error snap in attechment

2019-01-11 Thread shiva kumar
Can you put your project file structure.

On Fri 11 Jan, 2019 5:46 pm NAveeN Kumar Reddy <
knaveenkumarredd...@gmail.com wrote:

> Check the link before pattern in path function
>
> On Fri 11 Jan, 2019, 4:43 PM tribhuvan kishor <
> tribhuvankishor...@gmail.com wrote:
>
>> URL
>>  path('//',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 %}
>> {{ post.title }}
>> 
>> Published {{ post.publish }} by {{ post.author }}
>> 
>> {{ 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.


Re: Connect DJANGO with mysql

2019-01-11 Thread NAveeN Kumar Reddy
"""
Django settings for djangoblog project.

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

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/
"""


from configurations import Configuration
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 = '$l6#02pj0xjru7u_bo=@lk9a@+73lpsj#z4i(q_o%hevf=9w97'

# 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',
'users','dashboard','frontend',
'crispy_forms'
]


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 = 'djangoblog.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 = 'djangoblog.wsgi.application'


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

DATABASES = {
'default': {
'NAME'  : 'djangoblog',
'ENGINE': 'django.db.backends.mysql',
'USER'  : 'root',
'PASSWORD'  : '',
'HOST'  : 'localhost',
'OPTIONS'   : {
'autocommit': True,
 },
}
}


# 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 files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "static")

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

##
==

#Email Settings
EMAIL_BACKEND   = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS   = True
EMAIL_HOST  = 'smtp.gmail.com'
EMAIL_HOST_USER = '@gmail.com'
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT  = 587

##
==

LOGIN_REDIRECT_URL  = '/home/index'
LOGOUT_REDIRECT_URL = '/accounts/login'


CRISPY_TEMPLATE_PACK = 'bootstrap4'


# Extra places for collectstatic to find static files.
# STATICFILES_DIRS = (
# os.path.join(BASE_DIR, 'static'),
# )

# STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'


On Fri 11 Jan, 2019, 5:47 PM ruk91  I have developed a react front-end and it has been connected t the DJANGO
> REST Framework. Now I need to use MySQL for data retrieving. Can 

Re: Connect DJANGO with mysql

2019-01-11 Thread Kasper Laudrup

Hi ruk91,

On 1/11/19 6:45 AM, ruk91 wrote:
I have developed a react front-end and it has been connected t the 
DJANGO REST Framework. Now I need to use MySQL for data retrieving. Can 
anyone guide me to that? Or just send me clear documentation or example.




How about this?:

https://www.digitalocean.com/community/tutorials/how-to-create-a-django-app-and-connect-it-to-a-database

You can probably skip most of it, but at least it seems to be pretty 
detailed when it comes to using Django with MySQL.


Kind regards,

Kasper Laudrup

--
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/5fc9565d-568b-67bf-a5ff-c7e1f56b26a6%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: template not exist error snap in attechment

2019-01-11 Thread NAveeN Kumar Reddy
Check the link before pattern in path function

On Fri 11 Jan, 2019, 4:43 PM tribhuvan kishor  URL
>  path('//',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 %}
> {{ post.title }}
> 
> Published {{ post.publish }} by {{ post.author }}
> 
> {{ 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.


Connect DJANGO with mysql

2019-01-11 Thread ruk91
I have developed a react front-end and it has been connected t the DJANGO 
REST Framework. Now I need to use MySQL for data retrieving. Can anyone 
guide me to that? Or just send me clear documentation or example.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/76e3dce8-b961-4eb0-a993-3d623149ee8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How & Where are Django View Functions Called?

2019-01-11 Thread 'Amitesh Sahay' via Django users
models.py, urls.py


Regards,
Amitesh Sahay91-750 797 8619 

On Thursday, 10 January, 2019, 11:50:54 PM IST, Vivek Jha 
 wrote:  
 
 you have to call in urls.py 
from django.urls import path
projectname.appname.views import home
url patterns=[                  path('home/',home),

On Thu, Jan 10, 2019 at 10:11 PM abel otugeme  wrote:


Ones your view matches your use patterns it gets called and run anytime you try 
access the site 


-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAMrS0S8J6VwHTqfDiWNN250JAU%2BCwqhJsNUdCdP5ni%3Dyj%3DYkEQ%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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAMriZeE9fywZX_%2BgG1JBedxnNKz2v_h9a1Q-LcQDtKFcSF9myA%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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/1425532809.15792221.1547196237488%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.