mention your python version in python <version> manage.py run server

On Fri, Aug 17, 2018 at 9:54 AM, Vikrant Gupta <vikrantgupta.v...@gmail.com>
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 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/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 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/CABuXbh8D73QUVoMzKy7aXU9hnM2ehaGqU_nGnWD3fM7oubRS_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to