Error at OneToOneField in models while creating new models class

2018-09-22 Thread Srinivas Gadi
HI All, I am facing below error while creating a new model class. the error pop up only at this line "user = models.OneToOneField(User)" *"E1120:No value for argument 'on_delete' in constructor call"* from django.db import models from django.contrib.auth.models import User class userProfile(mode

Re: Error at OneToOneField in models while creating new models class

2018-09-22 Thread Srinivas Gadi
Adding more and complete details: I am facing below error while creating a new model class. the error pops up only at this line "user = models.OneToOneField(User)" *"E1120:No value for argument 'on_delete' in constructor call"* section/models.py from django.db import modelsfrom django.contrib.aut

Re: Error at OneToOneField in models while creating new models class

2018-09-22 Thread Matthew Pava
Did you try running your migrations? Get Outlook for Android On Sat, Sep 22, 2018 at 5:07 AM -0500, "Srinivas Gadi" mailto:srini@gmail.com>> wrote: Adding more and complete details: I am facing below error while creating a new model class. the error pops up only at

Create tables for models in your database

2018-09-22 Thread talkdkg
Hi getting an error while run this code... python manage.py makemigrations blog Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/home/dheerajkumar/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 36

Re: Create tables for models in your database

2018-09-22 Thread Kasper Laudrup
Hi, On 22/09/2018 14.21, talk...@gmail.com wrote: getting an error while run this code... "/home/dheerajkumar/djangogirls/myvenv/myproject/blog/models.py", line 6     author = models.Foreignkey('auth.User', on_delete=models.CASCADE) ^ IndentationError:

Re: Create tables for models in your database

2018-09-22 Thread Dheeraj Kumar
Thanks. I'm going to install pycharm now. On Sat, 22 Sep 2018 at 18:03, Kasper Laudrup wrote: > Hi, > > On 22/09/2018 14.21, talk...@gmail.com wrote: > > > > getting an error while run this code... > > > > "/home/dheerajkumar/djangogirls/myvenv/myproject/blog/models.py", > > line 6 >

Django Project Update on Server

2018-09-22 Thread Parag Sharma
Hello, I am working on a django project. Recently I have added TinyMCE Html Text editor in my project. It working perfectly on my local server. Then I update code to live server using from DigitalOcean, install require libraries then firsly restart the Guicron but the changes is not visible on

Re: Django Project Update on Server

2018-09-22 Thread gilwell muhati
Hello Parag, Have a look at this https://docs.djangoproject.com/en/2.1/ref/contrib/staticfiles/ Did you run collectstaticfiles? If you made any changes to the models file,please makemigrations and migrate them. *Regards,Gilwell Muhati | +254 710 739 116 | * *~~“The mind is its own place and

Re: Error at OneToOneField in models while creating new models class

2018-09-22 Thread Srinivas Gadi
Yes, provided the migrations out put in the second mail On Sat, 22 Sep 2018, 17:11 Matthew Pava, wrote: > Did you try running your migrations? > > Get Outlook for Android > > > > > On Sat, Sep 22, 2018 at 5:07 AM -0500, "Srinivas Gadi" < > srini@gmail.com> wrote: > >