I have a Django project on CentOS VPS.
I created some models and debugged them so that they would check and not give errors. I have them in the "models" folder in myapp and added each model to the initialization file in this directory, for example:
from import category
I added the application to settings.py INSTALLED_APPS
and ran:
Python manage.py syncdb
It seemed to work fine and added all the tables except those that were for my application.
Then I set South and added that to INSTALLED_APPS
and, tried to synchronize again and ran:
Python manage.py schemamigration myapp --initial
It generated the file correctly, but there was nothing in it (none of the tables of my models).
Example file in the "models" folder (usertype.py)
from django.db import models
class UserType(models.Model):
usertype_id = models.PositiveIntegerField(primary_key=True)
description = models.CharField(max_length=100)
is_admin = models.BooleanField()
is_moderator = models.BooleanField()
class Meta:
app_label = 'myapp'
, , ?