Answer the question
In order to leave comments, you need to log in
Syndb/south not seeing my models after refactoring?
I decided to change models.py to a module, because there were a lot of models and it was not very convenient to store everything in one file.
It turned out the models directory and the files with classes in it:
D:\~Sasha\eclipse_workspace\zavalen\picviewer\models>dir *.py<br/>
Directory of D:\~Sasha\eclipse_workspace\zavalen\picviewer\models<br/>
<br/>
15.04.2011 16:38 1 125 cartItem.py<br/>
15.04.2011 16:43 1 283 Collection.py<br/>
15.04.2011 16:40 419 ImageSizeRatio.py<br/>
15.04.2011 16:43 876 Menu.py<br/>
15.04.2011 16:43 1 667 Order.py<br/>
15.04.2011 14:07 1 457 OrderForm.py<br/>
15.04.2011 16:43 490 OrderStatusHistory.py<br/>
15.04.2011 16:43 683 paperType.py<br/>
15.04.2011 16:43 3 202 Picture.py<br/>
15.04.2011 16:43 1 520 printSize.py<br/>
15.04.2011 16:43 687 PurchaseItem.py<br/>
15.04.2011 16:43 1 239 Tools.py<br/>
15.04.2011 16:11 0 __init__.py
class cartItem(models.Model):<br/>
picture = models.ForeignKey('Picture', null=False)<br/>
paperType = models.ForeignKey('paperType', null=False)<br/>
printSize = models.ForeignKey('printSize', null=False)<br/>
quantity = models.IntegerField(default=1, validators=[validators.MinValueValidator(1)])<br/>
price = models.DecimalField(decimal_places=2,max_digits=8)<br/>
dateCreated = models.DateTimeField(null=False)<br/>
sessionKey = models.ForeignKey(Session, to_field="session_key", null=False)<br/>
user = models.ForeignKey(User,null=True)<br/>
<br/>
class Meta:<br/>
app_label = 'picviewer'
manage_noDebug.py schemamigration picviewer --auto<br/>
manage_noDebug.py schemamigration migrate picviewer
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question