layerindex: Add support for rrs in settings.py and urls.py

Add RRS-specific settings and bring in RRS. Based on work by
Aníbal Limón <anibal.limon@linux.intel.com>.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-04-13 15:54:27 +12:00
parent 8e2d772e00
commit 3a040fc67b
2 changed files with 15 additions and 0 deletions

View File

@ -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'

10
urls.py
View File

@ -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)),
]