Hi all
I am setting up fc24 as a cobbler server. Am I doing something wrong? When I visit https://192.168.0.8/cobbler_web I get python errors.
In the errors, it shows
TEMPLATE_DIRS ('/usr/share/cobbler/web/templates',)
but the templates are actually at
/usr/share/cobbler/web/cobbler_web/templates/
I added a symbolic link to fix this problem. The next problem was that the django function SortedDict could not be found. Google tells me:
https://code.djangoproject.com/wiki/SortedDict SortedDict is deprecated as of Django 1.7 and will be removed in Django 1.9. Use
collections.OrderedDict instead.
These versions are installed:
cobbler-web-2.6.11-4.fc24.noarch cobbler-2.6.11-4.fc24.x86_64
This all makes it seem that no-one is using Cobbler-web. Have people moved on to Spacewalk or something else?
cheers
Rick
Rick,
I run Cobbler at home on RHEL 7... I've not had any issues and can connect to my https://%5Bhost%5D/cobbler_web...
Not sure that helps - but it works fine for me on RHEL....
Flossy
----- Original Message -----
From: "Rick Leir" rleir@leirtech.com To: cobbler@lists.fedorahosted.org Sent: Wednesday, August 31, 2016 3:33:42 PM Subject: [cobbler] cobbler_web templates
Hi all
I am setting up fc24 as a cobbler server. Am I doing something wrong? When I visit https://192.168.0.8/cobbler_web I get python errors.
In the errors, it shows
TEMPLATE_DIRS ('/usr/share/cobbler/web/templates',)
but the templates are actually at
/usr/share/cobbler/web/cobbler_web/templates/
I added a symbolic link to fix this problem. The next problem was that the django function SortedDict could not be found. Google tells me:
https://code.djangoproject.com/wiki/SortedDict SortedDict is deprecated as of Django 1.7 and will be removed in Django 1.9. Use
collections.OrderedDict instead.
These versions are installed:
cobbler-web-2.6.11-4.fc24.noarch cobbler-2.6.11-4.fc24.x86_64
This all makes it seem that no-one is using Cobbler-web. Have people moved on to Spacewalk or something else?
cheers
Rick
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/cobbler@lists.fedorahosted.org
On 08/31/2016 01:33 PM, Rick Leir wrote:
Hi all
I am setting up fc24 as a cobbler server. Am I doing something wrong? When I visit https://192.168.0.8/cobbler_web I get python errors.
In the errors, it shows
TEMPLATE_DIRS ('/usr/share/cobbler/web/templates',)
but the templates are actually at
/usr/share/cobbler/web/cobbler_web/templates/
Interesting. I wonder why this didn't seem to be a problem with earlier Djangos. Filed https://github.com/cobbler/cobbler/pull/1687
I added a symbolic link to fix this problem. The next problem was that the django function SortedDict could not be found. Google tells me:
https://code.djangoproject.com/wiki/SortedDict SortedDict is deprecated as of Django 1.7 and will be removed in Django 1.9. Use
collections.OrderedDict instead.
OrderedDict was added in python 2.7 and cobbler still supports 2.6. However, RHEL6 backported OrderedDict into python-2.6.6-43 in RHEL 6.5. I don't know about any other old 2.6 containing distros that cobbler claims to support. Filed https://github.com/cobbler/cobbler/pull/1686
These versions are installed:
cobbler-web-2.6.11-4.fc24.noarch cobbler-2.6.11-4.fc24.x86_64
Can you remove your symbolic link and give this build a try? It has the above two changes. http://koji.fedoraproject.org/koji/taskinfo?taskID=15465346
This all makes it seem that no-one is using Cobbler-web. Have people moved on to Spacewalk or something else?
I suspect most folks are using the enterprise linux versions and so not dealing with newer django versions. I still run cobbler on a EL6 machine with Django 1.4.
Yes! Cobbler-web works now, with your fixes, thanks Orion!
There are a few warnings, but maybe they are not yet a problem:
[Tue Sep 06 09:51:27.892910 2016] [wsgi:error] [pid 3153] /usr/share/cobbler/web/cobbler_web/urls.py:52: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead. [Tue Sep 06 09:51:27.892948 2016] [wsgi:error] [pid 3153] (r'^logout$', do_logout),
[Tue Sep 06 09:51:27.959019 2016] [wsgi:error] [pid 3153] /usr/lib/python2.7/site-packages/django/template/utils.py:37: RemovedInDjango110Warning: You haven't defined a TEMPLATES setting. You must do so before upgrading to Django 1.10. Otherwise Django will be unable to load templates. [Tue Sep 06 09:51:27.959035 2016] [wsgi:error] [pid 3153] "unable to load templates.", RemovedInDjango110Warning)
[Tue Sep 06 09:51:27.971931 2016] [wsgi:error] [pid 3153] /usr/lib/python2.7/site-packages/django/template/loader.py:97: RemovedInDjango110Warning: render() must be called with a dict, not a RequestContext. [Tue Sep 06 09:51:27.971952 2016] [wsgi:error] [pid 3153] return template.render(context, request)
[Tue Sep 06 09:51:27.976454 2016] [wsgi:error] [pid 3153] /usr/lib64/python2.7/importlib/__init__.py:37: RemovedInDjango110Warning: django.core.context_processors is deprecated in favor of django.template.context_processors. [Tue Sep 06 09:51:27.976484 2016] [wsgi:error] [pid 3153] __import__(name)
[Tue Sep 06 09:51:41.378696 2016] [wsgi:error] [pid 3153] /usr/share/cobbler/web/cobbler_web/views.py:63: RemovedInDjango110Warning: render() must be called with a dict, not a RequestContext. [Tue Sep 06 09:51:41.378718 2016] [wsgi:error] [pid 3153] 'username': username,
cheers -- Rick
cobbler@lists.fedorahosted.org