Async await support in Django 3.0.3

2020-02-10 Thread BfutureP
how to enable async await support in my django project globally so don't 
need to convert thread loop all the time.

-- 
You received this message because you are subscribed to the Google Groups 
"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/52bd273f-0797-4352-ae95-a7c70242bb80%40googlegroups.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
I had the same problem on apache after running collect static

Sent from my iPad

> On 11-Feb-2020, at 1:01 AM, Alessandro D' Oronzo  wrote:
> 
> Hi, it is a default admin page.
> 
> Il giorno lun 10 feb 2020 alle 20:26 maninder singh Kumar 
>  ha scritto:
>> Is it just one css or all css ?
>> 
>>  
>> 
>> 
>>  
>> Maninder Kumar
>> about.me/maninder.s.kumar
>> 
>>
>>  
>> 
>> 
>>> On Mon, Feb 10, 2020 at 7:08 PM Rishabh Gupta  
>>> wrote:
>>> I have problem with CSS .CSS is not loading from static folder >
>>> Help me So i help others for same
>>> 
>>> Thanks
>>> Rishabh
>>> 
 On Mon, Feb 10, 2020 at 4:58 PM maninder singh Kumar 
  wrote:
 Couldn't be anything in the tracebacks !
  
 
 

 Maninder Kumar
 about.me/maninder.s.kumar
 

  
 
 
> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95  
> wrote:
> Also, traceback would be awesome
> 
>> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo 
>>  wrote:
>> Hi everyone,
>> I have a problem with local web server and admin page.
>> When I try to connect to admin page the web server of Django close 
>> without errors.
>> Do you have any ideas?
>> 
>> Thanks so much!
>> 
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%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/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%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/CACpDem0APGUuPJ_GhPkkqCvapH_2%2BiVDDacVK5W-wrbPEvj9Hg%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/CABOHK3T_Dmr%2BeAQ0vEg4LeTXJuFHuJsSSWQ6RQATw7Sdb3sF9A%40mail.gmail.com.
> -- 
> Alessandro D' Oronzo.
> -- 
> You received this message because you are subscribed to the Google Groups 
> "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/CAJUwmOtSra4OAnHcyE%3D1yekCQ2%3DHfZjpQG5yG%2BNtfT_EQwg5kA%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/36634F0A-A5B0-4C57-B63B-7D335C825705%40gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread Alessandro D' Oronzo
Hi, it is a default admin page.

Il giorno lun 10 feb 2020 alle 20:26 maninder singh Kumar <
maninder.s.ku...@gmail.com> ha scritto:

> Is it just one css or all css ?
>
>
>
> [image: --]
>
> Maninder Kumar
> [image: http://]about.me/maninder.s.kumar
> 
>
>
>
>
> On Mon, Feb 10, 2020 at 7:08 PM Rishabh Gupta 
> wrote:
>
>> I have problem with CSS .CSS is not loading from static folder >
>> Help me So i help others for same
>>
>> Thanks
>> Rishabh
>>
>> On Mon, Feb 10, 2020 at 4:58 PM maninder singh Kumar <
>> maninder.s.ku...@gmail.com> wrote:
>>
>>> Couldn't be anything in the tracebacks !
>>>
>>>
>>> [image: --]
>>>
>>> Maninder Kumar
>>> [image: http://]about.me/maninder.s.kumar
>>> 
>>>
>>>
>>>
>>>
>>> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
>>> wrote:
>>>
 Also, traceback would be awesome

 On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo <
 doronz...@gmail.com> wrote:

> Hi everyone,
> I have a problem with local web server and admin page.
> When I try to connect to admin page the web server of Django close
> without errors.
> Do you have any ideas?
>
> Thanks so much!
>
> --
> You received this message because you are subscribed to the Google
> Groups "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%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/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%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/CACpDem0APGUuPJ_GhPkkqCvapH_2%2BiVDDacVK5W-wrbPEvj9Hg%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/CABOHK3T_Dmr%2BeAQ0vEg4LeTXJuFHuJsSSWQ6RQATw7Sdb3sF9A%40mail.gmail.com
> 
> .
>
-- 
Alessandro D' Oronzo.

-- 
You received this message because you are subscribed to the Google Groups 
"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/CAJUwmOtSra4OAnHcyE%3D1yekCQ2%3DHfZjpQG5yG%2BNtfT_EQwg5kA%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
Is it just one css or all css ?


[image: --]

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





On Mon, Feb 10, 2020 at 7:08 PM Rishabh Gupta 
wrote:

> I have problem with CSS .CSS is not loading from static folder >
> Help me So i help others for same
>
> Thanks
> Rishabh
>
> On Mon, Feb 10, 2020 at 4:58 PM maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
>> Couldn't be anything in the tracebacks !
>>
>>
>> [image: --]
>>
>> Maninder Kumar
>> [image: http://]about.me/maninder.s.kumar
>> 
>>
>>
>>
>>
>> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
>> wrote:
>>
>>> Also, traceback would be awesome
>>>
>>> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo <
>>> doronz...@gmail.com> wrote:
>>>
 Hi everyone,
 I have a problem with local web server and admin page.
 When I try to connect to admin page the web server of Django close
 without errors.
 Do you have any ideas?

 Thanks so much!

 --
 You received this message because you are subscribed to the Google
 Groups "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%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/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%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/CACpDem0APGUuPJ_GhPkkqCvapH_2%2BiVDDacVK5W-wrbPEvj9Hg%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/CABOHK3T_Dmr%2BeAQ0vEg4LeTXJuFHuJsSSWQ6RQATw7Sdb3sF9A%40mail.gmail.com.


Re: Django server is slow after moving database to remote VM

2020-02-10 Thread Jody Fitzpatrick
Are the VM's within the same network/hosting company?

On Mon, Feb 10, 2020 at 8:38 AM Simen Russnes  wrote:

> Ever since I separated my server running the Django code (2.2.9), and my
> MariaDB server (10.3), there has been a significant lag increase in my
> application.
>
> I've tried to limit the number of explicit requests to the server as the
> round trip of opening and closing a connection now is obviously going to
> be slower, but I've noticed that even when doing things like accessing a
> standard ViewSet, serializing a Model the database can be very slow. One
> thing in particular that got me worried is that when monitoring the
> network traffic, I can see simultaneous upload and download speeds, when
> I would expect only a very small sql request being uploaded, but still a
> bigger download speed.
>
> Are there any general recommendations I should consider implementing?
>
> --
>
> Regards,
>
> Simen
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/2b0e74fb-eb03-1ddf-b77a-893a06e8aac4%40bio-me.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%2B_%2B3iknrTb8h%3DdbgRrrLmKawHYztn7i5qOEgmijtnfxRUKhZw%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread Rishabh Gupta
I have problem with CSS .CSS is not loading from static folder >
Help me So i help others for same

Thanks
Rishabh

On Mon, Feb 10, 2020 at 4:58 PM maninder singh Kumar <
maninder.s.ku...@gmail.com> wrote:

> Couldn't be anything in the tracebacks !
>
>
> [image: --]
>
> Maninder Kumar
> [image: http://]about.me/maninder.s.kumar
> 
>
>
>
>
> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
> wrote:
>
>> Also, traceback would be awesome
>>
>> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo <
>> doronz...@gmail.com> wrote:
>>
>>> Hi everyone,
>>> I have a problem with local web server and admin page.
>>> When I try to connect to admin page the web server of Django close
>>> without errors.
>>> Do you have any ideas?
>>>
>>> Thanks so much!
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%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/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%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/CACpDem0APGUuPJ_GhPkkqCvapH_2%2BiVDDacVK5W-wrbPEvj9Hg%40mail.gmail.com.


Django server is slow after moving database to remote VM

2020-02-10 Thread Simen Russnes
Ever since I separated my server running the Django code (2.2.9), and my
MariaDB server (10.3), there has been a significant lag increase in my
application.

I've tried to limit the number of explicit requests to the server as the
round trip of opening and closing a connection now is obviously going to
be slower, but I've noticed that even when doing things like accessing a
standard ViewSet, serializing a Model the database can be very slow. One
thing in particular that got me worried is that when monitoring the
network traffic, I can see simultaneous upload and download speeds, when
I would expect only a very small sql request being uploaded, but still a
bigger download speed.

Are there any general recommendations I should consider implementing?

--

Regards,

Simen


-- 
You received this message because you are subscribed to the Google Groups 
"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/2b0e74fb-eb03-1ddf-b77a-893a06e8aac4%40bio-me.com.


Trie Implemntation in django

2020-02-10 Thread Soumen Khatua
Hi Folks,
I wrote one python file which is a Trie algorithm but i don't  know how to
implement it in Django and javascript. Please help me regarding this matter.

Thank you in advance

regards,
Soumen

-- 
You received this message because you are subscribed to the Google Groups 
"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/CAPUw6Waqg31_vS%2B9yW27s9yezpf2Sj2FQzZ3KAzhuU%3DTsR5vVA%40mail.gmail.com.


Re: Adding a verbose_name to id field

2020-02-10 Thread Jason
Hmm.  TIL about https://code.djangoproject.com/ticket/8576

Would a a uuid for this, rather than an integer?  If not, you'll have to 
implement a save override to handle the incrementing yourself.

In addition, it might be worthwhile bringing this ticket up for discussion 
at https://groups.google.com/forum/#!forum/django-developers

-- 
You received this message because you are subscribed to the Google Groups 
"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/dc686528-0a8d-43ff-9973-d478cc765959%40googlegroups.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
Good job then I was wrong


[image: --]

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





On Mon, Feb 10, 2020 at 6:14 PM Alessandro D' Oronzo 
wrote:

> I have resolve it. The problem is version of python. Upgrade to 3.8 and I
> have fix the problem
>
> Il giorno lun 10 feb 2020 alle 12:28 maninder singh Kumar <
> maninder.s.ku...@gmail.com> ha scritto:
>
>> Couldn't be anything in the tracebacks !
>>
>>
>> [image: --]
>>
>> Maninder Kumar
>> [image: http://]about.me/maninder.s.kumar
>> 
>>
>>
>>
>>
>> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
>> wrote:
>>
>>> Also, traceback would be awesome
>>>
>>> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo <
>>> doronz...@gmail.com> wrote:
>>>
 Hi everyone,
 I have a problem with local web server and admin page.
 When I try to connect to admin page the web server of Django close
 without errors.
 Do you have any ideas?

 Thanks so much!

 --
 You received this message because you are subscribed to the Google
 Groups "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%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/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com
>> 
>> .
>>
> --
> Alessandro D' Oronzo.
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/CAJUwmOtoe5FAE7keW5n7-Z%3DSuj6xG-tVOLVZerJBfchaFc1BqA%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/CABOHK3Qeb%2Bu3DUYPGUx%2BgTTRWL_SO1JB1pTUPSu72qPCMeGT6g%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread Alessandro D' Oronzo
I have resolve it. The problem is version of python. Upgrade to 3.8 and I
have fix the problem

Il giorno lun 10 feb 2020 alle 12:28 maninder singh Kumar <
maninder.s.ku...@gmail.com> ha scritto:

> Couldn't be anything in the tracebacks !
>
>
> [image: --]
>
> Maninder Kumar
> [image: http://]about.me/maninder.s.kumar
> 
>
>
>
>
> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
> wrote:
>
>> Also, traceback would be awesome
>>
>> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo <
>> doronz...@gmail.com> wrote:
>>
>>> Hi everyone,
>>> I have a problem with local web server and admin page.
>>> When I try to connect to admin page the web server of Django close
>>> without errors.
>>> Do you have any ideas?
>>>
>>> Thanks so much!
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%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/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com
> 
> .
>
-- 
Alessandro D' Oronzo.

-- 
You received this message because you are subscribed to the Google Groups 
"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/CAJUwmOtoe5FAE7keW5n7-Z%3DSuj6xG-tVOLVZerJBfchaFc1BqA%40mail.gmail.com.


Re: not inserted registeration form.

2020-02-10 Thread maninder singh Kumar
Your views.py needs to be thus :

if request.method = POST:
"Do something"
else:
form = CreateUserForm()


[image: --]

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





On Fri, Feb 7, 2020 at 12:34 PM nrupesh08  wrote:

> hi,
> why not inserted registration. their is no error shows. plese tell how to
> see any error? once check my screeshots
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/e74c4439-9b17-49fd-a888-cd2abfbcdfd6%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/CABOHK3Q52PZRxpwDZ6m%3D%2BMeE83SOqLYr7g5MPR7jfre8g35wWQ%40mail.gmail.com.


Re: Key Error :access_token While requesting access token using windows Outlook api token url

2020-02-10 Thread maninder singh Kumar
Perhaps urls.py


[image: --]

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





On Sat, Feb 8, 2020 at 12:31 AM onlinejudge95 
wrote:

> Firstly, do not ever share any of your personal information over a mailing
> list. You just exposed your token and auth_code to the public domain.
>
> Secondly, you need to provide more context, you said an error came up but
> did not provide any insight into the code you are executing.
>
> On Fri, Feb 7, 2020 at 7:15 PM Aakash Verma <4k45hr0ck5...@gmail.com>
> wrote:
>
>> Below is the Traceback
>>
>> [07/Feb/2020 13:15:44] "GET
>> /tutorial/gettoken?code=M75b5bb08-f43a-3749-bcd6-bdc1595306d9 HTTP/1.1"
>> 301 0
>> Internal Server Error: /tutorial/gettoken/
>> Traceback (most recent call last):
>>   File
>> "C:\Users\lenovo\Desktop\myapi\v\lib\site-packages\django\core\handlers\exception.py"
>> , line 34, in inner
>> response = get_response(request)
>>   File
>> "C:\Users\lenovo\Desktop\myapi\v\lib\site-packages\django\core\handlers\base.py"
>> , line 115, in _get_response
>> response = self.process_exception_by_middleware(e, request)
>>   File
>> "C:\Users\lenovo\Desktop\myapi\v\lib\site-packages\django\core\handlers\base.py"
>> , line 113, in _get_response
>> response = wrapped_callback(request, *callback_args, **
>> callback_kwargs)
>>   File "C:\Users\lenovo\Desktop\myapi\python_tutorial\tutorial\views.py",
>> line 17, in gettoken
>> access_token = token['access_token']Below is th Trace back
>> KeyError: 'access_token'
>>
>>
>> I  was Following this tutorial
>> https://docs.microsoft.com/en-us/outlook/rest/python-tutorial  and had
>> an issue of acces_token , Can anyone  help me how to solve that ?
>> I have double checked for every line of my code and done with checking
>> redirect_uri also , It would be grateful of you if you can help .Thanks .
>> Checked StackOverFlow also ,it seems like there is no relevant answer for
>> this is the response error i am getting while requesting for acces_token
>>
>> auth_code
>>
>> 'M75b5bb08-f43a-3749-bcd6-bdc1595306d9'
>>
>> redirect_uri
>>
>> 'http://localhost:8000/tutorial/gettoken/'
>>
>> request
>>
>> > '/tutorial/gettoken/?code=M75b5bb08-f43a-3749-bcd6-bdc1595306d9'>
>>
>> token
>>
>> {'correlation_id': 'b7bbadc7-9031-419c-8e5e-2be3fddfbf22',
>>  'error': 'invalid_client',
>>  'error_codes': [50011],
>>  'error_description': 'AADSTS50011: The reply URL specified in the request '
>>   'does not match the reply URLs configured for the '
>>   "application: '38ae3415-e1fb-4829-8381-396fbeee2230'. "
>>   'More details: Reply address did not match because '
>>   'requested address did not have a trailing slash.\r\n'
>>   'Trace ID: 48237da8-3830-488c-bd49-e081435a6700\r\n'
>>   'Correlation ID: 
>> b7bbadc7-9031-419c-8e5e-2be3fddfbf22\r\n'
>>   'Timestamp: 2020-02-07 07:45:44Z',
>>  'error_uri': 'https://login.microsoftonline.com/error?code=50011',
>>  'timestamp': '2020-02-07 07:45:44Z',
>>  'trace_id': '48237da8-3830-488c-bd49-e081435a6700'}
>>
>>
>> But the thing is I have thoroughly checked my code and ithere seems no
>> error . I have been getting this error since last night ..Please HELP if
>> possible
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "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/d7e0ca1b-9c37-4c52-999a-548454caaf20%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/CAD%3DM5eQMEYNapt%2BzXgT%3DSEY2qqq9af_5bnZvAfBq0YdFAeNmXg%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/CABOHK3SNOKqrZcBJ596tvEZOjihNU79%3DPTKWDyiFwNg%2BYjrVqg%40mail.gmail.com.


Re: Regarding Summer internship opportunities

2020-02-10 Thread maninder singh Kumar
We could start a group of programmers joining to create separate modules.
Right now I am working on one module


[image: --]

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





On Mon, Feb 10, 2020 at 5:09 PM N Rupesh  wrote:

> i am interested to join. actually, present i am learning django. and some
> confusion in forms. so, please accept my invitation.
> thank you
>
>
> On Mon, Feb 10, 2020 at 5:03 PM maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
>> Hi ankit,
>>
>> I wonder if you would be interested in a django project involving :
>> 1.  AI CV makers
>> 2.  Other HR related products.
>>
>>
>> [image: --]
>>
>> Maninder Kumar
>> [image: http://]about.me/maninder.s.kumar
>> 
>>
>>
>>
>>
>> On Mon, Feb 10, 2020 at 2:43 AM Anupriya Nishad 
>> wrote:
>>
>>> My name is Anupriya Nishad and I’m a third-year B.Tech student at the
>>> Madan Mohan Malaviya University of Technology, Gorakhpur.
>>> I am extremely interested in doing an internship in the following fields-
>>> 1.Web Development using Django
>>> 2. Machine Learning
>>> 3.Python
>>>
>>> Please let me know if there is any internship opportunity.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "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/CAGcPrqSj4pg46b4VdHm7Lu7Z1gbQSNJ1G2q5R2B0kb3eSFcTMA%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/CABOHK3SJdGAMR7s_dKoixQjJBT5xGeiAoj_6_7gUqLFDeuZ-dQ%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/CAJTpUz%3DHbaspJEYgLYoLYZv%3DEFFnzVXVYwreXPSByDrfMwpEwg%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/CABOHK3TwxtwfgiiyzzKFtNbz2x78NJTpoNiSC1NELHuYV28pXw%40mail.gmail.com.


Re: Regarding Summer internship opportunities

2020-02-10 Thread N Rupesh
i am interested to join. actually, present i am learning django. and some
confusion in forms. so, please accept my invitation.
thank you


On Mon, Feb 10, 2020 at 5:03 PM maninder singh Kumar <
maninder.s.ku...@gmail.com> wrote:

> Hi ankit,
>
> I wonder if you would be interested in a django project involving :
> 1.  AI CV makers
> 2.  Other HR related products.
>
>
> [image: --]
>
> Maninder Kumar
> [image: http://]about.me/maninder.s.kumar
> 
>
>
>
>
> On Mon, Feb 10, 2020 at 2:43 AM Anupriya Nishad 
> wrote:
>
>> My name is Anupriya Nishad and I’m a third-year B.Tech student at the
>> Madan Mohan Malaviya University of Technology, Gorakhpur.
>> I am extremely interested in doing an internship in the following fields-
>> 1.Web Development using Django
>> 2. Machine Learning
>> 3.Python
>>
>> Please let me know if there is any internship opportunity.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "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/CAGcPrqSj4pg46b4VdHm7Lu7Z1gbQSNJ1G2q5R2B0kb3eSFcTMA%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/CABOHK3SJdGAMR7s_dKoixQjJBT5xGeiAoj_6_7gUqLFDeuZ-dQ%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/CAJTpUz%3DHbaspJEYgLYoLYZv%3DEFFnzVXVYwreXPSByDrfMwpEwg%40mail.gmail.com.


Re: Regarding Summer internship opportunities

2020-02-10 Thread maninder singh Kumar
Hi ankit,

I wonder if you would be interested in a django project involving :
1.  AI CV makers
2.  Other HR related products.


[image: --]

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





On Mon, Feb 10, 2020 at 2:43 AM Anupriya Nishad 
wrote:

> My name is Anupriya Nishad and I’m a third-year B.Tech student at the
> Madan Mohan Malaviya University of Technology, Gorakhpur.
> I am extremely interested in doing an internship in the following fields-
> 1.Web Development using Django
> 2. Machine Learning
> 3.Python
>
> Please let me know if there is any internship opportunity.
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/CAGcPrqSj4pg46b4VdHm7Lu7Z1gbQSNJ1G2q5R2B0kb3eSFcTMA%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/CABOHK3SJdGAMR7s_dKoixQjJBT5xGeiAoj_6_7gUqLFDeuZ-dQ%40mail.gmail.com.


Re: to add counter to an object of a table

2020-02-10 Thread maninder singh Kumar
You would obviously want a counter to use in the template.  And I presume a
for loop will not do ?


[image: --]

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





On Mon, Feb 10, 2020 at 2:33 PM Bruckner de Villiers <
bruckner.devilli...@gmail.com> wrote:

> Brajesh,
>
> I presume that you want the counter to auto-increment.  The gurus are
> recommending AutoField, but I can’t get it to work yet and the Django docs
> are a bit vague on the subect.
>
> Good luck.
>
>
>
> Bruckner de Villiers
>
> 083 625 1086
>
>
>
> *From: * on behalf of BRAJESH KUMAR <
> brajesh.cal...@gmail.com>
> *Reply to: *
> *Date: *Sunday, 09 February 2020 at 20:45
> *To: *"django-users@googlegroups.com" 
> *Subject: *to add counter to an object of a table
>
>
>
> Hi ,
>
> I have a product details db class with few details for each object of that
> class, need help to add a counter.
>
>
>
> Thanks,
>
> Brajesh
>
>
>
>
>
> Sent from Mail  for
> 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/5e405315.1c69fb81.6e215.a4ec%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/3467A551-64FD-4D20-9174-3C4667A1224B%40gmail.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/CABOHK3RmmiGw5aey4CAdvsoj8d2iqoj%3DED2RxZa8WD%3Dyq7mRpQ%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
Couldn't be anything in the tracebacks !


[image: --]

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





On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
wrote:

> Also, traceback would be awesome
>
> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo 
> wrote:
>
>> Hi everyone,
>> I have a problem with local web server and admin page.
>> When I try to connect to admin page the web server of Django close
>> without errors.
>> Do you have any ideas?
>>
>> Thanks so much!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%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/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
My guess is you have a problem with your browser !


[image: --]

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





On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo 
wrote:

> Hi everyone,
> I have a problem with local web server and admin page.
> When I try to connect to admin page the web server of Django close without
> errors.
> Do you have any ideas?
>
> Thanks so much!
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CABOHK3SXJV%2Bw-R70jf1PgiP%2BDztMTu%2BSxAOqTyrGVLtKE7CT8Q%40mail.gmail.com.


Re: to add counter to an object of a table

2020-02-10 Thread Bruckner de Villiers
Brajesh,

I presume that you want the counter to auto-increment.  The gurus are 
recommending AutoField, but I can’t get it to work yet and the Django docs are 
a bit vague on the subect.

Good luck.

 

Bruckner de Villiers

083 625 1086

 

From:  on behalf of BRAJESH KUMAR 

Reply to: 
Date: Sunday, 09 February 2020 at 20:45
To: "django-users@googlegroups.com" 
Subject: to add counter to an object of a table

 

Hi ,

I have a product details db class with few details for each object of that 
class, need help to add a counter.

 

Thanks,

Brajesh

 

 

Sent from Mail for 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/5e405315.1c69fb81.6e215.a4ec%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/3467A551-64FD-4D20-9174-3C4667A1224B%40gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread onlinejudge95
Also, traceback would be awesome

On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo 
wrote:

> Hi everyone,
> I have a problem with local web server and admin page.
> When I try to connect to admin page the web server of Django close without
> errors.
> Do you have any ideas?
>
> Thanks so much!
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.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/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%40mail.gmail.com.


Re: to add counter to an object of a table

2020-02-10 Thread onlinejudge95
Can you be more specific and provide more context about the same

On Mon, Feb 10, 2020 at 12:15 AM BRAJESH KUMAR 
wrote:

> Hi ,
>
> I have a product details db class with few details for each object of that
> class, need help to add a counter.
>
>
>
> Thanks,
>
> Brajesh
>
>
>
>
>
> Sent from Mail  for
> 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/5e405315.1c69fb81.6e215.a4ec%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/CAD%3DM5eR7FxGFfd4T7psq6rtTNoD8FyYjaeKoozUDeq52heWk%3DA%40mail.gmail.com.


Re: Adding a verbose_name to id field

2020-02-10 Thread Bruckner de Villiers
 

Thank you Jason.  However, I get the following error - AssertionError: Model 
bugs.Bugs can't have more than one auto-generated field.  Before adding the 
underlined bug_ticket field everything worked.  Is the error because the model 
already exists and I am adding the AutoField?

 

My models.py:

 

class Bugs(models.Model):

    FUNCTION_CHOICES = [

    ('C', 'Contacts'),

    ('E', 'Execs'),

    ('I', 'Sector/Industry'),

    ('G', 'General'),

    ('L', 'Clients'),

    ('O', 'Organisations'),

    ('P', 'Opportunities'),

    ('S', 'Account Type'),

    ('T', 'Training Material'),

    ('U', 'Currencies'),

    

]

    BUGTYPE_CHOICES = [

    ('B', 'Bug'),

    ('C', 'Comment'),

    ('S', 'Suggestion'),

    ]

    CLOSED_CHOICES = [

    ('N', 'No'),

    ('W', 'Work in Progress'),

    ('Y', 'Yes'),

    ]

    bug_ticket = models.AutoField(primary_key=False)

    bug_author = models.ForeignKey('auth.User', on_delete=models.CASCADE, 
verbose_name="Issue Author")

    bug_title = models.CharField(max_length=200, verbose_name="Brief 
Description:")

    bug_type = models.CharField(max_length=1, choices=BUGTYPE_CHOICES, 
verbose_name="Issue Type")

    bug_function = models.CharField(max_length=1, default="G", 
choices=FUNCTION_CHOICES, verbose_name="Function")

    bug_text = models.TextField()

    bug_status = models.CharField(max_length=1, default="N", 
choices=CLOSED_CHOICES, verbose_name="Issue addressed?")

    bug_created_date = models.DateTimeField(auto_now_add=True)

    bug_published_date = models.DateTimeField(blank=True, null=True)

    bug_update_date = models.DateTimeField(auto_now=True, verbose_name="Last 
Updated:")

 

    class Meta:

    verbose_name_plural="Bugs"

    

 

    def publish(self):

    self.published_date = timezone.now()

    self.save()

 

    def approve_comments(self):

    return self.comments.filter(approved_comment=True)

 

    def get_absolute_url(self):

    print(self.pk)

    return reverse("bugs/bug_detail",kwargs={'pk':self.pk})

 

    def __str__(self):

    return self.bug_title

 

 

Thanks for your attention to date.

 

Bruckner de Villiers

083 625 1086

 

From:  on behalf of Jason 
Reply to: 
Date: Monday, 10 February 2020 at 01:21
To: Django users 
Subject: Re: Adding a verbose_name to id field

 

You just need to use AutoField

-- 
You received this message because you are subscribed to the Google Groups 
"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/3f0ecd5b-9493-47dd-bf85-382e87c3efd9%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/5986FDFB-B039-465C-BA2A-04EF9816A190%40gmail.com.