Unrecognizable error

15 views
Skip to first unread message

Vikrant Gupta

unread,
Aug 17, 2018, 12:54:25 AM8/17/18
to Django users
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()
Screen Shot 2018-08-17 at 10.24.03 AM.png

mazz ahmed

unread,
Aug 17, 2018, 2:22:15 AM8/17/18
to django...@googlegroups.com
mention your python version in python <version> manage.py run server

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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.
For more options, visit https://groups.google.com/d/optout.

Vikrant Gupta

unread,
Aug 17, 2018, 2:25:49 AM8/17/18
to django...@googlegroups.com
I tried it too… But It didn’t work.showing another error. It’s shown in screenshot

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

mazz ahmed

unread,
Aug 17, 2018, 2:28:07 AM8/17/18
to django...@googlegroups.com
this is an error in your install apps
naming the app should be unique

On Fri, Aug 17, 2018 at 11:25 AM, Vikrant Gupta <vikrantg...@gmail.com> wrote:
I tried it too… But It didn’t work.showing another error. It’s shown in screenshot
On Aug 17, 2018, at 11:51 AM, mazz ahmed <mazza...@gmail.com> wrote:

mention your python version in python <version> manage.py run server
On Fri, Aug 17, 2018 at 9:54 AM, Vikrant Gupta <vikrantgupta.vg96@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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.

-- 
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Vikrant Gupta

unread,
Aug 17, 2018, 2:29:31 AM8/17/18
to django...@googlegroups.com
For example ?

On Aug 17, 2018, at 11:57 AM, mazz ahmed <mazza...@gmail.com> wrote:

this is an error in your install apps
naming the app should be unique
On Fri, Aug 17, 2018 at 11:25 AM, Vikrant Gupta <vikrantg...@gmail.com> wrote:
I tried it too… But It didn’t work.showing another error. It’s shown in screenshot<Screen Shot 2018-08-17 at 11.54.20 AM.png>
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

mazz ahmed

unread,
Aug 17, 2018, 2:35:03 AM8/17/18
to django...@googlegroups.com
name of app should in small letters

For example ?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Gerald Brown

unread,
Aug 17, 2018, 6:35:57 AM8/17/18
to django...@googlegroups.com

I used to get this error if I was NOT in my virtual environment.

--
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...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages