Changes between Initial Version and Version 1 of Ticket #11779


Ignore:
Timestamp:
Aug 24, 2009, 12:56:05 PM (15 years ago)
Author:
Alex Gaynor
Comment:

Please use preview.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11779 – Description

    initial v1  
    11I have a model with a bug in it(I imported user instead of User from django.contrib.auth.models), here is the code:
    2 
     2{{{
    33from django.db import models
    44from django.contrib.auth.models import user
     
    66class myprofile(models.Model):
    77    user = models.ForeignKey(user, unique=True)
    8 
     8}}}
    99When running `manage.py validate` I get no errors, but when asking for the app's sql I am told that I probably didn't install it. What should happen is that the model shouldn't validate(or at least be told that the app is found but contains errors)
    10 
     10{{{
    1111$ python manage.py validate
    12120 errors found
     
    1414$ python manage.py sql myprofile
    1515Error: App with label myprofile could not be found. Are you sure your INSTALLED_APPS setting is correct?
     16}}}
Back to Top