[Pulp-list] Pulp 2.13.0 Now Generally Available!

Alan Milligan alan.milligan at last-bastion.net
Thu Apr 27 17:53:52 UTC 2017


Good stuff....

Sorry - don't have time to cut/test a patch, but it seems that the
'patterns' stuff has been deprecated in Django since 1.8 - and removed
in 2.10+. Pulp under Django 2.10 is barfing.  There's only a couple of
offending files (and the compat_urls could quite probably be ditched). 
I think something along the lines of below is required.

Alan



sed -i -e 's/patterns,//' pulp/server/webservices/urls.py

cat <<EOF > pulp/server/content/web/urls.py
from django.conf.urls import url

from pulp.server.content.web.views import ContentView

# View Prefix
PREFIX = ''

# Patterns
urlpatterns = [
    PREFIX,
    url(r'.+', ContentView.as_view(), name='content'),
]
EOF

cat <<EOF > pulp/server/webservices/compat_urls.py
"""
This module creates urlpatterns using the old syntax of Django <=  1.6
"""

from pulp.server.webservices.urls import urlpatterns

EOF




More information about the Pulp-list mailing list