summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/urls.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-01-20 09:39:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-18 10:24:06 +0000
commitd086fa3aed34a05d52e73c255ca22379149a64a1 (patch)
treec55f38b6b86b513c0d4b47a01fed47c9db1cb163 /bitbake/lib/toaster/toastermain/urls.py
parentf99f2cdd69f1015953a7e9ab07af46dd63e50ad4 (diff)
downloadpoky-d086fa3aed34a05d52e73c255ca22379149a64a1.tar.gz
bitbake: toasterui: add extra debug and development infos
We update and add logs throughout the code in order to help with development. The extra logging is turned off by default, but it can be enabled by using environment variables. All logging happens through the Python logging facilities. The toaster UI will save a log of all incoming events if the TOASTER_EVENTLOG variable is set. If TOASTER_SQLDEBUG is set all DB queries will be logged. If TOASTER_DEVEL is set and the django-fresh module is available, the module is enabled to allow auto-reload of pages when the source is changed. (Bitbake rev: 10c27450601b4d24bbb273bd0e053498807d1060) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain/urls.py')
-rw-r--r--bitbake/lib/toaster/toastermain/urls.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py
index 549fda12d6..a2916e2dd7 100644
--- a/bitbake/lib/toaster/toastermain/urls.py
+++ b/bitbake/lib/toaster/toastermain/urls.py
@@ -44,11 +44,15 @@ urlpatterns = patterns('',
44) 44)
45 45
46import toastermain.settings 46import toastermain.settings
47
48if toastermain.settings.FRESH_ENABLED:
49 urlpatterns.insert(1, url(r'', include('fresh.urls')))
50
47if toastermain.settings.MANAGED: 51if toastermain.settings.MANAGED:
48 urlpatterns = urlpatterns + [ 52 urlpatterns = [
49 # Uncomment the next line to enable the admin: 53 # Uncomment the next line to enable the admin:
50 url(r'^admin/', include(admin.site.urls)), 54 url(r'^admin/', include(admin.site.urls)),
51 ] 55 ] + urlpatterns
52# Automatically discover urls.py in various apps, beside our own 56# Automatically discover urls.py in various apps, beside our own
53# and map module directories to the patterns 57# and map module directories to the patterns
54 58
@@ -61,4 +65,4 @@ for t in os.walk(os.path.dirname(currentdir)):
61 65
62 if "urls.py" in t[2] and t[0] != currentdir: 66 if "urls.py" in t[2] and t[0] != currentdir:
63 modulename = os.path.basename(t[0]) 67 modulename = os.path.basename(t[0])
64 urlpatterns.append( url(r'^' + modulename + '/', include ( modulename + '.urls'))) 68 urlpatterns.insert(0, url(r'^' + modulename + '/', include ( modulename + '.urls')))