I used to get this error if I was NOT in my virtual environment.
On Friday, 17 August, 2018 12:54 PM, Vikrant Gupta wrote:
I'm trying to migrate two Classes in Django using Pycharm. The error
is as follow
python manage.py makemigrations --name initial polls
File "manage.py", line 16
)from exc
^
SyntaxError: invalid syntax
How to solve this error?
and classes created are...
class student(models.Model):
name=models.CharField('Student',max_length=50,primary_key=True)
age=models.PositiveIntegerField()
class parent(models.Model):
name=models.CharField('Parent',max_length=50)
contact=models.IntegerField()
--
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 [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
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/87643a85-d1f6-4265-b67f-c7bab5239140%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/87643a85-d1f6-4265-b67f-c7bab5239140%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 [email protected].
To post to this group, send email to [email protected].
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/9ca2de9b-17f7-d174-5956-9f38224a50e7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.