diff --git a/settings.py b/settings.py index 4edea1f..0ed438a 100644 --- a/settings.py +++ b/settings.py @@ -233,3 +233,8 @@ RABBIT_BACKEND = 'rpc://' # Used for fetching repo PARALLEL_JOBS = "4" + +# Settings for Recipe reporting system +RRS_EMAIL_SUBJECT = '[Recipe reporting system] Upgradable recipe name list' +RRS_EMAIL_FROM = 'recipe-report@yoctoproject.org' +RRS_EMAIL_TO = 'list@example.com' diff --git a/urls.py b/urls.py index b13de4a..52c518a 100644 --- a/urls.py +++ b/urls.py @@ -11,10 +11,20 @@ from django.views.generic import RedirectView from django.contrib import admin admin.autodiscover() +import settings + urlpatterns = [ url(r'^layerindex/', include('layerindex.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^accounts/', include('registration.backends.default.urls')), url(r'^captcha/', include('captcha.urls')), +] + +if 'rrs' in settings.INSTALLED_APPS: + urlpatterns += [ + url(r'^rrs/', include('rrs.urls')), + ] + +urlpatterns += [ url(r'.*', RedirectView.as_view(url='/layerindex/', permanent=False)), ]