Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
This middleware will automagically run syncdb (and migrate if south is
installed) the first time it is run, if it is detected that the project is
using an in-memory SQLite database.

src/d/j/django-patterns-0.0.3/django_patterns/management/commands/shell_plusplus.py   django-patterns(Download)
  def handle_noargs(self, *args, **kwargs):
    # Re-use the SyncDBOnStartupMiddleware code, which envokes ‘syncdb’ and
    # ‘migrate’ if in-memory databases are detected:
    from django.core.exceptions import MiddlewareNotUsed
    from django_patterns.middleware import SyncDBOnStartupMiddleware
    try:
      SyncDBOnStartupMiddleware()