Ticket #4226: contributing_db_name.diff

File contributing_db_name.diff, 1.0 KB (added by Paul Smith <paulsmith@…>, 18 years ago)

Added DATABASE_NAME to section on running unit tests

  • docs/contributing.txt

     
    396396    ./runtests.py --settings=path.to.django.settings
    397397
    398398Yes, the unit tests need a settings module, but only for database connection
    399 info -- the ``DATABASE_ENGINE``, ``DATABASE_USER`` and ``DATABASE_PASSWORD``.
    400 You will also need a ``ROOT_URLCONF`` setting (its value is ignored; it just
    401 needs to be present) and a ``SITE_ID`` setting (any integer value will do) in
    402 order for all the tests to pass.
     399info -- the ``DATABASE_ENGINE``, ``DATABASE_NAME``, ``DATABASE_USER`` and
     400``DATABASE_PASSWORD``.  You will also need a ``ROOT_URLCONF`` setting (its value
     401is ignored; it just needs to be present) and a ``SITE_ID`` setting (any integer
     402value will do) in order for all the tests to pass.
    403403
    404404The unit tests will not touch your existing databases; they create a new
    405405database, called ``django_test_db``, which is deleted when the tests are
Back to Top