from django.db import modelsfrom django.contrib.auth.models import User
# CORE APPLICATION# Create your models here.class Member(models.Model): user = models.OneToOneField(User) description = models.CharField(max_length=250) date_of_birth = models.DateField() location = models.CharField(max_length=100) gender = models.CharField(max_length=15)
class NewTable(models.Model): test = models.CharField(max_length=25)
What's the output of your makemigrations command? If those models are inside core/models.py and your app is inside installed apps in settings this should totally work. The default name for the table will be appname_modelname. Do you get an error when accessing the model? How are you checking the db for tables?
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6dff229e-34c3-4e4f-bb34-f95c43bec18f%40googlegroups.com.
0001_initial.py:
- Create model Member.
I've double checked:
Pgadmin3 is the bomb. Try that gui tool
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a3453e1-386d-44d6-99a9-6bbf3f0ff7be%40googlegroups.com.