First of all what you did was wrong. You would have kept a Django 2.2
project in its own environment and installed the new Django version in a
new environment. Another thing I would advice you is to use the latest
version of python which is 3.8.4 I think with the latest version of Django.
It works
from django.db import models
from django.contrib.auth.models import User
class Customer(models.Model):
user=models.OneToOneField(User,null=True,on_delete= models.CASCADE)
name=models.CharField(max_length=200,null=True)
phone=models.CharField(max_length=200,null=True)
email=models.C
from django.db import models
from django.contrib.auth.models import User
class Customer(models.Model):
user=models.OneToOneField(User,null=True,on_delete= models.CASCADE)
name=models.CharField(max_length=200,null=True)
phone=models.CharField(max_length=200,null=True)
email=models.C
Send your models.py file
On Fri, 31 Jul 2020, 8:09 am RANGA BHARATH JINKA,
wrote:
> Hi convert it into string while displaying it in models __str__.
> Or use f-strings. It is easy. All the best 👍
>
> On Thu, 30 Jul 2020, 8:29 pm ROHINI PUNDE, wrote:
>
>> I have error while updating the informat
Hi convert it into string while displaying it in models __str__.
Or use f-strings. It is easy. All the best 👍
On Thu, 30 Jul 2020, 8:29 pm ROHINI PUNDE, wrote:
> I have error while updating the information,so many trials I cant solve
> this problem,so please help me for this
>
>
> On Thu, Jul 30
Thanks Thierray
I made change in Line 142 by removing removing default Parameter and its
working fine for me but the question is
is Django 3.0.8 compatible with Python 3.6? If yes we wouldn't have to make
a change in Django package like i made below?
140 try:
141 #resolved_pat
It seems to me as if there is a mismatch of some in-built functionality. Can't
say for exact though. Did you follow the migration rules from one version to
another ?
Regards,
Amitesh
On Thursday, 30 July, 2020, 03:22:51 pm IST, Thierry DECKER
wrote:
The resolve() method dose not h
Also try using a virtual environment.
On Thu, Jul 30, 2020 at 10:52 AM Haris Ahmad wrote:
> Hi there,
> Resolved_path =pathlib.path.resolve(strict=True)
>
> Use this, might work..
>
> On Thu, 30 Jul 2020, 2:25 PM Mira, wrote:
>
>> Hi All,
>> I recently upgraded Django from 2.2 to 3 on my MacOS1
The resolve() method dose not have the strict parameter anymore.
Regards
Le jeu. 30 juil. 2020 à 11:25, Mira a écrit :
> Hi All,
> I recently upgraded Django from 2.2 to 3 on my MacOS10.13.
> I am using Python 3.6 and My Application was working fine with Django 2.2
> but now i am getting below
Hi there,
Resolved_path =pathlib.path.resolve(strict=True)
Use this, might work..
On Thu, 30 Jul 2020, 2:25 PM Mira, wrote:
> Hi All,
> I recently upgraded Django from 2.2 to 3 on my MacOS10.13.
> I am using Python 3.6 and My Application was working fine with Django 2.2
> but now i am getting b
Hi All,
I recently upgraded Django from 2.2 to 3 on my MacOS10.13.
I am using Python 3.6 and My Application was working fine with Django 2.2
but now i am getting below error.
Any help related with this topic would be greatly appreciated.
$>python3 manage.py runserver
Watching for file changes wi
11 matches
Mail list logo