Alexander Solovyov avatar Alexander Solovyov committed 18867ad

renamed LOCAL_APPS to APPS

Comments (0)

Files changed (14)

samples/simple/admin/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'svarga.contrib.cherrypy',
     'svarga.contrib.sessions',
     'svarga.contrib.auth',

samples/simple/bundle/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'sampleapp',
     )

samples/simple/customauth/settings.py

 SECRET_KEY = 'foobar'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'svarga.contrib.sessions',
     'svarga.contrib.auth',
     'testapp',

samples/simple/metadata/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'testapp',
     'svarga.contrib.jslib',
     )

samples/simple/modelform/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'testapp',
     )

samples/simple/modelformset/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'testapp',
     )

samples/simple/models/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'sampleapp',
     )

samples/simple/multiapp/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'app1',
     'app2',
     )

samples/simple/tableview/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'svarga.contrib.dataview',
     'svarga.contrib.jslib',
     'sampleapp',

samples/simple/test/settings.py

 CACHE_URL = 'locmem://'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'svarga.contrib.cache',
     'svarga.contrib.sessions',
     'svarga.contrib.auth',

samples/tutorials/blog/settings.py

 SECRET_KEY = 'd7HNxTHOSaoNvBU8jNMBtIg0JtnSoM1O'
 
 # Applications
-LOCAL_APPS = (
+APPS = (
     'blog',
     )

svarga/apps/__init__.py

 from svarga.core.exceptions import ImproperlyConfigured
 from svarga.utils.ordereddict import OrderedDict
 
-CONFIG_APP_LIST = 'LOCAL_APPS'
 
 class AppSettings(object):
     '''
                 apps_init.append(mgr)
 
         # Get list of local apps
-        app_list = getattr(env_class.settings, CONFIG_APP_LIST, None)
+        app_list = env_class.settings.APPS
 
         if app_list is None:
-            raise ImproperlyConfigured('Missing %s setting' % CONFIG_APP_LIST)
+            raise ImproperlyConfigured('Missing APPS setting')
 
         if isinstance(app_list, basestring):
-            raise ImproperlyConfigured('%s is a string, not a list: maybe you '
-                                       'forgot to put a comma in tuple?'
-                                       % CONFIG_APP_LIST)
+            raise ImproperlyConfigured(
+                'APPS setting is a string, not a list: '
+                'maybe you forgot to put a comma in tuple?')
 
         # Call app_init of the loaded apps, so applications have chance
         # to contribute extra initializers to the settings class

svarga/bootstrap/project_template/settings.py_tmpl

 
 SECRET_KEY = %(secretkey)r
 
-LOCAL_APPS = [
+APPS = [
     ]

svarga/core/dispatch.py

     Environment.init(settings)
 
     import svarga.core.commands
-    for app in settings.LOCAL_APPS:
+    for app in settings.APPS:
         try:
             __import__('%s.commands' % app, fromlist=['true'])
         except ImportError:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.