Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #322 -- Development server now calls validate() again. Thanks, …


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit db127b79835cb971639e0185073e5d7756fb9d9a 1 parent 91c71d3
@adrianholovaty adrianholovaty authored
Showing with 9 additions and 0 deletions.
  1. +3 −0  django/core/
  2. +6 −0 docs/django-admin.txt
3  django/core/
@@ -494,6 +494,7 @@ def add(self, opts, error):
def validate():
"Validates all installed models."
+ import django.models
from django.core import meta
e = ModelErrorCollection()
module_list = meta.get_installed_model_modules()
@@ -544,6 +545,8 @@ def runserver(port):
def inner_run():
from django.conf.settings import SETTINGS_MODULE
+ print "Validating models..."
+ validate()
print "\nStarting server on port %s with settings module %r." % (port, SETTINGS_MODULE)
print "Go to for Django." % port
print "Quit the server with CONTROL-C (Unix) or CTRL-BREAK (Windows)."
6 docs/django-admin.txt
@@ -148,6 +148,12 @@ startproject [projectname]
Creates a Django project directory structure for the given project name in the
current directory.
+Validates all installed models (according to the ``INSTALLED_APPS`` setting)
+and prints validation errors to standard output.
Available options
Please sign in to comment.
Something went wrong with that request. Please try again.