mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
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:
parent
8e2d772e00
commit
3a040fc67b
|
@ -233,3 +233,8 @@ RABBIT_BACKEND = 'rpc://'
|
||||||
|
|
||||||
# Used for fetching repo
|
# Used for fetching repo
|
||||||
PARALLEL_JOBS = "4"
|
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
10
urls.py
|
@ -11,10 +11,20 @@ from django.views.generic import RedirectView
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
|
|
||||||
|
import settings
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^layerindex/', include('layerindex.urls')),
|
url(r'^layerindex/', include('layerindex.urls')),
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
url(r'^accounts/', include('registration.backends.default.urls')),
|
url(r'^accounts/', include('registration.backends.default.urls')),
|
||||||
url(r'^captcha/', include('captcha.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)),
|
url(r'.*', RedirectView.as_view(url='/layerindex/', permanent=False)),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user