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: >

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

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

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,

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

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 >

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 =

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

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

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

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.)

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

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

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,

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 >

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!

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

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

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

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

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.

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 =

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

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.

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

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