RE: Please help me solving this error

2023-05-24 Thread prdpchowdhary
My code is import re iine = “My name is Bahtta. I want to learn”print(re.findall('[aeiou]+', line))And is it is running okSent from Mail for Windows From: Ramesh BhattaSent: Wednesday, May 24, 2023 6:41 AMTo: django-users@googlegroups.comSubject: Please help me solving this error Traceback (most recent call last):  File "C:\users\rudra\desktop\python\client2.py", line 1, in     import urllib.request  File "C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 84, in     import base64  File "C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\base64.py", line 9, in     import re  File "C:\users\rudra\desktop\python\re.py", line 23    print(re.findall('[aeiou]+',line))                                      ^ --   -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHrGOLFQmheaL1frkawv4obMJF5%3DPfmsPxH2nmRrPPwdoCAHeA%40mail.gmail.com. 



-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8D557F9E-04E5-4E55-857D-A6E7B2008640%40hxcore.ol.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-29 Thread Ammar Mohammed
Hello Dear
You should name your apps without the app word in the end
Example :
INSTALLED_APPS = [
"apps.store'',
" apps.core",
]
This will definitely work

Regards

On Wed, 19 Oct 2022, 7:30 AM regan opere,  wrote:

> Many, thanks for the reply. However, I have two apps in the directory
> called Apps..
> so when I name the apps in the settings using
> tiles.apps.TilesConfig' it still does'nt work
>
>   naming them like this:
>
>  'apps.core.apps',
>
> 'apps.store.apps',
> also still giver the error: django.core.exceptions.ImproperlyConfigured:
> Application labels aren't unique, duplicates: apps
>
> however, when I delete one of the apps from the settings, the server runs
> without an error
> On Wednesday, October 19, 2022 at 2:17:55 AM UTC+3 Codex wrote:
>
>> Lets take App Directory name tiles.
>> So inthe installed app list it will be
>>
>> 'tiles.apps.TilesConfig',
>> Or put simply
>> 'tiles',
>> Hope it helps .
>>
>>
>> On Tue, Oct 18, 2022, 06:16 regan opere  wrote:
>>
>>> Hello, I am new to django and I am still learning.
>>> I have created two apps core and store and I have registered them in the
>>> settings file of my root directory.
>>>  This is the error I get:
>>> django.core.exceptions.ImproperlyConfigured: Application labels aren't
>>> unique, duplicates: apps
>>>
>>> my settings look like this
>>> INSTALLED_APPS = [
>>> 'django.contrib.admin',
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.messages',
>>> 'django.contrib.staticfiles',
>>>
>>> 'apps.core.apps',
>>>
>>> 'apps.store.apps',
>>>
>>>
>>> and their individual apps.py look like this:
>>>
>>> class CoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'core'
>>>
>>>
>>> and
>>>
>>> class StoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'store'
>>>
>>>
>>>
>>> without the second app 'store" the server runs just fine
>>>
>>> --
>>>
>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/fab8949f-1012-4fad-8259-b63c67195f69n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/65db3780-57ec-41ec-afaf-abe16ae85e69n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHs1H7uxkrLFMvDs2t9w7hRJeyhNg21QxDKHj6-Dqhnv99cSNg%40mail.gmail.com.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-19 Thread johnpaul mulongo
You need to give the django apps you created unique names (try to see them
as separate entities), in your case this would be 'core' and 'store', then
you need to add them to the INSTALED_APPS list like so in the settings file:
[...,
'core.apps.CoreConfig',
'store.apps.StoreConfig',
]



On Wed, Oct 19, 2022 at 8:29 AM regan opere  wrote:

> Many, thanks for the reply. However, I have two apps in the directory
> called Apps..
> so when I name the apps in the settings using
> tiles.apps.TilesConfig' it still does'nt work
>
>   naming them like this:
>
>  'apps.core.apps',
>
> 'apps.store.apps',
> also still giver the error: django.core.exceptions.ImproperlyConfigured:
> Application labels aren't unique, duplicates: apps
>
> however, when I delete one of the apps from the settings, the server runs
> without an error
> On Wednesday, October 19, 2022 at 2:17:55 AM UTC+3 Codex wrote:
>
>> Lets take App Directory name tiles.
>> So inthe installed app list it will be
>>
>> 'tiles.apps.TilesConfig',
>> Or put simply
>> 'tiles',
>> Hope it helps .
>>
>>
>> On Tue, Oct 18, 2022, 06:16 regan opere  wrote:
>>
>>> Hello, I am new to django and I am still learning.
>>> I have created two apps core and store and I have registered them in the
>>> settings file of my root directory.
>>>  This is the error I get:
>>> django.core.exceptions.ImproperlyConfigured: Application labels aren't
>>> unique, duplicates: apps
>>>
>>> my settings look like this
>>> INSTALLED_APPS = [
>>> 'django.contrib.admin',
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.messages',
>>> 'django.contrib.staticfiles',
>>>
>>> 'apps.core.apps',
>>>
>>> 'apps.store.apps',
>>>
>>>
>>> and their individual apps.py look like this:
>>>
>>> class CoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'core'
>>>
>>>
>>> and
>>>
>>> class StoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'store'
>>>
>>>
>>>
>>> without the second app 'store" the server runs just fine
>>>
>>> --
>>>
>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/fab8949f-1012-4fad-8259-b63c67195f69n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/65db3780-57ec-41ec-afaf-abe16ae85e69n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOj59W0fjZbkGpGvrSyFiCwAAJrt6%3D_6d1zb1G759J9igyu4aA%40mail.gmail.com.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-18 Thread regan opere
Many, thanks for the reply. However, I have two apps in the directory 
called Apps..
so when I name the apps in the settings using 
tiles.apps.TilesConfig' it still does'nt work

  naming them like this:

 'apps.core.apps',
   
'apps.store.apps',
also still giver the error: django.core.exceptions.ImproperlyConfigured: 
Application labels aren't unique, duplicates: apps

however, when I delete one of the apps from the settings, the server runs 
without an error
On Wednesday, October 19, 2022 at 2:17:55 AM UTC+3 Codex wrote:

> Lets take App Directory name tiles.
> So inthe installed app list it will be
>
> 'tiles.apps.TilesConfig',
> Or put simply
> 'tiles',
> Hope it helps .
>
>
> On Tue, Oct 18, 2022, 06:16 regan opere  wrote:
>
>> Hello, I am new to django and I am still learning.
>> I have created two apps core and store and I have registered them in the 
>> settings file of my root directory.
>>  This is the error I get:
>> django.core.exceptions.ImproperlyConfigured: Application labels aren't 
>> unique, duplicates: apps
>>
>> my settings look like this
>> INSTALLED_APPS = [
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> 
>> 'apps.core.apps',
>> 
>> 'apps.store.apps',
>>
>>
>> and their individual apps.py look like this:
>>
>> class CoreConfig(AppConfig):
>> default_auto_field = 'django.db.models.BigAutoField'
>> name = 'core'
>>  
>>
>> and 
>>
>> class StoreConfig(AppConfig):
>> default_auto_field = 'django.db.models.BigAutoField'
>> name = 'store'
>>   
>>
>>
>> without the second app 'store" the server runs just fine
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/fab8949f-1012-4fad-8259-b63c67195f69n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/65db3780-57ec-41ec-afaf-abe16ae85e69n%40googlegroups.com.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-18 Thread Chukwudi Onwusa
Lets take App Directory name tiles.
So inthe installed app list it will be

'tiles.apps.TilesConfig',
Or put simply
'tiles',
Hope it helps .


On Tue, Oct 18, 2022, 06:16 regan opere  wrote:

> Hello, I am new to django and I am still learning.
> I have created two apps core and store and I have registered them in the
> settings file of my root directory.
>  This is the error I get:
> django.core.exceptions.ImproperlyConfigured: Application labels aren't
> unique, duplicates: apps
>
> my settings look like this
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
>
> 'apps.core.apps',
>
> 'apps.store.apps',
>
>
> and their individual apps.py look like this:
>
> class CoreConfig(AppConfig):
> default_auto_field = 'django.db.models.BigAutoField'
> name = 'core'
>
>
> and
>
> class StoreConfig(AppConfig):
> default_auto_field = 'django.db.models.BigAutoField'
> name = 'store'
>
>
>
> without the second app 'store" the server runs just fine
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fab8949f-1012-4fad-8259-b63c67195f69n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGoV8nnQ7giNodE94_Rma_asWGR2-%3DEVzjcH99zaAEx2_VCPnQ%40mail.gmail.com.


Re: please help me to solve

2022-07-26 Thread Chelsea Fan
thanks bro

On Wed, Jul 27, 2022 at 7:36 AM Abdul Qoyyuum 
wrote:

> This is a Django group. I don't know how its implemented in Android but
> for your use case, you will need to learn Socket programming. Other than
> that, I can't help you. Sorry.
>
> On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan 
> wrote:
>
>> Hello, such a question, we plan to implement an application for Android,
>> for a TV and for a phone, it will be an application with the broadcast of
>> different channels, you will need to stream somehow, i.e. there is no
>> direct access.
>> which technologies I 'v to use for it?
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Abdul Qoyyuum Bin Haji Abdul Kadir
> HP No: +673 720 8043
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA3DN%3DWBB3tCjYZMDo5q7ce85-7u64uUB6eWhkjpb-0BfEVJVQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJwZndfCO8wjWi22VXy%3DwpnUOTGmzEJRfubsY336Yh7MuBziiQ%40mail.gmail.com.


Re: please help me to solve

2022-07-26 Thread Abdul Qoyyuum
This is a Django group. I don't know how its implemented in Android but for
your use case, you will need to learn Socket programming. Other than that,
I can't help you. Sorry.

On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan 
wrote:

> Hello, such a question, we plan to implement an application for Android,
> for a TV and for a phone, it will be an application with the broadcast of
> different channels, you will need to stream somehow, i.e. there is no
> direct access.
> which technologies I 'v to use for it?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com
> 
> .
>


-- 
Abdul Qoyyuum Bin Haji Abdul Kadir
HP No: +673 720 8043

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA3DN%3DWBB3tCjYZMDo5q7ce85-7u64uUB6eWhkjpb-0BfEVJVQ%40mail.gmail.com.


Re: please help me todebug this code

2021-09-01 Thread Munzir Abba Daneji
Alright Peter sorry i get it. Fine

On Tue, Aug 31, 2021, 2:16 PM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:

> You seem to be confused about who asked the question because it was not me
> who asked the question.
> On 8/31/21 6:58 AM, Munzir Abba Daneji wrote:
>
> Hi peter The tag library you use is not correct use
> 
> {% load static %}
>
> again you html directory seems to be not organise try project_folder >
> Template_folder> index.html for example
>
> On Tue, Aug 31, 2021, 1:46 AM 'Peter van der Does' via Django users <
> django-users@googlegroups.com> wrote:
>
>> Uh what question are you answering?
>> On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
>>
>> Peter Check your Template DIR you supposed to organize you folders flow
>> under your "first_project" folder create the template folder and inser you
>> html
>>
>> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users <
>> django-users@googlegroups.com> wrote:
>>
>>> You got a " on line 2 that shouldn't be there
>>> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>>>
>>> In template C:\Users\DUSHYANT
>>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>>> error at line 2
>>>'"' is not a registered tag library. Must be one of:
>>>
>>>1 : !DOCTYPE html
>>>2 :  {% load static "%}
>>>
>>> --
>>>
>>> *Peter van der Does o: **410-584-2500*
>>> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com
>>>  *
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
>> 
>> .
>>
>> --
>>
>> *Peter van der Does o: **410-584-2500*
>> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com
>>  *
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADL6%2BC%3DW20E1e-NZpRPjmULL%3DaD-Ty13xMk78jj%3Dupc-Wx%3D_pw%40mail.gmail.com
> 
> .
>
> --
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com
>  *
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7abe5b37-5819-608b-a746-979c31812592%40oneilinteractive.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADL6%2BCnntENZ82gwUSY%3DOfNFv6cijjRVDO83R9TnwoNmvaju%2BQ%40mail.gmail.com.


Re: please help me todebug this code

2021-08-31 Thread 'Peter van der Does' via Django users
You seem to be confused about who asked the question because it was not
me who asked the question.

On 8/31/21 6:58 AM, Munzir Abba Daneji wrote:
> Hi peter The tag library you use is not correct use 
> 
> {% load static %}
>
> again you html directory seems to be not organise try project_folder >
> Template_folder> index.html for example 
>
> On Tue, Aug 31, 2021, 1:46 AM 'Peter van der Does' via Django users
> mailto:django-users@googlegroups.com>>
> wrote:
>
> Uh what question are you answering?
>
> On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
>> Peter Check your Template DIR you supposed to organize you
>> folders flow under your "first_project" folder create the
>> template folder and inser you html 
>>
>> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django
>> users > > wrote:
>>
>> You got a " on line 2 that shouldn't be there
>>
>> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>>> In template C:\Users\DUSHYANT
>>> 
>>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>>> error at line 2
>>>    '"' is not a registered tag library. Must be one of:
>>>
>>>    1 : !DOCTYPE html
>>>    2 :  {% load static "%} 
>> -- 
>> *Peter van der Does
>> o: ***410-584-2500
>> m: 732-425-3102
>> *ONeil Interactive, Inc *
>> oneilinteractive.com 
>> **
>> -- 
>> 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 view this discussion on the web visit
>> 
>> https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com
>> 
>> .
>>
>> -- 
>> 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 view this discussion on the web visit
>> 
>> https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
>> 
>> .
> -- 
> *Peter van der Does
> o: ***410-584-2500
> m: 732-425-3102
> *ONeil Interactive, Inc *
> oneilinteractive.com 
> **
> -- 
> 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 view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/django-users/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.com
> 
> .
>
> -- 
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADL6%2BC%3DW20E1e-NZpRPjmULL%3DaD-Ty13xMk78jj%3Dupc-Wx%3D_pw%40mail.gmail.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.com 
**

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7abe5b37-5819-608b-a746-979c31812592%40oneilinteractive.com.


Re: please help me todebug this code

2021-08-31 Thread Munzir Abba Daneji
Hi peter The tag library you use is not correct use

{% load static %}

again you html directory seems to be not organise try project_folder >
Template_folder> index.html for example

On Tue, Aug 31, 2021, 1:46 AM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:

> Uh what question are you answering?
> On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
>
> Peter Check your Template DIR you supposed to organize you folders flow
> under your "first_project" folder create the template folder and inser you
> html
>
> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users <
> django-users@googlegroups.com> wrote:
>
>> You got a " on line 2 that shouldn't be there
>> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>>
>> In template C:\Users\DUSHYANT
>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>> error at line 2
>>'"' is not a registered tag library. Must be one of:
>>
>>1 : !DOCTYPE html
>>2 :  {% load static "%}
>>
>> --
>>
>> *Peter van der Does o: **410-584-2500*
>> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com
>>  *
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
> 
> .
>
> --
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com
>  *
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADL6%2BC%3DW20E1e-NZpRPjmULL%3DaD-Ty13xMk78jj%3Dupc-Wx%3D_pw%40mail.gmail.com.


Re: please help me todebug this code

2021-08-30 Thread 'Peter van der Does' via Django users
Uh what question are you answering?

On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
> Peter Check your Template DIR you supposed to organize you folders
> flow under your "first_project" folder create the template folder and
> inser you html 
>
> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users
> mailto:django-users@googlegroups.com>>
> wrote:
>
> You got a " on line 2 that shouldn't be there
>
> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>> In template C:\Users\DUSHYANT
>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>> error at line 2
>>    '"' is not a registered tag library. Must be one of:
>>
>>    1 : !DOCTYPE html
>>    2 :  {% load static "%} 
> -- 
> *Peter van der Does
> o: ***410-584-2500
> m: 732-425-3102
> *ONeil Interactive, Inc *
> oneilinteractive.com 
> **
> -- 
> 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 view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com
> 
> .
>
> -- 
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.com 
**

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.com.


Re: please help me todebug this code

2021-08-30 Thread Munzir Abba Daneji
Peter Check your Template DIR you supposed to organize you folders flow
under your "first_project" folder create the template folder and inser you
html

On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:

> You got a " on line 2 that shouldn't be there
> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>
> In template C:\Users\DUSHYANT
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
> error at line 2
>'"' is not a registered tag library. Must be one of:
>
>1 : !DOCTYPE html
>2 :  {% load static "%}
>
> --
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com
>  *
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com.


Re: please help me todebug this code

2021-08-30 Thread 'Peter van der Does' via Django users
You got a " on line 2 that shouldn't be there

On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
> In template C:\Users\DUSHYANT
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
> error at line 2
>    '"' is not a registered tag library. Must be one of:
>
>    1 : !DOCTYPE html
>    2 :  {% load static "%} 
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.com 
**

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com.


Re: please help me todebug this code

2021-08-30 Thread MR INDIA
send the template

On Sunday, 29 August 2021 at 08:12:37 UTC+5:30 du19sh...@gmail.com wrote:

>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/cor/learndj/
>
> Django Version: 3.0
> Python Version: 3.8.6
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'course',
>  'fees']
> Installed 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']
>
>
> Template error:
> In template C:\Users\DUSHYANT 
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html, 
> error at line 2
>'"' is not a registered tag library. Must be one of:
> admin_list
> admin_modify
> admin_urls
> cache
> i18n
> l10n
> log
> static
> tz
>1 : !DOCTYPE html
>2 :  {% load static "%} 
>3 : html lang="en"
>4 :   head
>5 : meta charset="UTF-8" /
>6 : meta name="viewport" content="width=device-width, 
> initial-scale=1.0" /
>7 : link rel="stylesheet" href="{% static 'css/style.css' %}" 
> /
>8 : title{{title}}/title
>9 :   /head
>10 : 
>11 :   body
>12 : h2Start Learning {{cname}}/h2
>
>
> Traceback (most recent call last):
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\defaulttags.py",
>  
> line 1021, in find_library
> return parser.libraries[name]
>
> During handling of the above exception ('"'), another exception occurred:
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\exception.py",
>  
> line 34, in inner
> response = get_response(request)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\base.py",
>  
> line 115, in _get_response
> response = self.process_exception_by_middleware(e, request)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\base.py",
>  
> line 113, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File "C:\Users\DUSHYANT 
> THAKUR\PycharmProjects\django\gs15\course\views.py", line 5, in learn_django
> return render(request,'course/index.html')
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\shortcuts.py",
>  
> line 19, in render
> content = loader.render_to_string(template_name, context, request, 
> using=using)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py",
>  
> line 61, in render_to_string
> template = get_template(template_name, using=using)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py",
>  
> line 15, in get_template
> return engine.get_template(template_name)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\backends\django.py",
>  
> line 34, in get_template
> return Template(self.engine.get_template(template_name), self)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\engine.py",
>  
> line 143, in get_template
> template, origin = self.find_template(template_name)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\engine.py",
>  
> line 125, in find_template
> template = loader.get_template(name, skip=skip)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loaders\base.py",
>  
> line 29, in get_template
> return Template(
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 156, in __init__
> self.nodelist = self.compile_nodelist()
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 194, in compile_nodelist
> return parser.parse()
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 477, in parse
> raise self.error(token, e)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 475, in parse
> compiled_result = compile_func(self, token)

Re: Please help me to add button functionality in django admin panel for filter list of objects

2021-08-08 Thread MR INDIA
This article can help 
: 
https://hakibenita.medium.com/how-to-add-custom-action-buttons-to-django-admin-8d266f5b0d41
 

On Thursday, 5 August 2021 at 18:31:52 UTC+5:30 arvind@gmail.com wrote:

> hey guys i want to add the action on click the list will be filter of 
> objects
>
> here the on click of view client task i want to filter task which author 
> type is client
> Here its my try.
>
> *inherit html*
> {% extends 'admin/change_list.html' %}
>
> {% block object-tools %}
> 
> 
> {% csrf_token %}
> View Client Task
> 
>
> 
> 
>
>
>
> *admin.py*
>
>
> *task admin*
> from django.conf.urls import patterns, url
> from django.core.urlresolvers import reverse
> class TaskAdmin(SimpleHistoryAdmin, ExportActionModelAdmin):
> change_list_template = "admin/client_task_change_list.html"
> fieldsets = (
> (
> None,
> {'fields': ('title', 'amount','word','status', 'manager', 'executive', 
> 'assignee','owner','timezone','moved_to_freelancer_portal', 
> 'can_send_without_payment', 
> 'start_date','deadline_soft','deadline_hard','client','team_lead','quality_manager','referencing_style',
>  
> 'tags')}
> ),
> (
> _('Content'),
> {'fields': ('description','author')}
> ),
> (
> _('Tracking'),
> {'fields': ('accepted_by_manager', 'accepted_by_manager_at', 
> 'completed_by_employee', 'completed_by_employee_at',\
>
> 'verified_by_manager','verified_by_manager_at','verified_by_quality','verified_by_quality_at',\
> 'sent_to_client','sent_to_client_at','completed_on')}
> ),
> )
>
> inlines = (PaymentInline,RatingInline,) 
> list_display = ('title', 'status', 'client', 'manager', 'assignee', 
> 'executive', 'team_lead', 
> 'quality_manager','get_payment_status','author','created_at','deadline_soft','deadline_hard','word')
> list_filter = ('status', 'author__type', 
> 'client__clientprofile__email_to_use', OverdueTaskListFilter,('manager', 
> admin.RelatedOnlyFieldListFilter), ('team_lead', 
> admin.RelatedOnlyFieldListFilter), ('quality_manager', 
> admin.RelatedOnlyFieldListFilter),PaymentStatusCategoryListFilter,('deadline_soft',
>  
> DateRangeFilter),('deadline_hard', DateRangeFilter), ('start_date', 
> DateRangeFilter), ('completed_on', DateRangeFilter), AuthorFilter, 
> ('owner', admin.RelatedOnlyFieldListFilter), 'moved_to_freelancer_portal')
> search_fields = ('key', 'title', 'client__username', 'client__email', 
> 'manager__email',)
> date_hierarchy = ('deadline_hard')
> resource_class = TaskResource
>
> # def get_urls(self):
>
> # urls = super(TaskAdmin,self).get_urls()
> # extra_url = patterns('',
> # # url(r'^Client/$',self.get_client_task, 
> name='get_client_task'),#self.admin_site.admin_view(self.do_evil_view))
> # url(r'^client/$',self.admin_site.admin_view(self.get_client_task)),
> # )
> # return urls + extra_url
> # def get_client_task(self, request):
> # # if 'get_client' in request.POST:
> # Task.objects.filter(author__type = UserAccount.LEVEL0)
> # # if self.model.objects.filter(author__type = 
> UserAccount.LEVEL0).exists():
> # self.message_user(request, "Here Its all Clients Tasks")
> # # else:
> # # self.message_user(request, "NO Clients Tasks")
>
> # return reverse('../')
>
> formats = (
> base_formats.CSV,
> base_formats.XLS,
> )
> raw_id_fields = ('author','assignee', 
> 'team_lead','executive','quality_manager', 'manager', 'client', 'owner', 
> 'executive', 'specification')
> history_list_display = ["history_change_reason", "word", 
> "deadline_hard","moved_to_freelancer_portal", "status"]
> #filter_horizontal = ('equipment',)
>
> # def render_change_form(self, request, context, *args, **kwargs):
> # """We need to update the context to show the button."""
> # context.update({'show_client_task': True})
> # return super().render_change_form(request, context, *args, **kwargs)
>
>
> def get_payment_status(self, obj):
> return obj.payment.get_status()
> get_payment_status.short_description = 'Payment'
> def get_queryset(self, request):
> queryset = super(TaskAdmin, self).get_queryset(
> request).annotate(feedback_count=Count('feedback'))
> # if 'get_client' in request.POST:
> # queryset.filter(author__type = UserAccount.LEVEL0)
> # return queryset
> # return queryset
> {{ block.super }}
> {% endblock %}
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a4abd021-7623-4c41-aaa4-ecd35b519b67n%40googlegroups.com.


Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-19 Thread Williams Andy Inc
Anyone interested in talking about django sharing their knowledge or path
or want to learn more?

meeting Now

https://meet.google.com/wcv-ojtf-vhi

On Sat, Jun 19, 2021 at 10:31 AM DJANGO DEVELOPER 
wrote:

> please can someone help me?
>
> On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER 
> wrote:
>
>> for convenience, please follow addorder1 to addorder5 respectively.
>>
>> On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:
>>
>>> Hi guys I need urgent help. your help is appreciated.
>>> When I try to add a single order from user side then it works fine but
>>> when I try to add multiple orders at the same time then neither it updates
>>> a products price nor print all the orders on the invoice. can any one help
>>> me? screenshots attached below.
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a5126278-cdf7-455c-8718-e9f0692f5ef3n%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKPY9pnHpB7CDXe078G2QPZZMsfJ69egDRRxAX4ijvjvNCRQyQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCthNJW%3DtmAs04%3DBn7OfuyWk6CmYpBTx1du0MV4dsNLvthgBQ%40mail.gmail.com.


Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-19 Thread DJANGO DEVELOPER
please can someone help me?

On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER 
wrote:

> for convenience, please follow addorder1 to addorder5 respectively.
>
> On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:
>
>> Hi guys I need urgent help. your help is appreciated.
>> When I try to add a single order from user side then it works fine but
>> when I try to add multiple orders at the same time then neither it updates
>> a products price nor print all the orders on the invoice. can any one help
>> me? screenshots attached below.
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a5126278-cdf7-455c-8718-e9f0692f5ef3n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKPY9pnHpB7CDXe078G2QPZZMsfJ69egDRRxAX4ijvjvNCRQyQ%40mail.gmail.com.


Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-18 Thread DJANGO DEVELOPER
for convenience, please follow addorder1 to addorder5 respectively.

On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:

> Hi guys I need urgent help. your help is appreciated.
> When I try to add a single order from user side then it works fine but 
> when I try to add multiple orders at the same time then neither it updates 
> a products price nor print all the orders on the invoice. can any one help 
> me? screenshots attached below.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a5126278-cdf7-455c-8718-e9f0692f5ef3n%40googlegroups.com.


Re: Please help

2021-05-26 Thread OSA-33 SyCS Atik Rangnekar
Are you expecting javascript in python

On Thu, 27 May, 2021, 2:14 am sourav panja,  wrote:

> Field 'id' expected a number but got 
>
> How to solve this problem
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c53edff7-f7f4-4566-97ff-3b9cadf8ee22n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOD_T792-jn1e57TC45NWQOK5wremb5HJs0Otm5WYAR1ofxzg%40mail.gmail.com.


Re: Please help

2021-05-26 Thread Kasper Laudrup
On 26/05/2021 19.48, sourav panja wrote:
> Field 'id' expected a number but got  
> 
> How to solve this problem
>

This will be a good start:

https://zellwk.com/blog/asking-questions/

It will help you solve this and many other similar problems.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e35aa6d4-3978-9dd3-be9e-10a6abdea573%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Did you include documentation.urls in your project urls instead of 
foodcode.urls?
On 2 May 2021, 13:40 +0300, FIRDOUS BHAT , wrote:
> replacing the documentation app with foodcode should resolve the issue
>
> On Sun, May 2, 2021 at 3:13 PM ramadhan ngallen  wrote:
> > Remove the app called documentation and replace it with foodcode. From 
> > directory you don't have an app called documentation
> > On 2 May 2021, 12:41 +0300, Bheemanagowda S Gowdra , 
> > wrote:
> > > this screenshot of settings.py INSTALLED_APPS list
> > > 
> > >
> > > On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen  
> > > wrote:
> > > > Show settings.py INSTALLED_APPS list. It seems you added an app named 
> > > > "documentation" .
> > > > On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra 
> > > > , wrote:
> > > > > sorry i am new to django and learning from youtube,
> > > > >
> > > > > i don't know what is happening while running "python manage.py 
> > > > > runserver"
> > > > >
> > > > > On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  
> > > > > wrote:
> > > > > > Have a look here:
> > > > > >
> > > > > > https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bdKind
> > > > > >  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 view this discussion on the web visit 
> > > > > > https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk.
> > > > >  --
> > > > > 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 view this discussion on the web visit 
> > > > > https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com.
> > > >  --
> > > > 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 view this discussion on the web visit 
> > > > https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark.
> > >  --
> > > 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 view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/django-users/CAC7OE0v1ugGHXKU7moBYJvf5czFx2D%3D5u8iWdY7Q18c2g0w0xw%40mail.gmail.com.
> >  --
> > 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 view this discussion on the web visit 
> > https://groups.google.com/d/msgid/django-users/42a7e168-bbb0-40c3-9765-cc54cf2136ee%40Spark.
>  --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAFB6YJoboNGHMheaPLLJZ4vgR6RQj_WY1Qste6Rw0xFCWKqB8w%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b76b8520-c463-46eb-8a05-5051786b1992%40Spark.


Re: please help me to solve this error

2021-05-02 Thread FIRDOUS BHAT
replacing the documentation app with foodcode should resolve the issue

On Sun, May 2, 2021 at 3:13 PM ramadhan ngallen  wrote:

> Remove the app called documentation and replace it with foodcode. From
> directory you don't have an app called documentation
> On 2 May 2021, 12:41 +0300, Bheemanagowda S Gowdra ,
> wrote:
>
> this screenshot of settings.py INSTALLED_APPS list
> 
>
> On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen  > wrote:
>
> Show settings.py INSTALLED_APPS list. It seems you added an app named
> "documentation" .
> On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra  >, wrote:
>
> sorry i am new to django and learning from youtube,
>
> i don't know what is happening while running "python manage.py runserver"
>
> On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  > wrote:
>
> Have a look here:
>
>
> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bdKind
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com
> 
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark
> 
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC7OE0v1ugGHXKU7moBYJvf5czFx2D%3D5u8iWdY7Q18c2g0w0xw%40mail.gmail.com
> 
> .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/42a7e168-bbb0-40c3-9765-cc54cf2136ee%40Spark
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFB6YJoboNGHMheaPLLJZ4vgR6RQj_WY1Qste6Rw0xFCWKqB8w%40mail.gmail.com.


Re: please help me to solve this error

2021-05-02 Thread Franck Tchouanga
CAN YOU SHOW CASE THE SECTION WHERE YOU IMPORTED YOUR LIBRARIES

On Sun, May 2, 2021 at 10:57 AM ramadhan ngallen  wrote:

> Save your project it's not using autosave. Add trailing comma at the end
> DIR list of template directories then run migrations and observe the error
> on Terminal
> On 2 May 2021, 12:52 +0300, Bheemanagowda S Gowdra ,
> wrote:
>
> 
>
> On Sun, May 2, 2021 at 3:19 PM ramadhan ngallen  > wrote:
>
> Expand your template directory so that we can see if documentation.html is
> existing
> On 2 May 2021, 12:47 +0300, Bheemanagowda S Gowdra  >, wrote:
>
> yes i got my mistake(instead of writing app name wrote html file name)
>
> but after this also getting same error
>
> On Sun, May 2, 2021 at 3:10 PM Bheemanagowda S Gowdra <
> bheemu11...@gmail.com > wrote:
>
> this screenshot of settings.py INSTALLED_APPS list
> 
>
> On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen  > wrote:
>
> Show settings.py INSTALLED_APPS list. It seems you added an app named
> "documentation" .
> On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra  >, wrote:
>
> sorry i am new to django and learning from youtube,
>
> i don't know what is happening while running "python manage.py runserver"
>
> On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  > wrote:
>
> Have a look here:
>
>
> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bdKind
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com
> 
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark
> 
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC7OE0sSHyuZwKuB24sv4iXUnQZZPfrSBZbvbnihscRtA_gAiQ%40mail.gmail.com
> 
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ea45bb55-4e3d-417e-9791-1b470a889348%40Spark
> 
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC7OE0tFCqxdcKYvVFnkDw8LPeZ17FsU6rUKZV2t_NK%2B%2BhRH8w%40mail.gmail.com
> 

Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Save your project it's not using autosave. Add trailing comma at the end DIR 
list of template directories then run migrations and observe the error on 
Terminal
On 2 May 2021, 12:52 +0300, Bheemanagowda S Gowdra , 
wrote:
> 
>
> On Sun, May 2, 2021 at 3:19 PM ramadhan ngallen  wrote:
> > Expand your template directory so that we can see if documentation.html is 
> > existing
> > On 2 May 2021, 12:47 +0300, Bheemanagowda S Gowdra , 
> > wrote:
> > > yes i got my mistake(instead of writing app name wrote html file name)
> > >
> > > but after this also getting same error
> > >
> > > On Sun, May 2, 2021 at 3:10 PM Bheemanagowda S Gowdra 
> > >  wrote:
> > > > this screenshot of settings.py INSTALLED_APPS list
> > > > 
> > > >
> > > > On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen  
> > > > wrote:
> > > > > Show settings.py INSTALLED_APPS list. It seems you added an app named 
> > > > > "documentation" .
> > > > > On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra 
> > > > > , wrote:
> > > > > > sorry i am new to django and learning from youtube,
> > > > > >
> > > > > > i don't know what is happening while running "python manage.py 
> > > > > > runserver"
> > > > > >
> > > > > > On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup 
> > > > > >  wrote:
> > > > > > > Have a look here:
> > > > > > >
> > > > > > > https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bdKind
> > > > > > >  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 view this discussion on the web visit 
> > > > > > > https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk.
> > > > > >  --
> > > > > > 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 view this discussion on the web visit 
> > > > > > https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com.
> > > > >  --
> > > > > 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 view this discussion on the web visit 
> > > > > https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark.
> > >  --
> > > 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 view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/django-users/CAC7OE0sSHyuZwKuB24sv4iXUnQZZPfrSBZbvbnihscRtA_gAiQ%40mail.gmail.com.
> >  --
> > 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 view this discussion on the web visit 
> > https://groups.google.com/d/msgid/django-users/ea45bb55-4e3d-417e-9791-1b470a889348%40Spark.
>  --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAC7OE0tFCqxdcKYvVFnkDw8LPeZ17FsU6rUKZV2t_NK%2B%2BhRH8w%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0f03a6e7-4f8f-48c8-b0cc-06dfb6120861%40Spark.


Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Expand your template directory so that we can see if documentation.html is 
existing
On 2 May 2021, 12:47 +0300, Bheemanagowda S Gowdra , 
wrote:
> yes i got my mistake(instead of writing app name wrote html file name)
>
> but after this also getting same error
>
> On Sun, May 2, 2021 at 3:10 PM Bheemanagowda S Gowdra  
> wrote:
> > this screenshot of settings.py INSTALLED_APPS list
> > 
> >
> > On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen  wrote:
> > > Show settings.py INSTALLED_APPS list. It seems you added an app named 
> > > "documentation" .
> > > On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra 
> > > , wrote:
> > > > sorry i am new to django and learning from youtube,
> > > >
> > > > i don't know what is happening while running "python manage.py 
> > > > runserver"
> > > >
> > > > On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  
> > > > wrote:
> > > > > Have a look here:
> > > > >
> > > > > https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bdKind
> > > > >  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 view this discussion on the web visit 
> > > > > https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk.
> > > >  --
> > > > 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 view this discussion on the web visit 
> > > > https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com.
> > >  --
> > > 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 view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark.
>  --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAC7OE0sSHyuZwKuB24sv4iXUnQZZPfrSBZbvbnihscRtA_gAiQ%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ea45bb55-4e3d-417e-9791-1b470a889348%40Spark.


Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Don't forget to add comma , at the end of each installed apps list.
On 2 May 2021, 12:41 +0300, Bheemanagowda S Gowdra , 
wrote:
> this screenshot of settings.py INSTALLED_APPS list
> 
>
> On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen  wrote:
> > Show settings.py INSTALLED_APPS list. It seems you added an app named 
> > "documentation" .
> > On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra , 
> > wrote:
> > > sorry i am new to django and learning from youtube,
> > >
> > > i don't know what is happening while running "python manage.py runserver"
> > >
> > > On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  
> > > wrote:
> > > > Have a look here:
> > > >
> > > > https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bdKind
> > > >  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 view this discussion on the web visit 
> > > > https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk.
> > >  --
> > > 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 view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com.
> >  --
> > 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 view this discussion on the web visit 
> > https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark.
>  --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAC7OE0v1ugGHXKU7moBYJvf5czFx2D%3D5u8iWdY7Q18c2g0w0xw%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4e0e207d-ac68-4c22-9c71-9baa0a1ec9ee%40Spark.


Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Remove the app called documentation and replace it with foodcode. From 
directory you don't have an app called documentation
On 2 May 2021, 12:41 +0300, Bheemanagowda S Gowdra , 
wrote:
> this screenshot of settings.py INSTALLED_APPS list
> 
>
> On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen  wrote:
> > Show settings.py INSTALLED_APPS list. It seems you added an app named 
> > "documentation" .
> > On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra , 
> > wrote:
> > > sorry i am new to django and learning from youtube,
> > >
> > > i don't know what is happening while running "python manage.py runserver"
> > >
> > > On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  
> > > wrote:
> > > > Have a look here:
> > > >
> > > > https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bdKind
> > > >  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 view this discussion on the web visit 
> > > > https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk.
> > >  --
> > > 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 view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com.
> >  --
> > 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 view this discussion on the web visit 
> > https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark.
>  --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAC7OE0v1ugGHXKU7moBYJvf5czFx2D%3D5u8iWdY7Q18c2g0w0xw%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/42a7e168-bbb0-40c3-9765-cc54cf2136ee%40Spark.


Re: please help me to solve this error

2021-05-02 Thread FIRDOUS BHAT
Seems like you've added documentation as a app name to your settings.py but
there isn't any app created with the name documentation

On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen  wrote:

> Show settings.py INSTALLED_APPS list. It seems you added an app named
> "documentation" .
> On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra ,
> wrote:
>
> sorry i am new to django and learning from youtube,
>
> i don't know what is happening while running "python manage.py runserver"
>
> On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  > wrote:
>
> Have a look here:
>
>
> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk
> .
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com
> 
> .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFB6YJrO3b2bcZncqHZsp3Lgtk9Y6bfAh7GcjLq-TiEB2Jrukg%40mail.gmail.com.


Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Show settings.py INSTALLED_APPS list. It seems you added an app named 
"documentation" .
On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra , 
wrote:
> sorry i am new to django and learning from youtube,
>
> i don't know what is happening while running "python manage.py runserver"
>
> On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  wrote:
> > Have a look here:
> >
> > https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
> > 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 view this discussion on the web visit 
> > https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk.
>  --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a18e320a-c3cb-4c77-b26e-727c2396acf5%40Spark.


RE: please help me to solve this error

2021-05-02 Thread yeddu.j.prasad
Are you in India? You can call me 99720 36501. Will try help you via a Zoom 
session.

 

Have seen a couple of emails from you and you seem to be struggling.

 

 

 

From: django-users@googlegroups.com  On Behalf 
Of Bheemanagowda S Gowdra
Sent: 02 May 2021 14:55
To: django-users@googlegroups.com
Subject: Re: please help me to solve this error

 

sorry i am new to django and learning from youtube,

 

i don't know what is happening while running "python manage.py runserver"

 

On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup mailto:laud...@stacktrace.dk> > wrote:

Have a look here:

https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd

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 
<mailto:django-users%2bunsubscr...@googlegroups.com> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk.

-- 
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 
<mailto:django-users+unsubscr...@googlegroups.com> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com
 
<https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com?utm_medium=email_source=footer>
 .

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/004101d73f35%2493167ca0%24b94375e0%24%40gmail.com.


Re: please help me to solve this error

2021-05-02 Thread Bheemanagowda S Gowdra
sorry i am new to django and learning from youtube,

i don't know what is happening while running "python manage.py runserver"

On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup  wrote:

> Have a look here:
>
>
> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAC7OE0sZFVsOyc9CSQ-B996HV23yu9nUhcZMJtiFj3OPPR-KnQ%40mail.gmail.com.


Re: please help me to solve this error

2021-05-02 Thread Kasper Laudrup
Have a look here:

https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/933a0ad2-e5db-7f02-91db-e4ad36b1791b%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-23 Thread Chinsinsi Makande
try to copy the django.PYPI  from the official website, then in your
command prompt type;
1.python -m
2 paste the pip syntax
It should look like this;
python -m pip install django

Else install python 3.8 because sometimes 3.9 gives an error when
configuring interpreter in pycharm




On Thu, Mar 18, 2021, 20:10 Simon Lankwagh 
wrote:

> I have installed python 3.9 and selected 'add to path' during
> installation, i am now trying to install django 3.1.7 but it generates a
> lot of errors i can not understand, please what is the right way to setup
> django development on windows 10?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2b2ce7b0-3158-4ad8-8464-6b6b8e91e0ebn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO79N_sC9%2B6Ud6gXcVe5XjbWVtsy2UuzrbPS1XzcpzLn-wu5hQ%40mail.gmail.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-21 Thread Felix Orinda
Try python3. 9 -m pip install django==3.1.7

On Fri, Mar 19, 2021, 16:45 Anornymous u  wrote:

> Yoh, join WhatsApp group and share error
> https://chat.whatsapp.com/Fb4d6Ivkio7H3EXKxNFI5q
>
> On Thu, Mar 18, 2021, 21:47 Kasper Laudrup  wrote:
>
>> On 18/03/2021 19.04, Simon Lankwagh wrote:
>> > I have installed python 3.9 and selected 'add to path' during
>> > installation, i am now trying to install django 3.1.7 but it generates a
>> > lot of errors i can not understand, please what is the right way to
>> > setup django development on windows 10?
>> >
>>
>> Just do it in a way where you don't get a lot of errors that you don't
>> understand, but only errors you do understand.
>>
>> That's what I always do and I never get errors I don't understand. That
>> means I don't have to ask anyone what any of these specific errors mean,
>> because I already know that. I can highly recommend you do the same.
>>
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/8493266c-1596-7787-5741-f7e8f5085c2a%40stacktrace.dk
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMXTB%3Ddjg3zLu%2BXEVtEzFokejoe3Jv-yZy%2Bv%3DKZ9FApewKEnZg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKh5HMuEorBqeOkap8zWycCW5J4rjSBOSSD_7%3DXizRMmctq8Sg%40mail.gmail.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread Anornymous u
Yoh, join WhatsApp group and share error
https://chat.whatsapp.com/Fb4d6Ivkio7H3EXKxNFI5q

On Thu, Mar 18, 2021, 21:47 Kasper Laudrup  wrote:

> On 18/03/2021 19.04, Simon Lankwagh wrote:
> > I have installed python 3.9 and selected 'add to path' during
> > installation, i am now trying to install django 3.1.7 but it generates a
> > lot of errors i can not understand, please what is the right way to
> > setup django development on windows 10?
> >
>
> Just do it in a way where you don't get a lot of errors that you don't
> understand, but only errors you do understand.
>
> That's what I always do and I never get errors I don't understand. That
> means I don't have to ask anyone what any of these specific errors mean,
> because I already know that. I can highly recommend you do the same.
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8493266c-1596-7787-5741-f7e8f5085c2a%40stacktrace.dk
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMXTB%3Ddjg3zLu%2BXEVtEzFokejoe3Jv-yZy%2Bv%3DKZ9FApewKEnZg%40mail.gmail.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread choyon saha
Please chack does you install django if not
Install pip install django

On Fri, Mar 19, 2021, 4:44 PM Simon Lankwagh 
wrote:

>
> thank you all, i created a virtual environment and installed it.
>
> On Thursday, March 18, 2021 at 9:20:56 PM UTC+1 ule...@gmail.com wrote:
>
>> After installing python, you have to install PIP.
>> To install PIP type in the following:
>> python get-pip.py
>>
>> To install django tye in the following :
>> pip install django
>>
>>
>> Op donderdag 18 maart 2021 om 19:10:45 UTC+1 schreef
>> simmonshas...@gmail.com:
>>
>>> I have installed python 3.9 and selected 'add to path' during
>>> installation, i am now trying to install django 3.1.7 but it generates a
>>> lot of errors i can not understand, please what is the right way to setup
>>> django development on windows 10?
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/989c744a-4525-4fdf-93c9-935c004f2bd3n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJSRoxwoj%2BDV3OExojxoyJFNd9mK0p_Hvq36%3D1rePtZLPwjjjw%40mail.gmail.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread Joao Frankmann
How are you trying to install Django? Globaly? or on a Virtual Enviroment?
Try to install on a Venv.

Did you install python 3.9 in a new machine or did you have any previous 
versions installed on it?
Try to remove any previous python version installed.

Can you please post the errors here, so it could be easier to understand.

On Thursday, 18 March 2021 at 20:20:56 UTC ule...@gmail.com wrote:

> After installing python, you have to install PIP.
> To install PIP type in the following:
> python get-pip.py
>
> To install django tye in the following :
> pip install django
>
>
> Op donderdag 18 maart 2021 om 19:10:45 UTC+1 schreef 
> simmonshas...@gmail.com:
>
>> I have installed python 3.9 and selected 'add to path' during 
>> installation, i am now trying to install django 3.1.7 but it generates a 
>> lot of errors i can not understand, please what is the right way to setup 
>> django development on windows 10?
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dd93bf97-156e-414e-a0f1-c57e656690a4n%40googlegroups.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread Rizky Muhammad Faris Prakoso
Install pipenv
then type this in powershell :
pipenv install  --python 3.9
pipenv install django

On Fri, Mar 19, 2021 at 1:10 AM Simon Lankwagh <
simmonshasbounced...@gmail.com> wrote:

> I have installed python 3.9 and selected 'add to path' during
> installation, i am now trying to install django 3.1.7 but it generates a
> lot of errors i can not understand, please what is the right way to setup
> django development on windows 10?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2b2ce7b0-3158-4ad8-8464-6b6b8e91e0ebn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMcjA_Me6TcgcMwahzeKAoZ5LBuEnrSHPa22qCVsx5Gyq9R-UA%40mail.gmail.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-19 Thread Simon Lankwagh

thank you all, i created a virtual environment and installed it.

On Thursday, March 18, 2021 at 9:20:56 PM UTC+1 ule...@gmail.com wrote:

> After installing python, you have to install PIP.
> To install PIP type in the following:
> python get-pip.py
>
> To install django tye in the following :
> pip install django
>
>
> Op donderdag 18 maart 2021 om 19:10:45 UTC+1 schreef 
> simmonshas...@gmail.com:
>
>> I have installed python 3.9 and selected 'add to path' during 
>> installation, i am now trying to install django 3.1.7 but it generates a 
>> lot of errors i can not understand, please what is the right way to setup 
>> django development on windows 10?
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/989c744a-4525-4fdf-93c9-935c004f2bd3n%40googlegroups.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-18 Thread ule...@gmail.com
After installing python, you have to install PIP.
To install PIP type in the following:
python get-pip.py

To install django tye in the following :
pip install django


Op donderdag 18 maart 2021 om 19:10:45 UTC+1 schreef 
simmonshas...@gmail.com:

> I have installed python 3.9 and selected 'add to path' during 
> installation, i am now trying to install django 3.1.7 but it generates a 
> lot of errors i can not understand, please what is the right way to setup 
> django development on windows 10?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/85e7167c-54cf-478d-8c5a-9522aad4c3d1n%40googlegroups.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-18 Thread Walter Randazzo
Try installing miniconda o anaconda first.

El jue., 18 mar. 2021 3:10 p. m., Simon Lankwagh <
simmonshasbounced...@gmail.com> escribió:

> I have installed python 3.9 and selected 'add to path' during
> installation, i am now trying to install django 3.1.7 but it generates a
> lot of errors i can not understand, please what is the right way to setup
> django development on windows 10?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2b2ce7b0-3158-4ad8-8464-6b6b8e91e0ebn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL7Dry5qn%3Db%2B4qup364KEJmDF-wjHQU_Nn8Fn_yTb5sd_TTcRg%40mail.gmail.com.


Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-18 Thread Kasper Laudrup
On 18/03/2021 19.04, Simon Lankwagh wrote:
> I have installed python 3.9 and selected 'add to path' during
> installation, i am now trying to install django 3.1.7 but it generates a
> lot of errors i can not understand, please what is the right way to
> setup django development on windows 10?
>

Just do it in a way where you don't get a lot of errors that you don't
understand, but only errors you do understand.

That's what I always do and I never get errors I don't understand. That
means I don't have to ask anyone what any of these specific errors mean,
because I already know that. I can highly recommend you do the same.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8493266c-1596-7787-5741-f7e8f5085c2a%40stacktrace.dk.


Re: Please help. ImportError with django 3.1

2021-01-05 Thread Steven Mapes
Do you have a function in the hello/views.py? That's the first place to 
start as the error suggests you do not.
 

On Monday, 4 January 2021 at 14:39:32 UTC joshr...@gmail.com wrote:

> hello is ur app name if so
> from hello import views 
> try this 
> if not be clear what is hello,index
>
> On Mon, Jan 4, 2021 at 4:24 PM Gasar Iyali  wrote:
>
>> Hi
>> Please I need your help.
>> I have just installed django and when I try to run django I get this 
>> error message and nothing comes up in my browser.
>> This is the error message that I get in the command prompt
>>
>> !*<<<(env) C:\Users\Documents\Learn 
>> Python\django\my_django_work\my_django_work\urls.py", line 19, in 
>> from hello.views import index
>> ImportError: cannot import name 'index' from 'hello.views'>>>!!
>>
>> Thank you
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/cec9f80a-7d69-4702-8b4c-37817fc6caean%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/60b7ffc6-88d0-4057-b61c-6885ebdefb23n%40googlegroups.com.


Re: Please help. ImportError with django 3.1

2021-01-04 Thread Mr. X Offencer
why are you using
*from hello.views import index*

instead of
*from . import views*

On Mon, Jan 4, 2021 at 6:54 PM Gasar Iyali  wrote:

> Hi
> Please I need your help.
> I have just installed django and when I try to run django I get this error
> message and nothing comes up in my browser.
> This is the error message that I get in the command prompt
>
> !*<<<(env) C:\Users\Documents\Learn
> Python\django\my_django_work\my_django_work\urls.py", line 19, in 
> from hello.views import index
> ImportError: cannot import name 'index' from 'hello.views'>>>!!
>
> Thank you
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cec9f80a-7d69-4702-8b4c-37817fc6caean%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABz7kDRBfCJ05Xic3Qg01EUbxhpWmMmYOtpB0ZvOyGTkG8gH4Q%40mail.gmail.com.


Re: Please help. ImportError with django 3.1

2021-01-04 Thread Josh Raj
hello is ur app name if so
from hello import views
try this
if not be clear what is hello,index

On Mon, Jan 4, 2021 at 4:24 PM Gasar Iyali  wrote:

> Hi
> Please I need your help.
> I have just installed django and when I try to run django I get this error
> message and nothing comes up in my browser.
> This is the error message that I get in the command prompt
>
> !*<<<(env) C:\Users\Documents\Learn
> Python\django\my_django_work\my_django_work\urls.py", line 19, in 
> from hello.views import index
> ImportError: cannot import name 'index' from 'hello.views'>>>!!
>
> Thank you
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cec9f80a-7d69-4702-8b4c-37817fc6caean%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B3XbN7-MLGSiAey1%3DJo_qRRX3B-3SGsjbnkixMobTk%2BhSf-mQ%40mail.gmail.com.


Re: Please help me out!

2020-06-19 Thread Kunal Solanke
Django channels

On Fri, Jun 19, 2020, 12:01 meera gangani  wrote:

> Hello ,
>
> I want to implement a Notification module in my Project
> could you please help me out!
>
>
> Thank you
> -Meera Gangani
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOecAnztK3rb0D%2BHk-qkz8_%3DMya1xReoYBrkjUQZWNxaU1dCfw%40mail.gmail.com.


RE: Please help me out!

2020-06-19 Thread Vishesh Mangla
See Django messages Sent from Mail for Windows 10 From: meera ganganiSent: 19 June 2020 12:01To: django-users@googlegroups.comSubject: Please help me out! Hello ,              I want to implement a Notification module in my Project could you please help me out!  Thank you-Meera Gangani-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%40mail.gmail.com. 



-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0DD42743-FD68-417A-9AB2-C78FD56B2FDB%40hxcore.ol.


Re: Please help me out!

2020-06-19 Thread Puneet Makhija
Meera, if you stuck anywhere
Then post your issue
Or contact me

On Fri, Jun 19, 2020, 4:00 PM meera gangani 
wrote:

> Yeah i already started my Project
> So I have an HR Project
> In this Project when admin enters the event details then the notification
> will be sent to the user
>
>
>
> On Fri, Jun 19, 2020 at 3:11 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi, You can use this.
>>
>> https://pypi.org/project/django-notifications-hq/
>>
>> https://pypi.org/project/django-notification/
>>
>> On Fri, Jun 19, 2020 at 1:38 PM Doddahulugappa.B <
>> doddahuluga...@gmail.com> wrote:
>>
>>> Please elaborate more on your requirement
>>>
>>> On Fri, Jun 19, 2020, 10:31 AM meera gangani 
>>> wrote:
>>>
 Hello ,

 I want to implement a Notification module in my Project
 could you please help me out!


 Thank you
 -Meera Gangani

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKfjjGpDpgBQ%3DK4%3DbjACmsSNE%2BddHndVvJMqR3FF43fLvjpejw%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m3172%2BEbLGW0X%2Bdht4sSg7Ba8DejZCQXq%2B6%3D3tbJfiHtD7A%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPJU-nB%3DM4Jfjf6EKN5t9ZEptG_NM6kkY6%3DYgnjazy7DRQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHqz0_ZVX_U8YiNnWBHHf4v-kPnKwUzKnAe3JD65EqNVFZVFpw%40mail.gmail.com.


Re: Please help me out!

2020-06-19 Thread meera gangani
Yeah i already started my Project
So I have an HR Project
In this Project when admin enters the event details then the notification
will be sent to the user



On Fri, Jun 19, 2020 at 3:11 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi, You can use this.
>
> https://pypi.org/project/django-notifications-hq/
>
> https://pypi.org/project/django-notification/
>
> On Fri, Jun 19, 2020 at 1:38 PM Doddahulugappa.B 
> wrote:
>
>> Please elaborate more on your requirement
>>
>> On Fri, Jun 19, 2020, 10:31 AM meera gangani 
>> wrote:
>>
>>> Hello ,
>>>
>>> I want to implement a Notification module in my Project
>>> could you please help me out!
>>>
>>>
>>> Thank you
>>> -Meera Gangani
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAKfjjGpDpgBQ%3DK4%3DbjACmsSNE%2BddHndVvJMqR3FF43fLvjpejw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAK5m3172%2BEbLGW0X%2Bdht4sSg7Ba8DejZCQXq%2B6%3D3tbJfiHtD7A%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANaPPPJU-nB%3DM4Jfjf6EKN5t9ZEptG_NM6kkY6%3DYgnjazy7DRQ%40mail.gmail.com.


Re: Please help me out!

2020-06-19 Thread RANGA BHARATH JINKA
Hi, You can use this.

https://pypi.org/project/django-notifications-hq/

https://pypi.org/project/django-notification/

On Fri, Jun 19, 2020 at 1:38 PM Doddahulugappa.B 
wrote:

> Please elaborate more on your requirement
>
> On Fri, Jun 19, 2020, 10:31 AM meera gangani 
> wrote:
>
>> Hello ,
>>
>> I want to implement a Notification module in my Project
>> could you please help me out!
>>
>>
>> Thank you
>> -Meera Gangani
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKfjjGpDpgBQ%3DK4%3DbjACmsSNE%2BddHndVvJMqR3FF43fLvjpejw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3172%2BEbLGW0X%2Bdht4sSg7Ba8DejZCQXq%2B6%3D3tbJfiHtD7A%40mail.gmail.com.


Re: Please help me out!

2020-06-19 Thread Doddahulugappa.B
Please elaborate more on your requirement

On Fri, Jun 19, 2020, 10:31 AM meera gangani 
wrote:

> Hello ,
>
> I want to implement a Notification module in my Project
> could you please help me out!
>
>
> Thank you
> -Meera Gangani
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKfjjGpDpgBQ%3DK4%3DbjACmsSNE%2BddHndVvJMqR3FF43fLvjpejw%40mail.gmail.com.


Re: Please help me out!

2020-06-19 Thread Puneet Makhija
Ma'am scratch se btana hai kya sab kuch
On Fri, Jun 19, 2020, 1:11 PM Puneet Makhija 
wrote:

> yes,  let me know
> U started your project?
>
>
> On Fri, Jun 19, 2020, 12:01 PM meera gangani 
> wrote:
>
>> Hello ,
>>
>> I want to implement a Notification module in my Project
>> could you please help me out!
>>
>>
>> Thank you
>> -Meera Gangani
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%40mail.gmail.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHqz0_aHyrZuG_F17E-VJaUUAUnKkZmTZuDbXR-pOhLLA5svKg%40mail.gmail.com.


Re: Please help me out!

2020-06-19 Thread Puneet Makhija
yes,  let me know
U started your project?


On Fri, Jun 19, 2020, 12:01 PM meera gangani 
wrote:

> Hello ,
>
> I want to implement a Notification module in my Project
> could you please help me out!
>
>
> Thank you
> -Meera Gangani
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHqz0_YK6GDJo%2B2Uq6eJt%3DL--gYLPf1U3DNdejFx0oQGQTE9yw%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread Lily Perera Capetillo
Hi try this



Urlpatterns=[

path(“/myview”, views.myview, name=”myview”)

]



In this case

Href={% url ‘ App_name/myview’%}

Write your app name in App name

but here Href={% url ‘ App_name/myview’%} put it this way href={% url ‘
App_name:myview’%} with :

El mié., 3 jun. 2020 a las 8:00, meera gangani ()
escribió:

> Yes i Did,
> But Nothing is working,
> with data-toggle href is not working
>
> On Wed, Jun 3, 2020 at 1:00 PM Ajay Rathore  wrote:
>
>> Hello Meera,
>>
>> Did you try using urls as
>>
>> 
>>
>> And I think you should check what messages you received on the shell where 
>> you are running ./manage.py runserver command. This might give more 
>> information on the problem.
>>
>> Regards
>>
>> Ajay
>>
>>
>> On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
>> wrote:
>>
>>> Hello Django-users
>>>
>>> href is not working
>>> here is my views.py file and my urls.py file
>>>
>>> Please Help me out!!
>>>
>>> Thank you in advance
>>> -Meera
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPuXgy6jOnWr5TsmBrLJ9%2BvHFE8Jp76Zgn_UJRW33H4-abnnxQ%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread Hella Nick
请检查您的路由地址,问题就出现在那里。

meera gangani 于2020年6月3日 周三15:19写道:

> Hello Django-users
>
> href is not working
> here is my views.py file and my urls.py file
>
> Please Help me out!!
>
> Thank you in advance
> -Meera
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHfGPEc9AZU0Y-xJLBZ0N2jwoDVioG3SLnnTQOickCE%3DsQOKsQ%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread Integr@te System
Hi freind,

You ever check typo in your code in base.html on for loop at "noti"!?

gl!

On Wed, Jun 3, 2020, 2:20 PM meera gangani  wrote:

> Hello Django-users
>
> href is not working
> here is my views.py file and my urls.py file
>
> Please Help me out!!
>
> Thank you in advance
> -Meera
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP5HUWq7YG2-b7ZanR%3DzYwkbv4wBw6-5qo%3DsMVBb5r3%2BfB%3DRYg%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread 'Ajay Rathore' via Django users
Hello Meera,

Did you try using urls as



And I think you should check what messages you received on the shell
where you are running ./manage.py runserver command. This might give
more information on the problem.

Regards

Ajay


On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
wrote:

> Hello Django-users
>
> href is not working
> here is my views.py file and my urls.py file
>
> Please Help me out!!
>
> Thank you in advance
> -Meera
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACDrS2ohxmNQAXouO1xHK6ktMjnCBqu16ctV99ESBPV3ifgqrg%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread maninder singh Kumar
Is it a navbar or just a plain dropdown ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Jun 3, 2020 at 1:31 PM meera gangani 
wrote:

> Yes i Did,
> But Nothing is working,
> with data-toggle href is not working
>
> On Wed, Jun 3, 2020 at 1:00 PM Ajay Rathore  wrote:
>
>> Hello Meera,
>>
>> Did you try using urls as
>>
>> 
>>
>> And I think you should check what messages you received on the shell where 
>> you are running ./manage.py runserver command. This might give more 
>> information on the problem.
>>
>> Regards
>>
>> Ajay
>>
>>
>> On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
>> wrote:
>>
>>> Hello Django-users
>>>
>>> href is not working
>>> here is my views.py file and my urls.py file
>>>
>>> Please Help me out!!
>>>
>>> Thank you in advance
>>> -Meera
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SyS6mOd4jiRLpEd_m_bcBUmt8GVG4BMidi%2BfY%3DB4sasA%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread meera gangani
Yes i Did,
But Nothing is working,
with data-toggle href is not working

On Wed, Jun 3, 2020 at 1:00 PM Ajay Rathore  wrote:

> Hello Meera,
>
> Did you try using urls as
>
> 
>
> And I think you should check what messages you received on the shell where 
> you are running ./manage.py runserver command. This might give more 
> information on the problem.
>
> Regards
>
> Ajay
>
>
> On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
> wrote:
>
>> Hello Django-users
>>
>> href is not working
>> here is my views.py file and my urls.py file
>>
>> Please Help me out!!
>>
>> Thank you in advance
>> -Meera
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com.


RE: Please help me out!!!!!

2020-06-03 Thread Vishesh Mangla
Href="" url ‘ name’%}Where name is the name parameter of the view in urls.py. Urlpatterns=[path(“/myview”, views.myview, name=”myview”)] In this caseHref="" url ‘ App_name/myview’%}Write your app name in App name Sent from Mail for Windows 10 From: meera ganganiSent: 03 June 2020 12:49To: django-users@googlegroups.comSubject: Please help me out! Hello Django-users href is not workinghere is my views.py file and my urls.py file Please Help me out!! Thank you in advance-Meera-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com. 



-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/B95F9502-B7D0-49C6-8E4E-0C3B2F80EF21%40hxcore.ol.


Re: Please help me out!!

2020-06-01 Thread Kasper Laudrup

Hi Meer,a

On 01/06/2020 19.50, meera gangani wrote:

I want to mark the attendance of all the employee
So , my I’m working on hr management system .
And we have to mark the attendance of all the employee
So, we thought something new we can implement

So we find a way
1. to using MAC address otherwise IP address
2. Employee comes in building he can login into the system and click on 
the check-in button ( using longitude and latitude we find a office 
premises and then we can apply API key )


So which api key I can use?
And how to solve this problem?



You can't. However you try to implement that will be extremely 
unreliable and the client can spoof it anyway if they choose to do that.


Make the client login/employee check-in and out with some normal 
authentication mechanism. It's much easier so need to waste a lot of 
time trying to implement something that will never work anyway.


If you want to make some kind of tracking/surveillance system I'm sure 
you can do that but this is not the way to go.


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/90c33527-fea2-a7f6-d146-20ab332620b2%40stacktrace.dk.


Re: Please help me out?

2020-05-31 Thread Larry Martell
On Sat, May 30, 2020 at 11:30 PM meera gangani  wrote:
>
>  I want to generate trello-board in my django application
> Can anyone tell me the How to do this?
> Trello-board is like( to-do and future enhancements and doing ) where there 
> are 3-4 columns

Take a look at https://github.com/riktar/jkanban

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY4HUJmo4rEMMgRereAg9n6Dz75bsPLb3UFUuPAbsKj9CA%40mail.gmail.com.


Re: Please help me out?

2020-05-31 Thread meera gangani
Like I have to implement trello board function in django
In order that I have to implement archieve functionality and separately
provided boxes for that
1.todo
2.doing
3 future enhancements etc.

On Sunday, May 31, 2020, Sharva kant  wrote:

> Hi Meera,
>
> I believe you would have to use Javascript framework on front end to do
> that. You can use Vuejs, Angular js , React or Ember to do that
>
> Cheers
> Sharva
>
> On Sat, 30 May 2020 at 22:31, meera gangani 
> wrote:
>
>>  I want to generate trello-board in my django application
>> Can anyone tell me the How to do this?
>> Trello-board is like( to-do and future enhancements and doing ) where
>> there are 3-4 columns
>>
>>
>> In-advance thank you
>> -Meera Gangani
>>
>> --
>> 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 view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CANaPPP%2BZO-552o6%3DJDoc-mCBZ1Q%
>> 3DCrv0JE%2B-e%3DzFKRAzfHFMgQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAKRQzujLOV%2BtUKZkh4%2Bi1VJWcE%3DeHLWoaKcbZXbjaMq_
> xoBOEw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANaPPPJOT5SWdWz8QbS2p6_fRTuWttLv6bm6PKfFaArhCPvkAQ%40mail.gmail.com.


Re: Please help me out?

2020-05-30 Thread Sharva kant
Hi Meera,

I believe you would have to use Javascript framework on front end to do
that. You can use Vuejs, Angular js , React or Ember to do that

Cheers
Sharva

On Sat, 30 May 2020 at 22:31, meera gangani 
wrote:

>  I want to generate trello-board in my django application
> Can anyone tell me the How to do this?
> Trello-board is like( to-do and future enhancements and doing ) where
> there are 3-4 columns
>
>
> In-advance thank you
> -Meera Gangani
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPP%2BZO-552o6%3DJDoc-mCBZ1Q%3DCrv0JE%2B-e%3DzFKRAzfHFMgQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKRQzujLOV%2BtUKZkh4%2Bi1VJWcE%3DeHLWoaKcbZXbjaMq_xoBOEw%40mail.gmail.com.


RE: Please help me pip install mysqlclient time screenshot image this error

2020-05-26 Thread Vishesh Mangla
See the last photo, it says Microsoft Visual C++ 14 required. You are surely using win 7. Please try install Visual studio community version  https://visualstudio.microsoft.com/vs/. Sent from Mail for Windows 10 From: R D SainiSent: 26 May 2020 22:40To: Django usersSubject: Please help me pip install mysqlclient time screenshot image this error  -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a204a4ea-a42d-472e-a9e3-08d339bd8486%40googlegroups.com. 



-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5ecd5ecc.1c69fb81.3fb32.0f71%40mx.google.com.


Re: Please help me out?

2020-05-21 Thread o1bigtenor
On Thu, May 21, 2020 at 2:10 PM Kasper Laudrup  wrote:
>
> Hi Meera,
>
> On 21/05/2020 14.50, meera gangani wrote:
> > Actually my Problem is that i want to mark the attendance of all the
> > employee using ip address referenced to the mac address
> > So First I turned ip into whitelisting ip(Trusted IP Addresses )
> > then what was the implementation I do?
> >
>
> It is not very clear what you are trying to achieve. What do mean by
> "mark the attendance of all the employee"?
>
> Anyway, you shouldn't attempt to trust any client based on IP address.
> That is trivial to spoof and there really isn't any way around that
> because of how HTTP works.
>
> I don't understand what you mean by "ip address referenced to the mac
> address" either. Are you talking about the ARP cache on the host running
> Django? Do you want to do ARP lookups on the local network? Why?
>
> Please be more clear on what your problem is and what exactly you want
> to achieve.
>

My guess () is that someone wants to take attendance without
physically being
in a location. The idea is to use the presence of a 'stupid' phone to mark the
physical location of its bearer. (Just imo.)

Regards

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPpdf5_2sG-9FZG0jvaHd9ydp0yakbjuTGQntqpSYmXQ4LpPmQ%40mail.gmail.com.


Re: Please help me out?

2020-05-21 Thread Kasper Laudrup

Hi Meera,

On 21/05/2020 14.50, meera gangani wrote:
Actually my Problem is that i want to mark the attendance of all the 
employee using ip address referenced to the mac address

So First I turned ip into whitelisting ip(Trusted IP Addresses )
then what was the implementation I do?



It is not very clear what you are trying to achieve. What do mean by 
"mark the attendance of all the employee"?


Anyway, you shouldn't attempt to trust any client based on IP address. 
That is trivial to spoof and there really isn't any way around that 
because of how HTTP works.


I don't understand what you mean by "ip address referenced to the mac 
address" either. Are you talking about the ARP cache on the host running 
Django? Do you want to do ARP lookups on the local network? Why?


Please be more clear on what your problem is and what exactly you want 
to achieve.


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8bfea02f-668d-1294-0dd0-fec79358ad01%40stacktrace.dk.


Re: Please help me out?

2020-05-21 Thread meera gangani
I am sorry for my behaviour actually i am not understood the message
properly. So That's why
Actually my Problem is that i want to mark the attendance of all the
employee using ip address referenced to the mac address
So First I turned ip into whitelisting ip(Trusted IP Addresses )
then what was the implementation I do?

Thanking You In Advance

On Thu, May 21, 2020 at 5:41 PM Anuroop Pendela 
wrote:

> By default there would be ip address in the request object. But the ip is
> network ip. In the case where If multiple employees connect to same network
> and mark attendance then you will see duplicate ip address entries for
> different employees. For unique and authenticity of attendance you might
> need to go for location based solution which is easy capturing from mobile
> or browser.
>
> On Thu 21 May, 2020, 10:39 AM meera gangani, 
> wrote:
>
>> I want to mark the attendance of employee using ip address or any other
>> way
>> can you please help me out of the situation?
>>
>> Thanking You,
>> Meera.
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANaPPPJY3JypYQaWbbx%3DNQe6SyUghvXXRRF4SK3iER0N0wa0OQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANJhOQ584EHKjhqpcKiKd1X%3Dgh_Gs9QJy%3DW5F79JsKFiuoh6mw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANaPPPJotofLrWnr98DEbekkTGE_D8UR0pB1o4jMKBZOz%3D8qww%40mail.gmail.com.


Re: Please help me out?

2020-05-21 Thread 'Arno Franken' via Django users
Plees Mera, respect the the recommendation of Vishesh as his answer is 
completely straight to me and you should be thankful. The point is, what is 
exactly your question? That's the point I do not understand, your question 
is really vague. To help you out:
- What have you already tried?
- What is your datamodel looking like?
- Etc.

Based on the answers on these questions, we can help you further.

Op donderdag 21 mei 2020 09:14:12 UTC+2 schreef meera gangani:
>
> What is the point of these message!!!
>
>
> On Thu, May 21, 2020 at 10:53 AM Vishesh Mangla  > wrote:
>
>> You need to look at the “header” of the request object for those details.
>>
>>  
>>
>> Sent from Mail  for 
>> Windows 10
>>
>>  
>>
>> *From: *meera gangani 
>> *Sent: *21 May 2020 10:39
>> *To: *django...@googlegroups.com 
>> *Subject: *Please help me out?
>>
>>  
>>
>> I want to mark the attendance of employee using ip address or any other 
>> way
>>
>> can you please help me out of the situation?
>>
>>  
>>
>> Thanking You,
>>
>> Meera.
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CANaPPPJY3JypYQaWbbx%3DNQe6SyUghvXXRRF4SK3iER0N0wa0OQ%40mail.gmail.com
>>  
>> 
>> .
>>
>>  
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/5ec61042.1c69fb81.acd42.0c85%40mx.google.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b8f7be57-fbb8-442a-8f0b-cd7f1abae4fa%40googlegroups.com.


Re: Please help me out?

2020-05-21 Thread Anuroop Pendela
By default there would be ip address in the request object. But the ip is
network ip. In the case where If multiple employees connect to same network
and mark attendance then you will see duplicate ip address entries for
different employees. For unique and authenticity of attendance you might
need to go for location based solution which is easy capturing from mobile
or browser.

On Thu 21 May, 2020, 10:39 AM meera gangani, 
wrote:

> I want to mark the attendance of employee using ip address or any other way
> can you please help me out of the situation?
>
> Thanking You,
> Meera.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPJY3JypYQaWbbx%3DNQe6SyUghvXXRRF4SK3iER0N0wa0OQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANJhOQ584EHKjhqpcKiKd1X%3Dgh_Gs9QJy%3DW5F79JsKFiuoh6mw%40mail.gmail.com.


Re: Please help me out?

2020-05-21 Thread meera gangani
What is the point of these message!!!


On Thu, May 21, 2020 at 10:53 AM Vishesh Mangla 
wrote:

> You need to look at the “header” of the request object for those details.
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *meera gangani 
> *Sent: *21 May 2020 10:39
> *To: *django-users@googlegroups.com
> *Subject: *Please help me out?
>
>
>
> I want to mark the attendance of employee using ip address or any other way
>
> can you please help me out of the situation?
>
>
>
> Thanking You,
>
> Meera.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPJY3JypYQaWbbx%3DNQe6SyUghvXXRRF4SK3iER0N0wa0OQ%40mail.gmail.com
> 
> .
>
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5ec61042.1c69fb81.acd42.0c85%40mx.google.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANaPPPLRgjjQzrS4d7UjM2v2c2dTAtNjTZfRAMK71rw%2B%3Dv9QNw%40mail.gmail.com.


RE: Please help me out?

2020-05-20 Thread Vishesh Mangla
You need to look at the “header” of the request object for those details. Sent from Mail for Windows 10 From: meera ganganiSent: 21 May 2020 10:39To: django-users@googlegroups.comSubject: Please help me out? I want to mark the attendance of employee using ip address or any other waycan you please help me out of the situation? Thanking You,Meera.-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPPJY3JypYQaWbbx%3DNQe6SyUghvXXRRF4SK3iER0N0wa0OQ%40mail.gmail.com. 



-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5ec61042.1c69fb81.acd42.0c85%40mx.google.com.


Re: Please help me while i am connecting mysql database to django lroject iam getting following error

2020-03-22 Thread fahad rasool
Thanks brother it really works!!☺️


On Sun, 22 Mar 2020, 10:54 pm Motaz Hejaze,  wrote:

> There is a leading space in ' localhost'..
> Remove it
>
> On Sun, 22 Mar 2020, 6:59 pm fahad rasool, 
> wrote:
>
>> Please help me while i am connecting mysql database to  django lroject
>> iam getting following error
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1ff10d74-aeba-4bdd-acbe-adabe0bd7590%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-d%3Dwywa%3DUWHvoLG12C3noykqNemV9568aPXn7MJu73O4g%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACqgSmDTuPpkQ7BQSinTUij1OKN%2B4t5MnXBiru%3DjF5jKx%2BBCsg%40mail.gmail.com.


Re: Please help me while i am connecting mysql database to django lroject iam getting following error

2020-03-22 Thread Motaz Hejaze
There is a leading space in ' localhost'..
Remove it

On Sun, 22 Mar 2020, 6:59 pm fahad rasool,  wrote:

> Please help me while i am connecting mysql database to  django lroject iam
> getting following error
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1ff10d74-aeba-4bdd-acbe-adabe0bd7590%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-d%3Dwywa%3DUWHvoLG12C3noykqNemV9568aPXn7MJu73O4g%40mail.gmail.com.


Re: Please help us to connect django with MongoDB

2019-11-01 Thread Kasper Laudrup

Hi Abhishek,

On 01/11/2019 08.55, 'Abhishek Sharma' via Django users wrote:

Please help us to connect django with MongoDB



Here is what I found when doing a simple search:

https://django-mongodb-engine.readthedocs.io/en/latest/
https://developer.ibm.com/tutorials/os-django-mongo/

Have you done any research? Which issues do you have? What do you need 
help with?


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a7e0f3be-b565-a81c-f0a9-d9a9456b389c%40stacktrace.dk.


Re: Please help me in views.py

2019-09-05 Thread Amit Samanta
Hi everybody thank you for helping me throughout...

lastly do anyone know how to group by in django orm


 or if i give a db query can anyone help me in changing it to django orm??
please
Thank you in advance
Amit Samanta

On Wed, 4 Sep, 2019, 7:50 PM Amit Samanta,  wrote:

> Its done now.. thank u everybody
>
> Now i want to do that it will show only the latest book with detail of a
> author
>
>
>
> On Wed, 4 Sep, 2019, 6:07 PM Amit Samanta, 
> wrote:
>
>> i get all thank you for your help..
>> the actuall funda is
>> i have to show author name with related to that i have to show books name
>> of the same author now the detail related to the books
>> this is wht i need
>> :-(
>>
>> On Wed, 4 Sep, 2019, 6:01 PM Devdutt Bhati, 
>> wrote:
>>
>>> if you created table in models.py. you can import table at view file
>>> like : from  appname .models import table/class name .
>>> when you got the table data at views file then use it as
>>> *variable=Tablename.objects.all()* now get all values in variable. it
>>> can render in render function and use values at html page.
>>> use for loop.
>>>
>>> On Wed, Sep 4, 2019 at 12:58 AM Amit Samanta 
>>> wrote:
>>>
 I want try is...
 there will be a dashboard

 which will show

 Author name

 all the books which the author written

 details of the book published date , avout the book in the above format


 On Wed, 4 Sep, 2019, 12:08 PM Anirudh Jain, 
 wrote:

> Could you please elaborate/be more clear about what you are really
> trying to do ?
>
> On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, 
> wrote:
>
>> Hi Amit,
>>
>> You can use
>> =≠=
>> Book.objects.select_related(FK).select_related(FK). values (select
>> column name which you want).all()
>>
>>
>> Thanks
>> Bhoopesh sisoudiya
>>
>> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
>> wrote:
>>
>>> Hi,
>>>
>>> I need help i am not understanding the keywords of joining and fetch
>>> value in veiw.py
>>> i have three tables in model.py
>>>
>>> Table 1(Author) :
>>>
>>> Table 2(books):
>>>
>>> Table 3 (details):
>>> FK of table1
>>> FK of table2
>>>
>>> Fk = foreign key
>>>
>>> I have to just show
>>>
>>> Author (author name) Books (dynamic) Books(author 2nd book)
>>>  ...
>>> details(dynamic)
>>>  details(dtl of author 2nd book) ...
>>>
>>> I have created the template
>>>
>>> now in views.py i an confused
>>>
>>> book=books.object(i do not get what to do)
>>> Author= (same )
>>> details = (same)
>>>
>>> Please can anybody help that will be very greatfull.
>>> Thank you in advance
>>>
>>>
>>>
>>> Thanks and Regards
>>> Amit Samanta
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC3mK7faT1yOHZXdHXc0DyeDYRtTpD_Pke39AJYmXRQW%2BOi09Q%40mail.gmail.com
> 
> .
>
 --
 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.

Re: Please help me in views.py

2019-09-04 Thread Amit Samanta
Its done now.. thank u everybody

Now i want to do that it will show only the latest book with detail of a
author



On Wed, 4 Sep, 2019, 6:07 PM Amit Samanta,  wrote:

> i get all thank you for your help..
> the actuall funda is
> i have to show author name with related to that i have to show books name
> of the same author now the detail related to the books
> this is wht i need
> :-(
>
> On Wed, 4 Sep, 2019, 6:01 PM Devdutt Bhati, 
> wrote:
>
>> if you created table in models.py. you can import table at view file
>> like : from  appname .models import table/class name .
>> when you got the table data at views file then use it as
>> *variable=Tablename.objects.all()* now get all values in variable. it
>> can render in render function and use values at html page.
>> use for loop.
>>
>> On Wed, Sep 4, 2019 at 12:58 AM Amit Samanta 
>> wrote:
>>
>>> I want try is...
>>> there will be a dashboard
>>>
>>> which will show
>>>
>>> Author name
>>>
>>> all the books which the author written
>>>
>>> details of the book published date , avout the book in the above format
>>>
>>>
>>> On Wed, 4 Sep, 2019, 12:08 PM Anirudh Jain, 
>>> wrote:
>>>
 Could you please elaborate/be more clear about what you are really
 trying to do ?

 On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, 
 wrote:

> Hi Amit,
>
> You can use
> =≠=
> Book.objects.select_related(FK).select_related(FK). values (select
> column name which you want).all()
>
>
> Thanks
> Bhoopesh sisoudiya
>
> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
> wrote:
>
>> Hi,
>>
>> I need help i am not understanding the keywords of joining and fetch
>> value in veiw.py
>> i have three tables in model.py
>>
>> Table 1(Author) :
>>
>> Table 2(books):
>>
>> Table 3 (details):
>> FK of table1
>> FK of table2
>>
>> Fk = foreign key
>>
>> I have to just show
>>
>> Author (author name) Books (dynamic) Books(author 2nd book)
>>  ...
>> details(dynamic)
>>  details(dtl of author 2nd book) ...
>>
>> I have created the template
>>
>> now in views.py i an confused
>>
>> book=books.object(i do not get what to do)
>> Author= (same )
>> details = (same)
>>
>> Please can anybody help that will be very greatfull.
>> Thank you in advance
>>
>>
>>
>> Thanks and Regards
>> Amit Samanta
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
> 
> .
>
 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAC3mK7faT1yOHZXdHXc0DyeDYRtTpD_Pke39AJYmXRQW%2BOi09Q%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAP4hbAbWFvE0CRoeX45psThD7yWbKHR16aJXH866-dCFdHSfZw%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> 

Re: Please help me in views.py

2019-09-04 Thread Amit Samanta
i get all thank you for your help..
the actuall funda is
i have to show author name with related to that i have to show books name
of the same author now the detail related to the books
this is wht i need
:-(

On Wed, 4 Sep, 2019, 6:01 PM Devdutt Bhati, 
wrote:

> if you created table in models.py. you can import table at view file like
> : from  appname .models import table/class name .
> when you got the table data at views file then use it as
> *variable=Tablename.objects.all()* now get all values in variable. it can
> render in render function and use values at html page.
> use for loop.
>
> On Wed, Sep 4, 2019 at 12:58 AM Amit Samanta 
> wrote:
>
>> I want try is...
>> there will be a dashboard
>>
>> which will show
>>
>> Author name
>>
>> all the books which the author written
>>
>> details of the book published date , avout the book in the above format
>>
>>
>> On Wed, 4 Sep, 2019, 12:08 PM Anirudh Jain, 
>> wrote:
>>
>>> Could you please elaborate/be more clear about what you are really
>>> trying to do ?
>>>
>>> On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, 
>>> wrote:
>>>
 Hi Amit,

 You can use
 =≠=
 Book.objects.select_related(FK).select_related(FK). values (select
 column name which you want).all()


 Thanks
 Bhoopesh sisoudiya

 On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
 wrote:

> Hi,
>
> I need help i am not understanding the keywords of joining and fetch
> value in veiw.py
> i have three tables in model.py
>
> Table 1(Author) :
>
> Table 2(books):
>
> Table 3 (details):
> FK of table1
> FK of table2
>
> Fk = foreign key
>
> I have to just show
>
> Author (author name) Books (dynamic) Books(author 2nd book)
>...
> details(dynamic)
>  details(dtl of author 2nd book) ...
>
> I have created the template
>
> now in views.py i an confused
>
> book=books.object(i do not get what to do)
> Author= (same )
> details = (same)
>
> Please can anybody help that will be very greatfull.
> Thank you in advance
>
>
>
> Thanks and Regards
> Amit Samanta
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
> 
> .
>
 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAC3mK7faT1yOHZXdHXc0DyeDYRtTpD_Pke39AJYmXRQW%2BOi09Q%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP4hbAbWFvE0CRoeX45psThD7yWbKHR16aJXH866-dCFdHSfZw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP1z-%3DLZqkq38wgz7w%2Bv%2BuzWcWkJsx1xUr-kdkpOGTKgBuwOQA%40mail.gmail.com
> 

Re: Please help me in views.py

2019-09-04 Thread Devdutt Bhati
def getdetails(request11):
 objs = Details.objects.all()
 context = {'objs; : objs}
return render(request, 'full_path_of_template', context}

templates in which folders path should set in setting file. try this all
the best and revert me.
view.py :-
def getdetails(request):
template_name = 'showDetails.html'
objs = Details.objects.all()
context = {'objs; : objs}
return render(request, template_name, context}


On Wed, Sep 4, 2019 at 3:40 AM Anirudh Jain 
wrote:

> Then simply use {{ obj.book_name.name }} in template where again, I am
> assuming 'name' is the column name you have give to book name in Books model
>
> On Wed, Sep 4, 2019 at 3:25 PM Amit Samanta 
> wrote:
>
>> You have gussed correctly..
>> but i have taked book id as fk but i need the book name
>>
>> On Wed, 4 Sep, 2019, 2:41 PM Anirudh Jain, 
>> wrote:
>>
>>> This can be done easily if you make a proper view function and render
>>> data from it in template properly.
>>> A view function can be written like this :-
>>>
>>> Here I am assuming that you want get the details of all the
>>> books/auuthors at one page. If you want details of a particular book, then
>>> the following function will be different.
>>>
>>> from .models import Details, Author, Books
>>> from django.shortcuts import render
>>>
>>> view.py :-
>>> def getdetails(request):
>>> template_name = 'showDetails.html'
>>> objs = Details.objects.all()
>>> context = {'objs; : objs}
>>> return render(request, template_name, context}
>>>
>>>
>>> showDetails.html :-
>>> (use this block in your html code wherever you want to show this data)
>>>
>>> {% if objs %}
>>>
>>> 
>>> 
>>> Author
>>> Book
>>> 
>>>
>>> {% for obj in objs %}
>>> 
>>>   {{ obj.author_name }} 
>>>   {{ obj.book_name }} 
>>> 
>>> {% endfor %}
>>> 
>>>
>>> {% endif %}
>>>
>>> (In above html code, I have assumed that author_name and book_name are
>>> the FK in your Details table. Also, I am not sure
>>>
>>>
>>> On Wed, Sep 4, 2019 at 1:34 PM Lim Kai Wey  wrote:
>>>
 Hey Amit,

 I suggest you to follow this tutorial to build your project,

 https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website

 It teaches you all the basics that you need to know from scratch, which
 in my opinion will answer all the questions you're asking.
 The tutorial is about building a local library webpage which I believe
 is very similar to what you are doing now.

 Hope this helps.

 Regards,
 Kai Wey

 On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta 
 wrote:

> now how can i get the name for author and details??
>
> On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, <
> bhoop23...@gmail.com> wrote:
>
>> Hi Amit,
>>
>> You can use
>> =≠=
>> Book.objects.select_related(FK).select_related(FK). values (select
>> column name which you want).all()
>>
>>
>> Thanks
>> Bhoopesh sisoudiya
>>
>> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
>> wrote:
>>
>>> Hi,
>>>
>>> I need help i am not understanding the keywords of joining and fetch
>>> value in veiw.py
>>> i have three tables in model.py
>>>
>>> Table 1(Author) :
>>>
>>> Table 2(books):
>>>
>>> Table 3 (details):
>>> FK of table1
>>> FK of table2
>>>
>>> Fk = foreign key
>>>
>>> I have to just show
>>>
>>> Author (author name) Books (dynamic) Books(author 2nd book)
>>>  ...
>>> details(dynamic)
>>>  details(dtl of author 2nd book) ...
>>>
>>> I have created the template
>>>
>>> now in views.py i an confused
>>>
>>> book=books.object(i do not get what to do)
>>> Author= (same )
>>> details = (same)
>>>
>>> Please can anybody help that will be very greatfull.
>>> Thank you in advance
>>>
>>>
>>>
>>> Thanks and Regards
>>> Amit Samanta
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> 

Re: Please help me in views.py

2019-09-04 Thread Devdutt Bhati
if you created table in models.py. you can import table at view file
like : from
appname .models import table/class name .
when you got the table data at views file then use it as
*variable=Tablename.objects.all()* now get all values in variable. it can
render in render function and use values at html page.
use for loop.

On Wed, Sep 4, 2019 at 12:58 AM Amit Samanta 
wrote:

> I want try is...
> there will be a dashboard
>
> which will show
>
> Author name
>
> all the books which the author written
>
> details of the book published date , avout the book in the above format
>
>
> On Wed, 4 Sep, 2019, 12:08 PM Anirudh Jain, 
> wrote:
>
>> Could you please elaborate/be more clear about what you are really trying
>> to do ?
>>
>> On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, 
>> wrote:
>>
>>> Hi Amit,
>>>
>>> You can use
>>> =≠=
>>> Book.objects.select_related(FK).select_related(FK). values (select
>>> column name which you want).all()
>>>
>>>
>>> Thanks
>>> Bhoopesh sisoudiya
>>>
>>> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
>>> wrote:
>>>
 Hi,

 I need help i am not understanding the keywords of joining and fetch
 value in veiw.py
 i have three tables in model.py

 Table 1(Author) :

 Table 2(books):

 Table 3 (details):
 FK of table1
 FK of table2

 Fk = foreign key

 I have to just show

 Author (author name) Books (dynamic) Books(author 2nd book)
...
 details(dynamic)
  details(dtl of author 2nd book) ...

 I have created the template

 now in views.py i an confused

 book=books.object(i do not get what to do)
 Author= (same )
 details = (same)

 Please can anybody help that will be very greatfull.
 Thank you in advance



 Thanks and Regards
 Amit Samanta

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAC3mK7faT1yOHZXdHXc0DyeDYRtTpD_Pke39AJYmXRQW%2BOi09Q%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP4hbAbWFvE0CRoeX45psThD7yWbKHR16aJXH866-dCFdHSfZw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1z-%3DLZqkq38wgz7w%2Bv%2BuzWcWkJsx1xUr-kdkpOGTKgBuwOQA%40mail.gmail.com.


Re: Please help me in views.py

2019-09-04 Thread Devdutt Bhati
wiil get resolve the issue revert me.

On Wed, Sep 4, 2019 at 1:07 AM Devdutt Bhati 
wrote:

> if you created table in models.py. you can import table at view file like
> : from  appname .models import table/class name .
> when you got the table data at views file then use it as
> *variable=Tablename.objects.all()* now get all values in variable. it can
> render in render function and use values at html page.
> use for loop.
>
> On Wed, Sep 4, 2019 at 12:58 AM Amit Samanta 
> wrote:
>
>> I want try is...
>> there will be a dashboard
>>
>> which will show
>>
>> Author name
>>
>> all the books which the author written
>>
>> details of the book published date , avout the book in the above format
>>
>>
>> On Wed, 4 Sep, 2019, 12:08 PM Anirudh Jain, 
>> wrote:
>>
>>> Could you please elaborate/be more clear about what you are really
>>> trying to do ?
>>>
>>> On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, 
>>> wrote:
>>>
 Hi Amit,

 You can use
 =≠=
 Book.objects.select_related(FK).select_related(FK). values (select
 column name which you want).all()


 Thanks
 Bhoopesh sisoudiya

 On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
 wrote:

> Hi,
>
> I need help i am not understanding the keywords of joining and fetch
> value in veiw.py
> i have three tables in model.py
>
> Table 1(Author) :
>
> Table 2(books):
>
> Table 3 (details):
> FK of table1
> FK of table2
>
> Fk = foreign key
>
> I have to just show
>
> Author (author name) Books (dynamic) Books(author 2nd book)
>...
> details(dynamic)
>  details(dtl of author 2nd book) ...
>
> I have created the template
>
> now in views.py i an confused
>
> book=books.object(i do not get what to do)
> Author= (same )
> details = (same)
>
> Please can anybody help that will be very greatfull.
> Thank you in advance
>
>
>
> Thanks and Regards
> Amit Samanta
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
> 
> .
>
 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAC3mK7faT1yOHZXdHXc0DyeDYRtTpD_Pke39AJYmXRQW%2BOi09Q%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP4hbAbWFvE0CRoeX45psThD7yWbKHR16aJXH866-dCFdHSfZw%40mail.gmail.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1z-%3DK%2B2htPjgzrmY8Gqr-OZF3bWcRei6V0axqAOpYd-Y2XVA%40mail.gmail.com.


Re: Please help me in views.py

2019-09-04 Thread Amit Samanta
by the above it is not giving any error but it is not showing the
correspondence names and also it is showing all the fields in detail :-((

please help

On Wed, 4 Sep, 2019, 4:10 PM Anirudh Jain, 
wrote:

> Then simply use {{ obj.book_name.name }} in template where again, I am
> assuming 'name' is the column name you have give to book name in Books model
>
> On Wed, Sep 4, 2019 at 3:25 PM Amit Samanta 
> wrote:
>
>> You have gussed correctly..
>> but i have taked book id as fk but i need the book name
>>
>> On Wed, 4 Sep, 2019, 2:41 PM Anirudh Jain, 
>> wrote:
>>
>>> This can be done easily if you make a proper view function and render
>>> data from it in template properly.
>>> A view function can be written like this :-
>>>
>>> Here I am assuming that you want get the details of all the
>>> books/auuthors at one page. If you want details of a particular book, then
>>> the following function will be different.
>>>
>>> from .models import Details, Author, Books
>>> from django.shortcuts import render
>>>
>>> view.py :-
>>> def getdetails(request):
>>> template_name = 'showDetails.html'
>>> objs = Details.objects.all()
>>> context = {'objs; : objs}
>>> return render(request, template_name, context}
>>>
>>>
>>> showDetails.html :-
>>> (use this block in your html code wherever you want to show this data)
>>>
>>> {% if objs %}
>>>
>>> 
>>> 
>>> Author
>>> Book
>>> 
>>>
>>> {% for obj in objs %}
>>> 
>>>   {{ obj.author_name }} 
>>>   {{ obj.book_name }} 
>>> 
>>> {% endfor %}
>>> 
>>>
>>> {% endif %}
>>>
>>> (In above html code, I have assumed that author_name and book_name are
>>> the FK in your Details table. Also, I am not sure
>>>
>>>
>>> On Wed, Sep 4, 2019 at 1:34 PM Lim Kai Wey  wrote:
>>>
 Hey Amit,

 I suggest you to follow this tutorial to build your project,

 https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website

 It teaches you all the basics that you need to know from scratch, which
 in my opinion will answer all the questions you're asking.
 The tutorial is about building a local library webpage which I believe
 is very similar to what you are doing now.

 Hope this helps.

 Regards,
 Kai Wey

 On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta 
 wrote:

> now how can i get the name for author and details??
>
> On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, <
> bhoop23...@gmail.com> wrote:
>
>> Hi Amit,
>>
>> You can use
>> =≠=
>> Book.objects.select_related(FK).select_related(FK). values (select
>> column name which you want).all()
>>
>>
>> Thanks
>> Bhoopesh sisoudiya
>>
>> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
>> wrote:
>>
>>> Hi,
>>>
>>> I need help i am not understanding the keywords of joining and fetch
>>> value in veiw.py
>>> i have three tables in model.py
>>>
>>> Table 1(Author) :
>>>
>>> Table 2(books):
>>>
>>> Table 3 (details):
>>> FK of table1
>>> FK of table2
>>>
>>> Fk = foreign key
>>>
>>> I have to just show
>>>
>>> Author (author name) Books (dynamic) Books(author 2nd book)
>>>  ...
>>> details(dynamic)
>>>  details(dtl of author 2nd book) ...
>>>
>>> I have created the template
>>>
>>> now in views.py i an confused
>>>
>>> book=books.object(i do not get what to do)
>>> Author= (same )
>>> details = (same)
>>>
>>> Please can anybody help that will be very greatfull.
>>> Thank you in advance
>>>
>>>
>>>
>>> Thanks and Regards
>>> Amit Samanta
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
>> 
>> .
>>
> --
> 

Re: Please help me in views.py

2019-09-04 Thread Anirudh Jain
Then simply use {{ obj.book_name.name }} in template where again, I am
assuming 'name' is the column name you have give to book name in Books model

On Wed, Sep 4, 2019 at 3:25 PM Amit Samanta  wrote:

> You have gussed correctly..
> but i have taked book id as fk but i need the book name
>
> On Wed, 4 Sep, 2019, 2:41 PM Anirudh Jain, 
> wrote:
>
>> This can be done easily if you make a proper view function and render
>> data from it in template properly.
>> A view function can be written like this :-
>>
>> Here I am assuming that you want get the details of all the
>> books/auuthors at one page. If you want details of a particular book, then
>> the following function will be different.
>>
>> from .models import Details, Author, Books
>> from django.shortcuts import render
>>
>> view.py :-
>> def getdetails(request):
>> template_name = 'showDetails.html'
>> objs = Details.objects.all()
>> context = {'objs; : objs}
>> return render(request, template_name, context}
>>
>>
>> showDetails.html :-
>> (use this block in your html code wherever you want to show this data)
>>
>> {% if objs %}
>>
>> 
>> 
>> Author
>> Book
>> 
>>
>> {% for obj in objs %}
>> 
>>   {{ obj.author_name }} 
>>   {{ obj.book_name }} 
>> 
>> {% endfor %}
>> 
>>
>> {% endif %}
>>
>> (In above html code, I have assumed that author_name and book_name are
>> the FK in your Details table. Also, I am not sure
>>
>>
>> On Wed, Sep 4, 2019 at 1:34 PM Lim Kai Wey  wrote:
>>
>>> Hey Amit,
>>>
>>> I suggest you to follow this tutorial to build your project,
>>>
>>> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
>>>
>>> It teaches you all the basics that you need to know from scratch, which
>>> in my opinion will answer all the questions you're asking.
>>> The tutorial is about building a local library webpage which I believe
>>> is very similar to what you are doing now.
>>>
>>> Hope this helps.
>>>
>>> Regards,
>>> Kai Wey
>>>
>>> On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta 
>>> wrote:
>>>
 now how can i get the name for author and details??

 On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, 
 wrote:

> Hi Amit,
>
> You can use
> =≠=
> Book.objects.select_related(FK).select_related(FK). values (select
> column name which you want).all()
>
>
> Thanks
> Bhoopesh sisoudiya
>
> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
> wrote:
>
>> Hi,
>>
>> I need help i am not understanding the keywords of joining and fetch
>> value in veiw.py
>> i have three tables in model.py
>>
>> Table 1(Author) :
>>
>> Table 2(books):
>>
>> Table 3 (details):
>> FK of table1
>> FK of table2
>>
>> Fk = foreign key
>>
>> I have to just show
>>
>> Author (author name) Books (dynamic) Books(author 2nd book)
>>  ...
>> details(dynamic)
>>  details(dtl of author 2nd book) ...
>>
>> I have created the template
>>
>> now in views.py i an confused
>>
>> book=books.object(i do not get what to do)
>> Author= (same )
>> details = (same)
>>
>> Please can anybody help that will be very greatfull.
>> Thank you in advance
>>
>>
>>
>> Thanks and Regards
>> Amit Samanta
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
> 
> .
>
 --
 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 view this discussion on the web visit
 

Re: Please help me in views.py

2019-09-04 Thread Amit Samanta
You have gussed correctly..
but i have taked book id as fk but i need the book name

On Wed, 4 Sep, 2019, 2:41 PM Anirudh Jain, 
wrote:

> This can be done easily if you make a proper view function and render data
> from it in template properly.
> A view function can be written like this :-
>
> Here I am assuming that you want get the details of all the books/auuthors
> at one page. If you want details of a particular book, then the following
> function will be different.
>
> from .models import Details, Author, Books
> from django.shortcuts import render
>
> view.py :-
> def getdetails(request):
> template_name = 'showDetails.html'
> objs = Details.objects.all()
> context = {'objs; : objs}
> return render(request, template_name, context}
>
>
> showDetails.html :-
> (use this block in your html code wherever you want to show this data)
>
> {% if objs %}
>
> 
> 
> Author
> Book
> 
>
> {% for obj in objs %}
> 
>   {{ obj.author_name }} 
>   {{ obj.book_name }} 
> 
> {% endfor %}
> 
>
> {% endif %}
>
> (In above html code, I have assumed that author_name and book_name are the
> FK in your Details table. Also, I am not sure
>
>
> On Wed, Sep 4, 2019 at 1:34 PM Lim Kai Wey  wrote:
>
>> Hey Amit,
>>
>> I suggest you to follow this tutorial to build your project,
>>
>> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
>>
>> It teaches you all the basics that you need to know from scratch, which
>> in my opinion will answer all the questions you're asking.
>> The tutorial is about building a local library webpage which I believe is
>> very similar to what you are doing now.
>>
>> Hope this helps.
>>
>> Regards,
>> Kai Wey
>>
>> On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta 
>> wrote:
>>
>>> now how can i get the name for author and details??
>>>
>>> On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, 
>>> wrote:
>>>
 Hi Amit,

 You can use
 =≠=
 Book.objects.select_related(FK).select_related(FK). values (select
 column name which you want).all()


 Thanks
 Bhoopesh sisoudiya

 On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
 wrote:

> Hi,
>
> I need help i am not understanding the keywords of joining and fetch
> value in veiw.py
> i have three tables in model.py
>
> Table 1(Author) :
>
> Table 2(books):
>
> Table 3 (details):
> FK of table1
> FK of table2
>
> Fk = foreign key
>
> I have to just show
>
> Author (author name) Books (dynamic) Books(author 2nd book)
>...
> details(dynamic)
>  details(dtl of author 2nd book) ...
>
> I have created the template
>
> now in views.py i an confused
>
> book=books.object(i do not get what to do)
> Author= (same )
> details = (same)
>
> Please can anybody help that will be very greatfull.
> Thank you in advance
>
>
>
> Thanks and Regards
> Amit Samanta
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
> 
> .
>
 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAP4hbAY%3DvOB%2BEs6hZ77jcAU_-LuuG51LkqEPU3eB5nrgqS48ow%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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, 

Re: Please help me in views.py

2019-09-04 Thread Anirudh Jain
Also, I am not sure how you have written html code, so use it properly
according to your convinience.

On Wed, Sep 4, 2019 at 2:41 PM Anirudh Jain 
wrote:

> This can be done easily if you make a proper view function and render data
> from it in template properly.
> A view function can be written like this :-
>
> Here I am assuming that you want get the details of all the books/auuthors
> at one page. If you want details of a particular book, then the following
> function will be different.
>
> from .models import Details, Author, Books
> from django.shortcuts import render
>
> view.py :-
> def getdetails(request):
> template_name = 'showDetails.html'
> objs = Details.objects.all()
> context = {'objs; : objs}
> return render(request, template_name, context}
>
>
> showDetails.html :-
> (use this block in your html code wherever you want to show this data)
>
> {% if objs %}
>
> 
> 
> Author
> Book
> 
>
> {% for obj in objs %}
> 
>   {{ obj.author_name }} 
>   {{ obj.book_name }} 
> 
> {% endfor %}
> 
>
> {% endif %}
>
> (In above html code, I have assumed that author_name and book_name are the
> FK in your Details table. Also, I am not sure
>
>
> On Wed, Sep 4, 2019 at 1:34 PM Lim Kai Wey  wrote:
>
>> Hey Amit,
>>
>> I suggest you to follow this tutorial to build your project,
>>
>> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
>>
>> It teaches you all the basics that you need to know from scratch, which
>> in my opinion will answer all the questions you're asking.
>> The tutorial is about building a local library webpage which I believe is
>> very similar to what you are doing now.
>>
>> Hope this helps.
>>
>> Regards,
>> Kai Wey
>>
>> On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta 
>> wrote:
>>
>>> now how can i get the name for author and details??
>>>
>>> On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, 
>>> wrote:
>>>
 Hi Amit,

 You can use
 =≠=
 Book.objects.select_related(FK).select_related(FK). values (select
 column name which you want).all()


 Thanks
 Bhoopesh sisoudiya

 On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
 wrote:

> Hi,
>
> I need help i am not understanding the keywords of joining and fetch
> value in veiw.py
> i have three tables in model.py
>
> Table 1(Author) :
>
> Table 2(books):
>
> Table 3 (details):
> FK of table1
> FK of table2
>
> Fk = foreign key
>
> I have to just show
>
> Author (author name) Books (dynamic) Books(author 2nd book)
>...
> details(dynamic)
>  details(dtl of author 2nd book) ...
>
> I have created the template
>
> now in views.py i an confused
>
> book=books.object(i do not get what to do)
> Author= (same )
> details = (same)
>
> Please can anybody help that will be very greatfull.
> Thank you in advance
>
>
>
> Thanks and Regards
> Amit Samanta
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
> 
> .
>
 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAP4hbAY%3DvOB%2BEs6hZ77jcAU_-LuuG51LkqEPU3eB5nrgqS48ow%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving 

Re: Please help me in views.py

2019-09-04 Thread Anirudh Jain
This can be done easily if you make a proper view function and render data
from it in template properly.
A view function can be written like this :-

Here I am assuming that you want get the details of all the books/auuthors
at one page. If you want details of a particular book, then the following
function will be different.

from .models import Details, Author, Books
from django.shortcuts import render

view.py :-
def getdetails(request):
template_name = 'showDetails.html'
objs = Details.objects.all()
context = {'objs; : objs}
return render(request, template_name, context}


showDetails.html :-
(use this block in your html code wherever you want to show this data)

{% if objs %}



Author
Book


{% for obj in objs %}

  {{ obj.author_name }} 
  {{ obj.book_name }} 

{% endfor %}


{% endif %}

(In above html code, I have assumed that author_name and book_name are the
FK in your Details table. Also, I am not sure


On Wed, Sep 4, 2019 at 1:34 PM Lim Kai Wey  wrote:

> Hey Amit,
>
> I suggest you to follow this tutorial to build your project,
>
> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
>
> It teaches you all the basics that you need to know from scratch, which in
> my opinion will answer all the questions you're asking.
> The tutorial is about building a local library webpage which I believe is
> very similar to what you are doing now.
>
> Hope this helps.
>
> Regards,
> Kai Wey
>
> On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta 
> wrote:
>
>> now how can i get the name for author and details??
>>
>> On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, 
>> wrote:
>>
>>> Hi Amit,
>>>
>>> You can use
>>> =≠=
>>> Book.objects.select_related(FK).select_related(FK). values (select
>>> column name which you want).all()
>>>
>>>
>>> Thanks
>>> Bhoopesh sisoudiya
>>>
>>> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
>>> wrote:
>>>
 Hi,

 I need help i am not understanding the keywords of joining and fetch
 value in veiw.py
 i have three tables in model.py

 Table 1(Author) :

 Table 2(books):

 Table 3 (details):
 FK of table1
 FK of table2

 Fk = foreign key

 I have to just show

 Author (author name) Books (dynamic) Books(author 2nd book)
...
 details(dynamic)
  details(dtl of author 2nd book) ...

 I have created the template

 now in views.py i an confused

 book=books.object(i do not get what to do)
 Author= (same )
 details = (same)

 Please can anybody help that will be very greatfull.
 Thank you in advance



 Thanks and Regards
 Amit Samanta

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP4hbAY%3DvOB%2BEs6hZ77jcAU_-LuuG51LkqEPU3eB5nrgqS48ow%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPcVkjg11EAf-rYFvoz85Y5BLKBisD4FJQSOCzonzi0TFC91ZQ%40mail.gmail.com
> 

Re: Please help me in views.py

2019-09-04 Thread Amit Samanta
i just need the veiw.py after this done i will try your tutorial

On Wed, 4 Sep, 2019, 1:34 PM Lim Kai Wey,  wrote:

> Hey Amit,
>
> I suggest you to follow this tutorial to build your project,
>
> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
>
> It teaches you all the basics that you need to know from scratch, which in
> my opinion will answer all the questions you're asking.
> The tutorial is about building a local library webpage which I believe is
> very similar to what you are doing now.
>
> Hope this helps.
>
> Regards,
> Kai Wey
>
> On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta 
> wrote:
>
>> now how can i get the name for author and details??
>>
>> On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, 
>> wrote:
>>
>>> Hi Amit,
>>>
>>> You can use
>>> =≠=
>>> Book.objects.select_related(FK).select_related(FK). values (select
>>> column name which you want).all()
>>>
>>>
>>> Thanks
>>> Bhoopesh sisoudiya
>>>
>>> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
>>> wrote:
>>>
 Hi,

 I need help i am not understanding the keywords of joining and fetch
 value in veiw.py
 i have three tables in model.py

 Table 1(Author) :

 Table 2(books):

 Table 3 (details):
 FK of table1
 FK of table2

 Fk = foreign key

 I have to just show

 Author (author name) Books (dynamic) Books(author 2nd book)
...
 details(dynamic)
  details(dtl of author 2nd book) ...

 I have created the template

 now in views.py i an confused

 book=books.object(i do not get what to do)
 Author= (same )
 details = (same)

 Please can anybody help that will be very greatfull.
 Thank you in advance



 Thanks and Regards
 Amit Samanta

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP4hbAY%3DvOB%2BEs6hZ77jcAU_-LuuG51LkqEPU3eB5nrgqS48ow%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPcVkjg11EAf-rYFvoz85Y5BLKBisD4FJQSOCzonzi0TFC91ZQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP4hbAbE21Cz1rfPohvhUbZ6DRO_5QHQTdVDZWotOU%3DjkjioDA%40mail.gmail.com.


Re: Please help me in views.py

2019-09-04 Thread Lim Kai Wey
Hey Amit,

I suggest you to follow this tutorial to build your project,
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website

It teaches you all the basics that you need to know from scratch, which in
my opinion will answer all the questions you're asking.
The tutorial is about building a local library webpage which I believe is
very similar to what you are doing now.

Hope this helps.

Regards,
Kai Wey

On Wed, Sep 4, 2019 at 3:59 PM Amit Samanta  wrote:

> now how can i get the name for author and details??
>
> On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, 
> wrote:
>
>> Hi Amit,
>>
>> You can use
>> =≠=
>> Book.objects.select_related(FK).select_related(FK). values (select
>> column name which you want).all()
>>
>>
>> Thanks
>> Bhoopesh sisoudiya
>>
>> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
>> wrote:
>>
>>> Hi,
>>>
>>> I need help i am not understanding the keywords of joining and fetch
>>> value in veiw.py
>>> i have three tables in model.py
>>>
>>> Table 1(Author) :
>>>
>>> Table 2(books):
>>>
>>> Table 3 (details):
>>> FK of table1
>>> FK of table2
>>>
>>> Fk = foreign key
>>>
>>> I have to just show
>>>
>>> Author (author name) Books (dynamic) Books(author 2nd book)
>>>  ...
>>> details(dynamic) details(dtl
>>> of author 2nd book) ...
>>>
>>> I have created the template
>>>
>>> now in views.py i an confused
>>>
>>> book=books.object(i do not get what to do)
>>> Author= (same )
>>> details = (same)
>>>
>>> Please can anybody help that will be very greatfull.
>>> Thank you in advance
>>>
>>>
>>>
>>> Thanks and Regards
>>> Amit Samanta
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP4hbAY%3DvOB%2BEs6hZ77jcAU_-LuuG51LkqEPU3eB5nrgqS48ow%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPcVkjg11EAf-rYFvoz85Y5BLKBisD4FJQSOCzonzi0TFC91ZQ%40mail.gmail.com.


Re: Please help me in views.py

2019-09-04 Thread Amit Samanta
now how can i get the name for author and details??

On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya, 
wrote:

> Hi Amit,
>
> You can use
> =≠=
> Book.objects.select_related(FK).select_related(FK). values (select column
> name which you want).all()
>
>
> Thanks
> Bhoopesh sisoudiya
>
> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta  wrote:
>
>> Hi,
>>
>> I need help i am not understanding the keywords of joining and fetch
>> value in veiw.py
>> i have three tables in model.py
>>
>> Table 1(Author) :
>>
>> Table 2(books):
>>
>> Table 3 (details):
>> FK of table1
>> FK of table2
>>
>> Fk = foreign key
>>
>> I have to just show
>>
>> Author (author name) Books (dynamic) Books(author 2nd book)
>>  ...
>> details(dynamic) details(dtl
>> of author 2nd book) ...
>>
>> I have created the template
>>
>> now in views.py i an confused
>>
>> book=books.object(i do not get what to do)
>> Author= (same )
>> details = (same)
>>
>> Please can anybody help that will be very greatfull.
>> Thank you in advance
>>
>>
>>
>> Thanks and Regards
>> Amit Samanta
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP4hbAY%3DvOB%2BEs6hZ77jcAU_-LuuG51LkqEPU3eB5nrgqS48ow%40mail.gmail.com.


Re: Please help me in views.py

2019-09-04 Thread Amit Samanta
I want try is...
there will be a dashboard

which will show

Author name

all the books which the author written

details of the book published date , avout the book in the above format


On Wed, 4 Sep, 2019, 12:08 PM Anirudh Jain, 
wrote:

> Could you please elaborate/be more clear about what you are really trying
> to do ?
>
> On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, 
> wrote:
>
>> Hi Amit,
>>
>> You can use
>> =≠=
>> Book.objects.select_related(FK).select_related(FK). values (select
>> column name which you want).all()
>>
>>
>> Thanks
>> Bhoopesh sisoudiya
>>
>> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta 
>> wrote:
>>
>>> Hi,
>>>
>>> I need help i am not understanding the keywords of joining and fetch
>>> value in veiw.py
>>> i have three tables in model.py
>>>
>>> Table 1(Author) :
>>>
>>> Table 2(books):
>>>
>>> Table 3 (details):
>>> FK of table1
>>> FK of table2
>>>
>>> Fk = foreign key
>>>
>>> I have to just show
>>>
>>> Author (author name) Books (dynamic) Books(author 2nd book)
>>>  ...
>>> details(dynamic) details(dtl
>>> of author 2nd book) ...
>>>
>>> I have created the template
>>>
>>> now in views.py i an confused
>>>
>>> book=books.object(i do not get what to do)
>>> Author= (same )
>>> details = (same)
>>>
>>> Please can anybody help that will be very greatfull.
>>> Thank you in advance
>>>
>>>
>>>
>>> Thanks and Regards
>>> Amit Samanta
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC3mK7faT1yOHZXdHXc0DyeDYRtTpD_Pke39AJYmXRQW%2BOi09Q%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP4hbAbWFvE0CRoeX45psThD7yWbKHR16aJXH866-dCFdHSfZw%40mail.gmail.com.


Re: Please help me in views.py

2019-09-04 Thread Anirudh Jain
Could you please elaborate/be more clear about what you are really trying
to do ?

On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya,  wrote:

> Hi Amit,
>
> You can use
> =≠=
> Book.objects.select_related(FK).select_related(FK). values (select column
> name which you want).all()
>
>
> Thanks
> Bhoopesh sisoudiya
>
> On Wed, Sep 4, 2019, 9:38 AM Amit Samanta  wrote:
>
>> Hi,
>>
>> I need help i am not understanding the keywords of joining and fetch
>> value in veiw.py
>> i have three tables in model.py
>>
>> Table 1(Author) :
>>
>> Table 2(books):
>>
>> Table 3 (details):
>> FK of table1
>> FK of table2
>>
>> Fk = foreign key
>>
>> I have to just show
>>
>> Author (author name) Books (dynamic) Books(author 2nd book)
>>  ...
>> details(dynamic) details(dtl
>> of author 2nd book) ...
>>
>> I have created the template
>>
>> now in views.py i an confused
>>
>> book=books.object(i do not get what to do)
>> Author= (same )
>> details = (same)
>>
>> Please can anybody help that will be very greatfull.
>> Thank you in advance
>>
>>
>>
>> Thanks and Regards
>> Amit Samanta
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAC3mK7faT1yOHZXdHXc0DyeDYRtTpD_Pke39AJYmXRQW%2BOi09Q%40mail.gmail.com.


Re: Please help me in views.py

2019-09-03 Thread Bhoopesh sisoudiya
Hi Amit,

You can use
=≠=
Book.objects.select_related(FK).select_related(FK). values (select column
name which you want).all()


Thanks
Bhoopesh sisoudiya

On Wed, Sep 4, 2019, 9:38 AM Amit Samanta  wrote:

> Hi,
>
> I need help i am not understanding the keywords of joining and fetch value
> in veiw.py
> i have three tables in model.py
>
> Table 1(Author) :
>
> Table 2(books):
>
> Table 3 (details):
> FK of table1
> FK of table2
>
> Fk = foreign key
>
> I have to just show
>
> Author (author name) Books (dynamic) Books(author 2nd book)
>...
> details(dynamic) details(dtl
> of author 2nd book) ...
>
> I have created the template
>
> now in views.py i an confused
>
> book=books.object(i do not get what to do)
> Author= (same )
> details = (same)
>
> Please can anybody help that will be very greatfull.
> Thank you in advance
>
>
>
> Thanks and Regards
> Amit Samanta
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com.


Re: Please help me to solve the error

2019-09-01 Thread Gabriel Araya Garcia
Manas:
Recuerda que existen dos  urlpatterns, una exterior y otra que está en la
carpeta de tu APLICACION, ojo con eso. La exterior es la que direcciona al
ADMIN y la otra es la que define la ubicacion de las URLS de tu aplicacion,
yo creo que esta ultima no la has construido.

Keep in mind that there are two URLPATTERNS one exterior and the other
inside of your aplication (app). The exterior give us the address to ADMIN
and the other is where will be all PATH's of your project.

gabrielaraya2...@gmail.com


El dom., 1 sept. 2019 a las 9:37, Manas Sanas ()
escribió:

> There is an error when i add url to url.py. The url.py file is as follow-
> from django.contrib import admin
> from django.urls import path, include
>
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('polls/', include('polls.urls')),
> ]
> when i run the code in terminal : 'python manage.py runserver' ; then the
> follwing error is displayed in the terminal -
>
> django.core.exceptions.ImproperlyConfigured: The included URLconf ' 'polls.urls' from
> 'C:\\Users\\Administrator\\PycharmProjects\\website2\\mysite\\polls\\urls.py'>'
> does
>  not appear to have any patterns in it. If you see valid patterns in the
> file then the issue is probably caused by a circular import.
>
> Please help me to solve the error
>
> Regards,
> Django user
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e77ae50b-dbdb-447a-9e91-b04e996197c9%40googlegroups.com
> .
>


-- 
Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos
99.7721.15.70

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKVvSDB-O67cC51sGeD602Fyh_78HH_yxO8p42k67c8hho%3DBLw%40mail.gmail.com.


Re: Please help me to solve the error

2019-09-01 Thread Sebastian Jung
Hello,

You must create another url.py under your App polls.

Regards

Manas Sanas  schrieb am So., 1. Sep. 2019, 15:37:

> There is an error when i add url to url.py. The url.py file is as follow-
> from django.contrib import admin
> from django.urls import path, include
>
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('polls/', include('polls.urls')),
> ]
> when i run the code in terminal : 'python manage.py runserver' ; then the
> follwing error is displayed in the terminal -
>
> django.core.exceptions.ImproperlyConfigured: The included URLconf ' 'polls.urls' from
> 'C:\\Users\\Administrator\\PycharmProjects\\website2\\mysite\\polls\\urls.py'>'
> does
>  not appear to have any patterns in it. If you see valid patterns in the
> file then the issue is probably caused by a circular import.
>
> Please help me to solve the error
>
> Regards,
> Django user
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e77ae50b-dbdb-447a-9e91-b04e996197c9%40googlegroups.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKGT9mzi%3D-s6a8B6oVr8Cte6DT0Sb5r%2BL8paW9oBG4wc4sqTgg%40mail.gmail.com.


Re: Please help me to resolve this issue .............................[WinError 10061] No connection could be made because the target machine actively refused it

2019-08-28 Thread Kasper Laudrup

Hi Wagas,

This can only be a guess, since you haven't provided much relevant
information, but this exception:

> *Exception Type: ConnectionRefusedError at /accounts/register/*
> *Exception Value: [WinError 10061] No connection could be made because
> the target machine actively refused it*

is being thrown somewhere around here:


*
*File "C:\Users\Waqas 
Ahmad\AppData\Local\Programs\Python\Python37\lib\smtplib.py" in __init__*

*  251.             (code, msg) = self.connect(host, port)*
*


I assume you are trying to send an email and haven't configured your 
SMTP server correctly?


Fix that in your settings.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/40cac4ab-21ce-c6e3-359e-588f34ed08e3%40stacktrace.dk.


Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
Hi Carsten,

Thank you!
I finally understood what's happening.
I should have added choices into each question.
Now, choice_set.all thing is working!

Thank you for your advice!

Nori

On Sunday, February 3, 2019 at 3:20:39 PM UTC-5, Carsten Fuchs wrote:
>
> Well, you're adding choices to q = Question.objects.get(pk=1). 
> But is this also the question you call the view with? 
>
> I suggest you add a few more print statements below your existing 
>
> print(question) 
>
> For example: 
>
> print(question.pk) 
> print(question.choice_set.all()) 
>
> # Or, a bit more verbose, for example: 
> for c in question.choice_set.all(): 
> print(c.pk, c) 
>
> # Is the following a valid PK among the choices printed above? 
> print(request.POST['choice']) 
>
> Best regards, 
> Carsten 
>
>
> Am 2019-02-03 um 16:58 schrieb Atsunori Kaneshige: 
> > *_Here is the codes about choice_* 
> > 
> > 
> > In [27]: q = Question.objects.get(pk=1) 
> > 
> > 
> > In [28]: q.choice_set.all() 
> > 
> > Out[28]:  
> > 
> > 
> > In [29]: q.choice_set.create(choice_text='Not much',votes=0) 
> > 
> > Out[29]:  
> > 
> > 
> > In [30]: q.choice_set.create(choice_text='The sky',votes=0) 
> > 
> > Out[30]:  
> > 
> > 
> > In [31]: c = q.choice_set.create(choice_text='Just hacking 
> again',votes=0) 
> > 
> > 
> > In [32]: c.question 
> > 
> > Out[32]:  
> > 
> > 
> > In [33]: q.choice_set.all() 
> > 
> > Out[33]: , , 
> ]> 
> > 
> > 
> > In [34]: q.choice_set.count() 
> > 
> > Out[34]: 3 
> > 
> > 
> > 
> > choice exits, or correctly working? 
> > 
> > Nori 
> > 
> > On Sunday, February 3, 2019 at 10:55:48 AM UTC-5, Atsunori Kaneshige 
> wrote: 
> > 
> > Hi Carsten, 
> > 
> > Sorry, are you talking about Writing Your First App, Part2? The page 
> below? 
> > https://docs.djangoproject.com/en/2.1/intro/tutorial02/ <
> https://docs.djangoproject.com/en/2.1/intro/tutorial02/> 
> > 
> > Yeah, when I tried this, there was something wrong. 
> > 
> > *_I did that again. I copied and pasted my terminal below._* 
> > *_seems like migration was successful when I did before._* 
> > *_I am not sure what 'python sqlmigrate polls 001' is doing._* 
> > 
> > 
> > MacBook-Pro-3:mysite Koitaro$ python manage.py migrate 
> > 
> > 
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; 
> in order to keep installing from binary please use "pip install 
> psycopg2-binary" instead. For details see: <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>>. 
> > 
> >   """) 
> > 
> > Operations to perform: 
> > 
> >   Apply all migrations: admin, auth, contenttypes, polls, sessions 
> > 
> > Running migrations: 
> > 
> >   No migrations to apply. 
> > 
> > MacBook-Pro-3:mysite Koitaro$ python manage.py makemigrations polls 
> > 
> > 
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; 
> in order to keep installing from binary please use "pip install 
> psycopg2-binary" instead. For details see: <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>>. 
> > 
> >   """) 
> > 
> > No changes detected in app 'polls' 
> > 
> > MacBook-Pro-3:mysite Koitaro$ python manage.py sqlmigrate polls 0001 
> > 
> > 
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; 
> in order to keep installing from binary please use "pip install 
> psycopg2-binary" instead. For details see: <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>>. 
> > 
> >   """) 
> > 
> > BEGIN; 
> > 
> > -- 
> > 
> > -- Create model Choice 
> > 
> > -- 
> > 
> > CREATE TABLE "polls_choice" ("id" serial NOT NULL PRIMARY KEY, 
> "choice_text" varchar(200) NOT NULL, "votes" integer NOT NULL); 
> > 
> > -- 
> > 
> > -- Create model Question 
> > 
> > -- 
> > 
> > CREATE TABLE "polls_question" ("id" serial NOT NULL PRIMARY KEY, 
> "question_text" varchar(200) NOT NULL, "pub_date" timestamp with time zone 
> NOT NULL); 
> > 
> > -- 
> > 
> > -- Add field question to choice 
> > 
> > -- 
> > 
> > ALTER TABLE "polls_choice" ADD COLUMN "question_id" integer NOT 
> NULL; 
> > 
> > CREATE INDEX "polls_choice_question_id_c5b4b260" ON "polls_choice" 
> ("question_id"); 
> > 
> > ALTER TABLE "polls_choice" ADD CONSTRAINT 
> "polls_choice_question_id_c5b4b260_fk_polls_question_id" FOREIGN KEY 
> ("question_id") REFERENCES "polls_question" ("id") DEFERRABLE INITIALLY 
> DEFERRED; 

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
Hi Nitin,

Thank you!
I finally understood what you said.
Now working fine. Actually it was working, but I did not understand.

Thank you!

Nori

On Sunday, February 3, 2019 at 11:08:34 AM UTC-5, Nitin Kalmaste wrote:
>
> You have to add Choices for each questions you have created in database 
> like the process is same as you used for the questions.
> On Sun, Feb 3, 2019, 8:53 PM Atsunori Kaneshige   wrote:
>
>> Hi Nitin,
>>
>> Thank you for your comment.
>>
>> I did  
>>
>> jango-admin startproject mysite
>>
>> and cd mysite, then
>>
>> python manage.py runserver
>>
>> and server is working, so I did
>>
>> opython manage.py startapp polls
>>
>> polls app was successfully created, and stopped the server because I 
>> wanted to user postgresql instead of the default SQLite3(?).
>> I did below
>>
>> pg_ctl -D /user/local/var/posgres start
>>
>> postgres successfully started running, then stopped
>>
>> *By the way, I registered polls app in settings.py (I just copied and 
>> pasted part of codes from the file below)*
>> INSTALLED_APPS = [
>> 'polls.apps.PollsConfig',
>>
>> *Also, I followed the way to add postgres as database, I looked as Django 
>> docs*
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.postgresql',
>> 'NAME': 'Koitaro',
>> 'USER': '',
>> 'PASSWORD': '',
>> 'HOST': '',
>> 'PORT': '',
>> }
>> }
>>
>> *I did migration too, like migrate, makemigration etc, just copied and 
>> pasted from Django Docs*
>> *This is my models.py*
>>
>> import datetime
>> from django.db import models
>> from django.utils import timezone
>>
>> # Create your models here.
>>
>>
>> class Question(models.Model):
>> question_text = models.CharField(max_length=200)
>> pub_date = models.DateTimeField('date published')
>>
>> def __str__(self):
>> return self.question_text
>>
>> def was_published_recently(self):
>> return self.pub_date >= timezone.now() - 
>> datetime.timedelta(days=1)
>>
>>
>> class Choice(models.Model):
>> question = models.ForeignKey(Question, on_delete=models.CASCADE)
>> choice_text = models.CharField(max_length=200)
>> votes = models.IntegerField(default=0)
>>
>> def __str__(self):
>> return self.choice_text
>>
>> *mygration was successfully generated*
>> from django.db import migrations, models
>> import django.db.models.deletion
>>
>>
>> class Migration(migrations.Migration):
>>
>> initial = True
>>
>> dependencies = [
>> ]
>>
>> operations = [
>> migrations.CreateModel(
>> name='Choice',
>> fields=[
>> ('id', models.AutoField(auto_created=True, 
>> primary_key=True, serialize=False, verbose_name='ID')),
>> ('choice_text', models.CharField(max_length=200)),
>> ('votes', models.IntegerField(default=0)),
>> ],
>> ),
>> migrations.CreateModel(
>> name='Question',
>> fields=[
>> ('id', models.AutoField(auto_created=True, 
>> primary_key=True, serialize=False, verbose_name='ID')),
>> ('question_text', models.CharField(max_length=200)),
>> ('pub_date', models.DateTimeField(verbose_name='date 
>> published')),
>> ],
>> ),
>> migrations.AddField(
>> model_name='choice',
>> name='question',
>> 
>> field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, 
>> to='polls.Question'),
>> ),
>> ]
>>
>> *When I go to admin, I added 5 or 6 questions, and successfully added in 
>> database.*
>> *the database name I made is 'Koitaro'.*
>> *I registered in settings.py and I have this database named as Koitaro in 
>> my posgresql*
>>
>>
>> question has data, but choice thing doesn't seem having any data...
>>
>> I really appreciate your thoughts.
>>
>> Nori
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Sunday, February 3, 2019 at 1:56:18 AM UTC-5, Nitin Kalmaste wrote:
>>>
>>> Have you migrated database and added any question there?
>>>
>>> On Sun, Feb 3, 2019, 8:39 AM Atsunori Kaneshige >> wrote:
>>>
 Oh, one note is that I am using postgresql.
 everything else except vote function in views.py seems working.

 Sorry, any help would be really appreciated!

 Nori

 On Saturday, February 2, 2019 at 10:02:14 PM UTC-5, Atsunori Kaneshige 
 wrote:
>
> Hi Django users,
>
> I started using Django recently.
> I am following the official Django tutorial.
> I am just at Writing Your First Django App, Part4, and I have been 
> just copying and pasting all codes.
>
> But I have a problem in vote.
> I inserted print(question) and this is printed in detail.html
> also, question.id is also printed.
>
> BUT, choice part doesn't seem working.
>
> **
> def vote(request, question_id):
> question = get_object_or_404(Question, 

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Carsten Fuchs
Well, you're adding choices to q = Question.objects.get(pk=1).
But is this also the question you call the view with?

I suggest you add a few more print statements below your existing

print(question)

For example:

print(question.pk)
print(question.choice_set.all())

# Or, a bit more verbose, for example:
for c in question.choice_set.all():
print(c.pk, c)

# Is the following a valid PK among the choices printed above?
print(request.POST['choice'])

Best regards,
Carsten


Am 2019-02-03 um 16:58 schrieb Atsunori Kaneshige:
> *_Here is the codes about choice_*
> 
> 
> In [27]: q = Question.objects.get(pk=1)
> 
> 
> In [28]: q.choice_set.all()
> 
> Out[28]: 
> 
> 
> In [29]: q.choice_set.create(choice_text='Not much',votes=0)
> 
> Out[29]: 
> 
> 
> In [30]: q.choice_set.create(choice_text='The sky',votes=0)
> 
> Out[30]: 
> 
> 
> In [31]: c = q.choice_set.create(choice_text='Just hacking again',votes=0)
> 
> 
> In [32]: c.question
> 
> Out[32]: 
> 
> 
> In [33]: q.choice_set.all()
> 
> Out[33]: , ,  Not much>]>
> 
> 
> In [34]: q.choice_set.count()
> 
> Out[34]: 3
> 
> 
> 
> choice exits, or correctly working?
> 
> Nori
> 
> On Sunday, February 3, 2019 at 10:55:48 AM UTC-5, Atsunori Kaneshige wrote:
> 
> Hi Carsten,
> 
> Sorry, are you talking about Writing Your First App, Part2? The page 
> below?
> https://docs.djangoproject.com/en/2.1/intro/tutorial02/ 
> 
> 
> Yeah, when I tried this, there was something wrong.
> 
> *_I did that again. I copied and pasted my terminal below._*
> *_seems like migration was successful when I did before._*
> *_I am not sure what 'python sqlmigrate polls 001' is doing._*
> 
> 
> MacBook-Pro-3:mysite Koitaro$ python manage.py migrate
> 
> 
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in 
> order to keep installing from binary please use "pip install psycopg2-binary" 
> instead. For details see: 
>  >.
> 
>   """)
> 
> Operations to perform:
> 
>   Apply all migrations: admin, auth, contenttypes, polls, sessions
> 
> Running migrations:
> 
>   No migrations to apply.
> 
> MacBook-Pro-3:mysite Koitaro$ python manage.py makemigrations polls
> 
> 
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in 
> order to keep installing from binary please use "pip install psycopg2-binary" 
> instead. For details see: 
>  >.
> 
>   """)
> 
> No changes detected in app 'polls'
> 
> MacBook-Pro-3:mysite Koitaro$ python manage.py sqlmigrate polls 0001
> 
> 
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in 
> order to keep installing from binary please use "pip install psycopg2-binary" 
> instead. For details see: 
>  >.
> 
>   """)
> 
> BEGIN;
> 
> --
> 
> -- Create model Choice
> 
> --
> 
> CREATE TABLE "polls_choice" ("id" serial NOT NULL PRIMARY KEY, 
> "choice_text" varchar(200) NOT NULL, "votes" integer NOT NULL);
> 
> --
> 
> -- Create model Question
> 
> --
> 
> CREATE TABLE "polls_question" ("id" serial NOT NULL PRIMARY KEY, 
> "question_text" varchar(200) NOT NULL, "pub_date" timestamp with time zone 
> NOT NULL);
> 
> --
> 
> -- Add field question to choice
> 
> --
> 
> ALTER TABLE "polls_choice" ADD COLUMN "question_id" integer NOT NULL;
> 
> CREATE INDEX "polls_choice_question_id_c5b4b260" ON "polls_choice" 
> ("question_id");
> 
> ALTER TABLE "polls_choice" ADD CONSTRAINT 
> "polls_choice_question_id_c5b4b260_fk_polls_question_id" FOREIGN KEY 
> ("question_id") REFERENCES "polls_question" ("id") DEFERRABLE INITIALLY 
> DEFERRED;
> 
> COMMIT;
> 
> MacBook-Pro-3:mysite Koitaro$ 
> 
> 
> 
> 
> *_After this, when I typed 'python manage.py shell',_*
> *_By the way, I am not doing this in virtual environment, is it fine?_*
> *_Django docs doesn't say anything about it._*
> 
> *_Here is the result of shell_*
> 
> MacBook-Pro-3:mysite Koitaro$ python manage.py shell
> 
> 
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in 
> order to keep installing from binary please use "pip 

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Nitin Kalmaste
You have to add Choices for each questions you have created in database
like the process is same as you used for the questions.
On Sun, Feb 3, 2019, 8:53 PM Atsunori Kaneshige  Hi Nitin,
>
> Thank you for your comment.
>
> I did
>
> jango-admin startproject mysite
>
> and cd mysite, then
>
> python manage.py runserver
>
> and server is working, so I did
>
> opython manage.py startapp polls
>
> polls app was successfully created, and stopped the server because I
> wanted to user postgresql instead of the default SQLite3(?).
> I did below
>
> pg_ctl -D /user/local/var/posgres start
>
> postgres successfully started running, then stopped
>
> *By the way, I registered polls app in settings.py (I just copied and
> pasted part of codes from the file below)*
> INSTALLED_APPS = [
> 'polls.apps.PollsConfig',
>
> *Also, I followed the way to add postgres as database, I looked as Django
> docs*
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.postgresql',
> 'NAME': 'Koitaro',
> 'USER': '',
> 'PASSWORD': '',
> 'HOST': '',
> 'PORT': '',
> }
> }
>
> *I did migration too, like migrate, makemigration etc, just copied and
> pasted from Django Docs*
> *This is my models.py*
>
> import datetime
> from django.db import models
> from django.utils import timezone
>
> # Create your models here.
>
>
> class Question(models.Model):
> question_text = models.CharField(max_length=200)
> pub_date = models.DateTimeField('date published')
>
> def __str__(self):
> return self.question_text
>
> def was_published_recently(self):
> return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
>
>
> class Choice(models.Model):
> question = models.ForeignKey(Question, on_delete=models.CASCADE)
> choice_text = models.CharField(max_length=200)
> votes = models.IntegerField(default=0)
>
> def __str__(self):
> return self.choice_text
>
> *mygration was successfully generated*
> from django.db import migrations, models
> import django.db.models.deletion
>
>
> class Migration(migrations.Migration):
>
> initial = True
>
> dependencies = [
> ]
>
> operations = [
> migrations.CreateModel(
> name='Choice',
> fields=[
> ('id', models.AutoField(auto_created=True,
> primary_key=True, serialize=False, verbose_name='ID')),
> ('choice_text', models.CharField(max_length=200)),
> ('votes', models.IntegerField(default=0)),
> ],
> ),
> migrations.CreateModel(
> name='Question',
> fields=[
> ('id', models.AutoField(auto_created=True,
> primary_key=True, serialize=False, verbose_name='ID')),
> ('question_text', models.CharField(max_length=200)),
> ('pub_date', models.DateTimeField(verbose_name='date
> published')),
> ],
> ),
> migrations.AddField(
> model_name='choice',
> name='question',
>
> field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
> to='polls.Question'),
> ),
> ]
>
> *When I go to admin, I added 5 or 6 questions, and successfully added in
> database.*
> *the database name I made is 'Koitaro'.*
> *I registered in settings.py and I have this database named as Koitaro in
> my posgresql*
>
>
> question has data, but choice thing doesn't seem having any data...
>
> I really appreciate your thoughts.
>
> Nori
>
>
>
>
>
>
>
>
>
>
> On Sunday, February 3, 2019 at 1:56:18 AM UTC-5, Nitin Kalmaste wrote:
>>
>> Have you migrated database and added any question there?
>>
>> On Sun, Feb 3, 2019, 8:39 AM Atsunori Kaneshige >
>>> Oh, one note is that I am using postgresql.
>>> everything else except vote function in views.py seems working.
>>>
>>> Sorry, any help would be really appreciated!
>>>
>>> Nori
>>>
>>> On Saturday, February 2, 2019 at 10:02:14 PM UTC-5, Atsunori Kaneshige
>>> wrote:

 Hi Django users,

 I started using Django recently.
 I am following the official Django tutorial.
 I am just at Writing Your First Django App, Part4, and I have been just
 copying and pasting all codes.

 But I have a problem in vote.
 I inserted print(question) and this is printed in detail.html
 also, question.id is also printed.

 BUT, choice part doesn't seem working.

 **
 def vote(request, question_id):
 question = get_object_or_404(Question, pk=question_id)
 print(question)
 try:
 selected_choice =
 question.choice_set.get(pk=request.POST['choice'])
 except (KeyError, Choice.DoesNotExist) as e:
 # Redisplay the question voting form.
 print(e)
 return render(request, 'polls/detail.html', {
 'question': question,
 'error_message': "You didn't select a choice.",
 })
 

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
*Here is the codes about choice*


In [27]: q = Question.objects.get(pk=1)


In [28]: q.choice_set.all()

Out[28]: 


In [29]: q.choice_set.create(choice_text='Not much',votes=0)

Out[29]: 


In [30]: q.choice_set.create(choice_text='The sky',votes=0)

Out[30]: 


In [31]: c = q.choice_set.create(choice_text='Just hacking again',votes=0)


In [32]: c.question

Out[32]: 


In [33]: q.choice_set.all()

Out[33]: , , 
]>


In [34]: q.choice_set.count()

Out[34]: 3


choice exits, or correctly working?

Nori

On Sunday, February 3, 2019 at 10:55:48 AM UTC-5, Atsunori Kaneshige wrote:
>
> Hi Carsten,
>
> Sorry, are you talking about Writing Your First App, Part2? The page below?
> https://docs.djangoproject.com/en/2.1/intro/tutorial02/
>
> Yeah, when I tried this, there was something wrong.
>
> *I did that again. I copied and pasted my terminal below.*
> *seems like migration was successful when I did before.*
> *I am not sure what 'python sqlmigrate polls 001' is doing.*
>
>
> MacBook-Pro-3:mysite Koitaro$ python manage.py migrate
>
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; 
> in order to keep installing from binary please use "pip install 
> psycopg2-binary" instead. For details see: <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
>
>   """)
>
> Operations to perform:
>
>   Apply all migrations: admin, auth, contenttypes, polls, sessions
>
> Running migrations:
>
>   No migrations to apply.
>
> MacBook-Pro-3:mysite Koitaro$ python manage.py makemigrations polls
>
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; 
> in order to keep installing from binary please use "pip install 
> psycopg2-binary" instead. For details see: <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
>
>   """)
>
> No changes detected in app 'polls'
>
> MacBook-Pro-3:mysite Koitaro$ python manage.py sqlmigrate polls 0001
>
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; 
> in order to keep installing from binary please use "pip install 
> psycopg2-binary" instead. For details see: <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
>
>   """)
>
> BEGIN;
>
> --
>
> -- Create model Choice
>
> --
>
> CREATE TABLE "polls_choice" ("id" serial NOT NULL PRIMARY KEY, 
> "choice_text" varchar(200) NOT NULL, "votes" integer NOT NULL);
>
> --
>
> -- Create model Question
>
> --
>
> CREATE TABLE "polls_question" ("id" serial NOT NULL PRIMARY KEY, 
> "question_text" varchar(200) NOT NULL, "pub_date" timestamp with time zone 
> NOT NULL);
>
> --
>
> -- Add field question to choice
>
> --
>
> ALTER TABLE "polls_choice" ADD COLUMN "question_id" integer NOT NULL;
>
> CREATE INDEX "polls_choice_question_id_c5b4b260" ON "polls_choice" 
> ("question_id");
>
> ALTER TABLE "polls_choice" ADD CONSTRAINT 
> "polls_choice_question_id_c5b4b260_fk_polls_question_id" FOREIGN KEY 
> ("question_id") REFERENCES "polls_question" ("id") DEFERRABLE INITIALLY 
> DEFERRED;
>
> COMMIT;
>
> MacBook-Pro-3:mysite Koitaro$ 
>
>
>
> *After this, when I typed 'python manage.py shell',*
> *By the way, I am not doing this in virtual environment, is it fine?*
> *Django docs doesn't say anything about it.*
>
> *Here is the result of shell*
>
> MacBook-Pro-3:mysite Koitaro$ python manage.py shell
>
> /Applications/anaconda3/lib/python3.6/site-packages/psycopg2/__init__.py:144: 
> UserWarning: The psycopg2 wheel package will be renamed from release 2.8; 
> in order to keep installing from binary please use "pip install 
> psycopg2-binary" instead. For details see: <
> http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
>
>   """)
>
> Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) 
>
> Type 'copyright', 'credits' or 'license' for more information
>
> IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
>
>
> In [1]: from polls.models import Choice, Question
>
>
> In [2]: Question.objects.all()
>
> Out[2]: , , 
> , ]>
>
>
> In [3]: from django.utils import timezone
>
>
> In [4]: q = Question(question_text='What's up?,pub_data=timezone.now())
>
>   File "", line 1
>
> q = Question(question_text='What's up?,pub_data=timezone.now())
>
>  ^
>
> SyntaxError: invalid syntax
>
>
>
> In [5]: q = Question(question_text="What's up?",pub_data=timezone.now())
>
> ---
>
> TypeError Traceback (most recent call 
> last)
>
>  in ()
>
> > 1 q = Question(question_text="What's up?",pub_data=timezone.now())
>
>
>
> /Applications/anaconda3/lib/python3.6/site-packages/django/db/models/base.py 
> in __init__(self, *args, 

  1   2   3   >