Changeset 411 in main


Ignore:
Timestamp:
10/25/11 12:39:08 (8 years ago)
Author:
pcosquer
Message:

add stuff to deploy celery

Location:
trunk/openPLM
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/search_sites.py

    r410 r411  
    66 
    77import haystack 
    8 haystack.autodiscover() 
     8import sys 
     9 
     10# little hack: autodiscover() fails if the database is not created 
     11# but syncdb or migrate would run autodiscover without this line 
     12if len(sys.argv) < 2 or sys.argv[1] not in ("syncdb", "migrate"): 
     13    haystack.autodiscover() 
    914 
    1015 
Note: See TracChangeset for help on using the changeset viewer.