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...@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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABuXbh8D73QUVoMzKy7aXU9hnM2ehaGqU_nGnWD3fM7oubRS_g%40mail.gmail.com.
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
I'm trying to migrate two Classes in Django using Pycharm. The error is as followpython manage.py makemigrations --name initial pollsFile "manage.py", line 16)from exc^SyntaxError: invalid syntaxHow 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.
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.
--
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 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.
--
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/A0E89597-856D-4D67-A24B-AE493F98C7F7%40gmail.com.
On Aug 17, 2018, at 11:57 AM, mazz ahmed <mazza...@gmail.com> wrote:
this is an error in your install appsnaming 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABuXbh_BHSH86Mzt9RksZkTNwQrm--WnZ%3D6SFmbDYx76GtuA-w%40mail.gmail.com.
For example ?
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABuXbh_BHSH86Mzt9RksZkTNwQrm--WnZ%3D6SFmbDYx76GtuA-w%40mail.gmail.com.
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+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/CD353808-4F04-492A-8F70-226C6522BF0E%40gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/87643a85-d1f6-4265-b67f-c7bab5239140%40googlegroups.com.