Re: Unwelcome error!

2019-05-20 Thread Abu Yusuf
delete your existing db and try to create makemigrations and migrate again.
delete all the files in migrations folder also.
You saw this error because your migrations weren't done properly.

On Tue, May 21, 2019 at 4:21 AM 'Stephen Owen' via Django users <
django-users@googlegroups.com> wrote:

> Hi, all,
> I am creating a blog in Django, following lectures on You Tube.
> Everything was working fine and then an error occurred that I could
> fathom.  So I have now just started a new project.  One accessing
> localhost, I got the expected page but when I tried localhost I got this
> (attached.)
> Any diea what is happening?  The first project was fine up until I
> probably coded something in teh wrong place.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e6fb976d-51e0-4dce-b34a-79adcd43e887%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACNsr2-BQAS_m2L-fUkzOA%3Do%2BKOoyYQmc9XDypaVKCYWQxsE4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Customising django user model

2019-05-20 Thread Sipum Mishra
Thanks a lot.. @Joe @Mahes
It will help me a lot.

On Tue, 21 May, 2019, 8:14 AM mahesh boini, 
wrote:

> Extend AbstractUser class and give that name in settings file like
> AUTH_USER_MODEL=‘appname.modelname’
>
> On Tue, 21 May 2019 at 05:51, Joe Reitman  wrote:
>
>> You can customize the user table by extending AbstractUser and add the
>> fields you want to add (gender, phone)
>>
>> I have a custom user example adding age field:
>>
>> from django.db import models
>> from django.contrib.auth.models import AbstractUser
>>
>> class CustomUser(AbstractUser):
>>age = models.PositiveIntegerField(null=True, blank=True)
>>
>>
>> On Sunday, May 19, 2019 at 12:13:08 PM UTC-5, Sipum wrote:
>>>
>>> Hello Friends,
>>>
>>> I want to customise django default user table and which should consist
>>> of name,phone, email and gender.
>>> And after that when every time a user logs in, he/she should able to log
>>> in through an OTP to phone or email.
>>>
>>> can anyone guide me  What to do here.??
>>>
>>> Thanks.
>>> Sipum
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/24afe883-98b9-4bfc-a9fe-284c7a6cb771%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANR2ZjviAk_hCz%2BVum2kUa7vo6SJP8ZCuOsg0cH9uLncL_mDBQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Customising django user model

2019-05-20 Thread mahesh boini
Extend AbstractUser class and give that name in settings file like
AUTH_USER_MODEL=‘appname.modelname’

On Tue, 21 May 2019 at 05:51, Joe Reitman  wrote:

> You can customize the user table by extending AbstractUser and add the
> fields you want to add (gender, phone)
>
> I have a custom user example adding age field:
>
> from django.db import models
> from django.contrib.auth.models import AbstractUser
>
> class CustomUser(AbstractUser):
>age = models.PositiveIntegerField(null=True, blank=True)
>
>
> On Sunday, May 19, 2019 at 12:13:08 PM UTC-5, Sipum wrote:
>>
>> Hello Friends,
>>
>> I want to customise django default user table and which should consist of
>> name,phone, email and gender.
>> And after that when every time a user logs in, he/she should able to log
>> in through an OTP to phone or email.
>>
>> can anyone guide me  What to do here.??
>>
>> Thanks.
>> Sipum
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/24afe883-98b9-4bfc-a9fe-284c7a6cb771%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Unwelcome error!

2019-05-20 Thread mahesh boini
Migrate your changes to db
django_session is default django table
In your case django looking for table but the table is not exist in the db.

On Tue, 21 May 2019 at 05:56, Joe Reitman  wrote:

> You need to run makemigrations and migrate to create the tables django
> uses.
>
> On Monday, May 20, 2019 at 5:22:08 PM UTC-5, Stephen Owen wrote:
>>
>> Hi, all,
>> I am creating a blog in Django, following lectures on You Tube.
>> Everything was working fine and then an error occurred that I could
>> fathom.  So I have now just started a new project.  One accessing
>> localhost, I got the expected page but when I tried localhost I got this
>> (attached.)
>> Any diea what is happening?  The first project was fine up until I
>> probably coded something in teh wrong place.
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3357f1ec-1014-4894-8cbb-869e7455eb8f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: No puedo generar qr en django

2019-05-20 Thread carlos
este grupo es para gente de habla ingles, busca el grupo de habla español,
pero bueno ya probastes esta app
https://github.com/dprog-philippe-docourt/django-qr-code

On Mon, May 20, 2019 at 4:21 PM osman alexander samayoa ramirez <
oasamayo...@gmail.com> wrote:

> muy buenas quisiera que alquien me pudiera ayudar para poder generar qr a
> mis empleado y que sea unico para cada uno
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1a432774-6b38-409a-bab2-2981ae5bf356%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

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


Re: Unwelcome error!

2019-05-20 Thread Joe Reitman
You need to run makemigrations and migrate to create the tables django 
uses. 

On Monday, May 20, 2019 at 5:22:08 PM UTC-5, Stephen Owen wrote:
>
> Hi, all,
> I am creating a blog in Django, following lectures on You Tube.  
> Everything was working fine and then an error occurred that I could 
> fathom.  So I have now just started a new project.  One accessing 
> localhost, I got the expected page but when I tried localhost I got this 
> (attached.)
> Any diea what is happening?  The first project was fine up until I 
> probably coded something in teh wrong place.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3357f1ec-1014-4894-8cbb-869e7455eb8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Customising django user model

2019-05-20 Thread Joe Reitman
You can customize the user table by extending AbstractUser and add the 
fields you want to add (gender, phone)

I have a custom user example adding age field:

from django.db import models
from django.contrib.auth.models import AbstractUser

class CustomUser(AbstractUser):
   age = models.PositiveIntegerField(null=True, blank=True) 


On Sunday, May 19, 2019 at 12:13:08 PM UTC-5, Sipum wrote:
>
> Hello Friends,
>
> I want to customise django default user table and which should consist of 
> name,phone, email and gender.
> And after that when every time a user logs in, he/she should able to log 
> in through an OTP to phone or email.
>
> can anyone guide me  What to do here.??
>
> Thanks.
> Sipum
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/24afe883-98b9-4bfc-a9fe-284c7a6cb771%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Migrations File too Large preventing Migrate

2019-05-20 Thread Joe Reitman
Can you show us the model your trying to migrate?

On Sunday, May 19, 2019 at 9:11:47 PM UTC-5, Yoo wrote:
>
> In Django 2.2, I run makemigrations then migrate. I wait approx. 5-7 
> minutes and then I get "Fatal Python error: Cannot recover from stack 
> overflow." "Current thread 0x0002094 (most recent call first):" yada yada 
> "File "manage.py", line 17 in main "File manage.py line 21 in "
>
>
> End. I check the migrations file and the file is 4000 lines of code large. 
> What do I do in this case? Should I make my own migration files, and if so, 
> how?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ea0dbe7a-89fb-4ab2-8089-9b5fb9b96b07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unwelcome error!

2019-05-20 Thread osman alexander samayoa ramirez
creo que creaste alguna tabla que pueda que no este colocada en tus apps  o
que no esta migrada en la base de datos

El lun., 20 may. 2019 a las 16:21, 'Stephen Owen' via Django users (<
django-users@googlegroups.com>) escribió:

> Hi, all,
> I am creating a blog in Django, following lectures on You Tube.
> Everything was working fine and then an error occurred that I could
> fathom.  So I have now just started a new project.  One accessing
> localhost, I got the expected page but when I tried localhost I got this
> (attached.)
> Any diea what is happening?  The first project was fine up until I
> probably coded something in teh wrong place.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e6fb976d-51e0-4dce-b34a-79adcd43e887%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABsO1R%2B3XzDgv-GB8-ZEk0t0puDm%3DV1jb7Ay7-RWe400o4fxyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


No puedo generar qr en django

2019-05-20 Thread osman alexander samayoa ramirez
muy buenas quisiera que alquien me pudiera ayudar para poder generar qr a 
mis empleado y que sea unico para cada uno 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1a432774-6b38-409a-bab2-2981ae5bf356%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unwelcome error!

2019-05-20 Thread 'Stephen Owen' via Django users
Hi, all,
I am creating a blog in Django, following lectures on You Tube.  Everything 
was working fine and then an error occurred that I could fathom.  So I have 
now just started a new project.  One accessing localhost, I got the 
expected page but when I tried localhost I got this (attached.)
Any diea what is happening?  The first project was fine up until I probably 
coded something in teh wrong place.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e6fb976d-51e0-4dce-b34a-79adcd43e887%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Customising django user model

2019-05-20 Thread Sipum Mishra
Ok thanks for reply.

On Mon, 20 May, 2019, 5:36 PM Rafael E. Ferrero, 
wrote:

> Hello, you must to extend User model... search on google with this
> aproach!!
>
> Cheers!
>
> Rafael E. Ferrero
>
>
> El dom., 19 may. 2019 a las 14:13, Sipum () escribió:
>
>> Hello Friends,
>>
>> I want to customise django default user table and which should consist of
>> name,phone, email and gender.
>> And after that when every time a user logs in, he/she should able to log
>> in through an OTP to phone or email.
>>
>> can anyone guide me  What to do here.??
>>
>> Thanks.
>> Sipum
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/9b92fdc5-8f36-45e7-809e-b32d4ab41687%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJJc_8XYD7zGAOmaezmS_sGoDr5R0gz1Y44y6ED-sn-dxzj02A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Django background scheduled app

2019-05-20 Thread Oguz kagan Olmez
django-background-tasks  didn't work. i don't know what is the problem. i
was trying to make it work for 2 days and i give up now.  i will consider
 django-rq  thank you :)

Jani Tiainen , 20 May 2019 Pzt, 19:07 tarihinde şunu
yazdı:

> Hi,
>
> There are also other alternatives for background processing than celery.
>
> Like django-rq or django-background-tasks.
>
>
> ma 20. toukok. 2019 klo 16.14 Chetan Ganji 
> kirjoitti:
>
>> celery is what you need for this. It is very simple. Just stick to it,
>> find some examples on youtube for celery, and you should get it.
>>
>> Regards,
>> Chetan Ganji
>> +91-900-483-4183
>> ganji.che...@gmail.com
>> http://ryucoder.in
>>
>>
>> On Mon, May 20, 2019 at 5:42 PM Oguz kagan Olmez 
>> wrote:
>>
>>> i just started django, python and back-end. i want to ask you a question
>>> for my first project. i have functions that creating json file. After that
>>> i am showing that json file on my webpage. But that functions in view take
>>> a lot of time and my webpage doesn't open for like 20-30 seconds. Actually
>>> my functions should work hourly and my web page doesn't depends to it.
>>> something like celery is too hard and i couldn't handle it. I tried cron
>>> and it gives errors on windows. thanks
>>> (Django Background Tasks is my last option. but i am really tired of
>>> this. I am working for days now just 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/04a993fd-dbb5-48da-8c22-f35369c3fbd5%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMKMUjs%2B1pRM-BPMH9XKA9aSqTGRn2ycxXmQxkFz7g5OzwoeNw%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHn91oeKpcXTRFxT%3D5i9tktWx0VjR17%2BB0dgvTE%2B-BO%2BgTcHDg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANG-Zd6_VJcbosm%2B8ch9q0SX0-0_B%3DhrpSEOxALTdvRQu_V2Cg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django background scheduled app

2019-05-20 Thread Jani Tiainen
Hi,

There are also other alternatives for background processing than celery.

Like django-rq or django-background-tasks.


ma 20. toukok. 2019 klo 16.14 Chetan Ganji 
kirjoitti:

> celery is what you need for this. It is very simple. Just stick to it,
> find some examples on youtube for celery, and you should get it.
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Mon, May 20, 2019 at 5:42 PM Oguz kagan Olmez 
> wrote:
>
>> i just started django, python and back-end. i want to ask you a question
>> for my first project. i have functions that creating json file. After that
>> i am showing that json file on my webpage. But that functions in view take
>> a lot of time and my webpage doesn't open for like 20-30 seconds. Actually
>> my functions should work hourly and my web page doesn't depends to it.
>> something like celery is too hard and i couldn't handle it. I tried cron
>> and it gives errors on windows. thanks
>> (Django Background Tasks is my last option. but i am really tired of
>> this. I am working for days now just 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/04a993fd-dbb5-48da-8c22-f35369c3fbd5%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMKMUjs%2B1pRM-BPMH9XKA9aSqTGRn2ycxXmQxkFz7g5OzwoeNw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91oeKpcXTRFxT%3D5i9tktWx0VjR17%2BB0dgvTE%2B-BO%2BgTcHDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django background scheduled app

2019-05-20 Thread Oguz kagan Olmez
i guess it's my only option now. thx

20 Mayıs 2019 Pazartesi 16:14:26 UTC+3 tarihinde Chetan Ganji yazdı:
>
> celery is what you need for this. It is very simple. Just stick to it, 
> find some examples on youtube for celery, and you should get it.
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji...@gmail.com 
> http://ryucoder.in
>
>
> On Mon, May 20, 2019 at 5:42 PM Oguz kagan Olmez  > wrote:
>
>> i just started django, python and back-end. i want to ask you a question 
>> for my first project. i have functions that creating json file. After that 
>> i am showing that json file on my webpage. But that functions in view take 
>> a lot of time and my webpage doesn't open for like 20-30 seconds. Actually 
>> my functions should work hourly and my web page doesn't depends to it. 
>> something like celery is too hard and i couldn't handle it. I tried cron 
>> and it gives errors on windows. thanks 
>> (Django Background Tasks is my last option. but i am really tired of 
>> this. I am working for days now just 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/04a993fd-dbb5-48da-8c22-f35369c3fbd5%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5ea669e8-6260-4536-b6c0-fb654a55ae9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Query on 2 non related models

2019-05-20 Thread Rafael E. Ferrero
Hello Ivan... you say Unrelated but I see you have a relation with
VendorGroup... why don't use a ForeignKey?... any way you can use the pipe
charater " | " to concatenate two querysets.

https://simpleisbetterthancomplex.com/tips/2016/06/20/django-tip-5-how-to-merge-querysets.html


Cheers!

Rafael E. Ferrero


El lun., 20 may. 2019 a las 9:12, Ivan Martić ()
escribió:

> Hi guys, hope you can help me.
> I have 2 models and i want to make a count query on them. I need a count
> on how many articles i have in every category.
>
> Models:
> class Vendors(models.Model):
> id = models.AutoField(db_column='id', primary_key=True, blank=False,
> unique=True)
> name = models.CharField(db_column='name', max_length=150, blank=True,
> null=True)
> groupid = models.IntegerField(db_column='groupid', blank=True,
> null=True)
>
>
> class VendorGroup(models.Model):
> id = models.AutoField(db_column='ID', primary_key=True, null=False,
> max_length=255, blank=True)
> vendor_group = models.CharField(db_column='Vendor Group',
> max_length=255, blank=True, null=True)
>
> view:
> def vendorsgrouping_view(request):
> list_vendor = VendorGroup.objects.all().order_by('vendor_group')
>
> context = {
> 'lista_vendora':lista_vendora,
> }
> return render(request, "templates/vendorgroup.html", context)
>
> I have list of vendors listed in template:
> {% for item in lista_vendora %}
> {{ item.vendor_group }}
> {% endfor %}
>
> Prefetch, annotate, select related dont work since they are not connected.
> I know it is easier to give foreign key to fields but what about this?
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f0413341-91b2-4308-afd5-ae486b09a71e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJJc_8XZ00Sw%2B-o%3D%2B7xY7cHP6wL_TqMMeHmR7RSC5k71hvvRfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: FCM notification using Django Rest Framework

2019-05-20 Thread Andréas Kühne
You could probably check if the plugin has an older version written for
python 2. Otherwise you will need to rewrite it for python 2. But I think
the best way to solve this is to upgrade to Python and not use legacy
python. The end of life of legacy Python is 1/1-2020 - so your application
will only be usable for 7 more months After that there will be no
security updates for legacy Python.

Regards,

Andréas


Den lör 18 maj 2019 kl 07:09 skrev Mr. Shivprasad <
shivkhandapure...@gmail.com>:

> Hii
>  This is shivprasad, Im working on Django !.8 And Python 2.7 I want to
> built django FCM Notification Any One have idea About this ? Becouse I get
> Documents ON django fcm but this is Compatible for on python 3.4 and above,
> And Django 1.11
>
>  https://django-fcm.readthedocs.io/en/latest/quickstart.html
>
> How I built using Python 2.7 and django 1.8 ?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFR1ACQYH7n_75A-iXCeVEB2zX8kxJou7_AREhp5VubrQEn7Yw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Django-MQTT

2019-05-20 Thread Sabuhi Shukurov
Hello Python Community!
I would like to to create a connection between the device(Arduino) and web 
server by using the MQTT protocol. As tools, we will use RabbitMQ, Django, 
and  Django-channels for web socket. The device should communicate to the 
server by means of message broker in order to pass data to interface and 
should be possible to get back subscription by in case of any change on the 
interface.
I know them theoretically and cannot apply practically to Django.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53b73716-5aeb-4b86-9240-5af2a0be4275%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django migrations no migrations to apply

2019-05-20 Thread Chetan Ganji
Hi Harish,

Did you commit your changes to git/svn repo after changing the models?
Did they fetch the latest changes from the repo?

Is your db file also in repo?
If yes, there would a table inside the database db.sqlite3, which stores
the information about which migrations were executed.
You have to delete the entry for the migration in question.

Cheers!


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Mon, May 20, 2019 at 5:42 PM Harish U Warrier  wrote:

>
>
> In django models i added a new field
>
> in my system its working fine.
>
> but in other systems its showing  no migrations to apply
>
> how to solve it without effecting data?
>
> i tried deleting contents of migrations folder except __init__.py
>
> enter code here
>
> but still same error
>
> what is real method to do migrations while working in a team, live test
> servers etc?
>
> my version is 2.2
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/00ec6e6a-73f1-4d95-9ab6-2565ae29ff40%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Django background scheduled app

2019-05-20 Thread Chetan Ganji
celery is what you need for this. It is very simple. Just stick to it, find
some examples on youtube for celery, and you should get it.

Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Mon, May 20, 2019 at 5:42 PM Oguz kagan Olmez 
wrote:

> i just started django, python and back-end. i want to ask you a question
> for my first project. i have functions that creating json file. After that
> i am showing that json file on my webpage. But that functions in view take
> a lot of time and my webpage doesn't open for like 20-30 seconds. Actually
> my functions should work hourly and my web page doesn't depends to it.
> something like celery is too hard and i couldn't handle it. I tried cron
> and it gives errors on windows. thanks
> (Django Background Tasks is my last option. but i am really tired of
> this. I am working for days now just 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/04a993fd-dbb5-48da-8c22-f35369c3fbd5%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: LookupError: No installed app with label 'admin'.

2019-05-20 Thread Serdar Emirci
Hi Bredliy,
Run that command.
sudo pip install sqlparse




Serdar EMIRCI


This is a test message , 20 May 2019 Pzt, 05:11
tarihinde şunu yazdı:

> Hi,
>
>
>
> I am new to django and am trying out the tutorial. Get the following error:
>
>1. Create a virtual environment using anaconda
>2. Activate the virtual environment
>3. Create the project
>4. Get the following error when trying to start the server:
>
>
>
> Directory of C:\Users\bradl\Documents\web sites\poll
>
>
>
> 2019/05/19  02:25 PM  .
>
> 2019/05/19  02:25 PM  ..
>
> 2019/05/19  02:25 PM   645 manage.py
>
> 2019/05/19  02:26 PM  poll
>
>1 File(s)645 bytes
>
>3 Dir(s)  200 980 545 536 bytes free
>
>
>
> (pollapp) C:\Users\bradl\Documents\web sites\poll>python manage.py
> runserver
>
> Watching for file changes with StatReloader
>
> Exception in thread Thread-1:
>
> Traceback (most recent call last):
>
>   File "C:\Users\bradl\Anaconda3\envs\pollapp\lib\threading.py", line 917,
> in _bootstrap_inner
>
> self.run()
>
>   File "C:\Users\bradl\Anaconda3\envs\pollapp\lib\threading.py", line 865,
> in run
>
> self._target(*self._args, **self._kwargs)
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\utils\autoreload.py",
> line 54, in wrapper
>
> fn(*args, **kwargs)
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\core\management\commands\runserver.py",
> line 109, in inner_run
>
> autoreload.raise_last_exception()
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\utils\autoreload.py",
> line 77, in raise_last_exception
>
> raise _exception[0](_exception[1]).with_traceback(_exception[2])
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\utils\autoreload.py",
> line 54, in wrapper
>
> fn(*args, **kwargs)
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\__init__.py",
> line 24, in setup
>
> apps.populate(settings.INSTALLED_APPS)
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\apps\registry.py",
> line 114, in populate
>
> app_config.import_models()
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\apps\config.py",
> line 211, in import_models
>
> self.models_module = import_module(models_module_name)
>
>   File "C:\Users\bradl\Anaconda3\envs\pollapp\lib\importlib\__init__.py",
> line 127, in import_module
>
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1006, in _gcd_import
>
>   File "", line 983, in _find_and_load
>
>   File "", line 967, in
> _find_and_load_unlocked
>
>   File "", line 677, in _load_unlocked
>
>   File "", line 728, in exec_module
>
>   File "", line 219, in
> _call_with_frames_removed
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\contrib\auth\models.py",
> line 2, in 
>
> from django.contrib.auth.base_user import AbstractBaseUser,
> BaseUserManager
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\contrib\auth\base_user.py",
> line 47, in 
>
> class AbstractBaseUser(models.Model):
>
>  File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\models\base.py",
> line 117, in __new__
>
> new_class.add_to_class('_meta', Options(meta, app_label))
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\models\base.py",
> line 321, in add_to_class
>
> value.contribute_to_class(cls, name)
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\models\options.py",
> line 204, in contribute_to_class
>
> self.db_table = truncate_name(self.db_table,
> connection.ops.max_name_length())
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\__init__.py",
> line 28, in __getattr__
>
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\utils.py",
> line 201, in __getitem__
>
> backend = load_backend(db['ENGINE'])
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\utils.py",
> line 110, in load_backend
>
> return import_module('%s.base' % backend_name)
>
>   File "C:\Users\bradl\Anaconda3\envs\pollapp\lib\importlib\__init__.py",
> line 127, in import_module
>
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\backends\sqlite3\base.py",
> line 28, in 
>
> from .introspection import DatabaseIntrospection#
> isort:skip
>
>   File
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\backends\sqlite3\introspection.py",
> line 4, in 
>
> import sqlparse
>
> ModuleNotFoundError: No module named 'sqlparse'
>
>
>
> Traceback (most recent call last):
>
>   File
> 

Query on 2 non related models

2019-05-20 Thread Ivan Martić
Hi guys, hope you can help me. 
I have 2 models and i want to make a count query on them. I need a count on 
how many articles i have in every category.

Models:
class Vendors(models.Model):
id = models.AutoField(db_column='id', primary_key=True, blank=False, 
unique=True)
name = models.CharField(db_column='name', max_length=150, blank=True, 
null=True)
groupid = models.IntegerField(db_column='groupid', blank=True, 
null=True)


class VendorGroup(models.Model):
id = models.AutoField(db_column='ID', primary_key=True, null=False, 
max_length=255, blank=True)
vendor_group = models.CharField(db_column='Vendor Group', 
max_length=255, blank=True, null=True)

view:
def vendorsgrouping_view(request):
list_vendor = VendorGroup.objects.all().order_by('vendor_group')

context = {
'lista_vendora':lista_vendora, 
}
return render(request, "templates/vendorgroup.html", context)

I have list of vendors listed in template:
{% for item in lista_vendora %}
{{ item.vendor_group }}
{% endfor %}

Prefetch, annotate, select related dont work since they are not connected. 
I know it is easier to give foreign key to fields but what about this?

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f0413341-91b2-4308-afd5-ae486b09a71e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 'WSGIRequest' object has no attribute '

2019-05-20 Thread Abu Yusuf
Where is your manage.py file?

On Mon, May 20, 2019 at 11:57 AM sagar ninave  wrote:

>  AttributeError at /admin/  'WSGIRequest' object has no attribute 'user'
> Request Method: GET Request URL: http://127.0.0.1:8000/admin/
> Django Version: 2.2 Exception Type: AttributeError Exception Value:
>   'WSGIRequest' object has no attribute '
>
>
>
>
> i am getting this error please help me
> i have attached zipfile of my project
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eee17c55-c0ec-408d-bd54-10539e93cb9b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Django background scheduled app

2019-05-20 Thread Oguz kagan Olmez
i just started django, python and back-end. i want to ask you a question 
for my first project. i have functions that creating json file. After that 
i am showing that json file on my webpage. But that functions in view take 
a lot of time and my webpage doesn't open for like 20-30 seconds. Actually 
my functions should work hourly and my web page doesn't depends to it. 
something like celery is too hard and i couldn't handle it. I tried cron 
and it gives errors on windows. thanks 
(Django Background Tasks is my last option. but i am really tired of this. 
I am working for days now just 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/04a993fd-dbb5-48da-8c22-f35369c3fbd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django migrations no migrations to apply

2019-05-20 Thread Harish U Warrier


In django models i added a new field

in my system its working fine.

but in other systems its showing  no migrations to apply

how to solve it without effecting data?

i tried deleting contents of migrations folder except __init__.py

enter code here

but still same error

what is real method to do migrations while working in a team, live test 
servers etc?

my version is 2.2

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/00ec6e6a-73f1-4d95-9ab6-2565ae29ff40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Customising django user model

2019-05-20 Thread Rafael E. Ferrero
Hello, you must to extend User model... search on google with this
aproach!!

Cheers!

Rafael E. Ferrero


El dom., 19 may. 2019 a las 14:13, Sipum () escribió:

> Hello Friends,
>
> I want to customise django default user table and which should consist of
> name,phone, email and gender.
> And after that when every time a user logs in, he/she should able to log
> in through an OTP to phone or email.
>
> can anyone guide me  What to do here.??
>
> Thanks.
> Sipum
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9b92fdc5-8f36-45e7-809e-b32d4ab41687%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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