<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>does 0.8 wikipbx works with python 2.4</title>
		<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4</link>
		<description>Posts in the discussion thread &quot;does 0.8 wikipbx works with python 2.4&quot; - Can not make GUI working in CentOS 5.4</description>
				<copyright></copyright>
		<lastBuildDate>Sat, 31 Jul 2010 15:23:29 +0000</lastBuildDate>
		
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-215246#post-697303</guid>
				<title>Re: does 0.8 wikipbx works with python 2.4</title>
				<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4#post-697303</link>
				<description></description>
				<pubDate>Thu, 11 Feb 2010 18:36:19 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OK glad to hear you got it working!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-215246#post-689265</guid>
				<title>Re: does 0.8 wikipbx works with python 2.4</title>
				<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4#post-689265</link>
				<description></description>
				<pubDate>Mon, 01 Feb 2010 17:45:06 +0000</pubDate>
				<wikidot:authorName>yzsj</wikidot:authorName>				<wikidot:authorUserId>434753</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It looks OK now after I restarted my box today. I do not know why and I changed nothing. It was in a virtual machine. Have tried twice to reinstall the whole system (I think I have done reboot with it), and always saw that error. It does not happen with every refresh click.</p> <p>Thanks for the help!</p> <p>[root@localhost wikipbx]# diff settings_template.py settings.py<br /> 25c25<br /> &lt; DATABASE_ENGINE = 'postgresql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.<br /> —-</p> <blockquote> <p>DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.</p> </blockquote> <p>27,28c27,28<br /> &lt; DATABASE_USER = 'YOUR_DB_USER' # Not used with sqlite3.<br /> &lt; DATABASE_PASSWORD = 'YOUR_DB_PASS' # Not used with sqlite3.<br /> —-</p> <blockquote> <p>DATABASE_USER = 'fspbx' # Not used with sqlite3.<br /> DATABASE_PASSWORD = 'fspbxpasswd' # Not used with sqlite3.</p> </blockquote> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-215246#post-689250</guid>
				<title>Re: does 0.8 wikipbx works with python 2.4</title>
				<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4#post-689250</link>
				<description></description>
				<pubDate>Mon, 01 Feb 2010 17:28:50 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hmm, I haven't come across this error before.</p> <p>BTW I don't think chmod -R 777 /var/www/ will catch the hidden directories (those starting with a "."), so you may need to chmod that directory explicitly.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-215246#post-689244</guid>
				<title>Re: does 0.8 wikipbx works with python 2.4</title>
				<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4#post-689244</link>
				<description></description>
				<pubDate>Mon, 01 Feb 2010 17:22:25 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>What variables did you change in your settings file? I'm especially interested in MIDDLEWARE_CLASSES and TEMPLATE_CONTEXT_PROCESSORS values.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-215246#post-688711</guid>
				<title>Re: does 0.8 wikipbx works with python 2.4</title>
				<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4#post-688711</link>
				<description></description>
				<pubDate>Sun, 31 Jan 2010 23:13:03 +0000</pubDate>
				<wikidot:authorName>yzsj</wikidot:authorName>				<wikidot:authorUserId>434753</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi, Stas,</p> <p>I replaced the 2.4 python with 2.6 in CentOS 5.4. I still got an error. When I try to visit the web page, I got the following in the log:</p> <p>[root@localhost fs]# tail -f /var/log/httpd/wikipbx.yourserver.net-error.log<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1] [Errno 13] Permission denied: '/var/www/.python-eggs'<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1]<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1] The Python egg cache directory is currently set to:<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1]<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1] /var/www/.python-eggs<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1]<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1] Perhaps your account does not have write access to this directory? You can<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1] change the cache directory by setting the PYTHON_EGG_CACHE environment<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1] variable to point to an accessible directory.<br /> [Sun Jan 31&nbsp;14:56:47&nbsp;2010] [error] [client 127.0.0.1]</p> <p>Did I miss something? I installed everything using root account. After I do "chmod -R 777 /var/www/", I can see the login screen. However, I found the following error happens rather often if I just kept refreshing the login screen. Any clue on this? django is 5024 advised version. Thanks!</p> <p>AttributeError at /<br /> 'WSGIRequest' object has no attribute 'user'<br /> Request Method: GET<br /> Request URL: <a href="http://localhost/">http://localhost/</a><br /> Exception Type: AttributeError<br /> Exception Value: 'WSGIRequest' object has no attribute 'user'<br /> Exception Location: /usr/src/django/django/core/context_processors.py in auth, line 18<br /> Traceback (innermost last)<br /> Switch to copy-and-paste view</p> <p>* /usr/src/django/django/core/handlers/base.py in get_response<br /> 70. # Apply view middleware<br /> 71. for middleware_method in self._view_middleware:<br /> 72. response = middleware_method(request, callback, callback_args, callback_kwargs)<br /> 73. if response:<br /> 74. return response<br /> 75.<br /> 76. try:<br /> 77. response = callback(request, *callback_args, **callback_kwargs) …<br /> 78. except Exception, e:<br /> 79. # If the view raised an exception, run it through exception<br /> 80. # middleware, and if the exception middleware returns a<br /> 81. # response, use that. Otherwise, reraise the exception.<br /> 82. for middleware_method in self._exception_middleware:<br /> 83. response = middleware_method(request, e)<br /> ▶ Local vars<br /> Variable Value<br /> callback<br /> &lt;function index at 0x988e33c&gt;<br /> callback_args<br /> ()<br /> callback_kwargs<br /> {}<br /> debug<br /> &lt;module 'django.views.debug' from '/usr/src/django/django/views/debug.py'&gt;<br /> e<br /> AttributeError("'WSGIRequest' object has no attribute 'user'",)<br /> exceptions<br /> &lt;module 'django.core.exceptions' from '/usr/src/django/django/core/exceptions.pyc'&gt;<br /> mail_admins<br /> &lt;function mail_admins at 0x9275a3c&gt;<br /> middleware_method<br /> &lt;bound method CommonMiddleware.process_request of &lt;django.middleware.common.CommonMiddleware object at 0x9272fec»<br /> request<br /> &lt;WSGIRequest GET:&lt;MultiValueDict: {}&gt;, POST:&lt;MultiValueDict: {}&gt;, COOKIES:{}, META:{'DOCUMENT_ROOT': '/var/www/html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'localhost', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009072711 CentOS/3.0.12-1.el5.centos Firefox/3.0.12', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/usr/src/wikipbx/wikipbx.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '48318', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/usr/src/wikipbx/wikipbx.wsgi', 'SCRIPT_NAME': '', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '<span class="wiki-email">ten.revresruoy.xbpikiw|retsambew#ten.revresruoy.xbpikiw|retsambew</span>', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '&lt;address&gt;Apache/2.2.3 (CentOS) Server at localhost Port 80&lt;/address&gt;\n', 'SERVER_SOFTWARE': 'Apache/2.2.3 (CentOS)', 'mod_wsgi.application_group': 'wikipbx.yourserver.net|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 1), 'wsgi.errors': &lt;mod_wsgi.Log object at 0x922b458&gt;, 'wsgi.file_wrapper': &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0xb7e0f698&gt;, 'wsgi.input': &lt;mod_wsgi.Input object at 0x9270db8&gt;, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}&gt;<br /> resolver<br /> &lt;django.core.urlresolvers.RegexURLResolver object at 0x97b148c&gt;<br /> response<br /> None<br /> self<br /> &lt;django.core.handlers.wsgi.WSGIHandler object at 0x912becc&gt;<br /> settings<br /> &lt;django.conf.LazySettings object at 0x922ffec&gt;<br /> urlconf<br /> 'wikipbx.urls'<br /> urlresolvers<br /> &lt;module 'django.core.urlresolvers' from '/usr/src/django/django/core/urlresolvers.py'&gt;<br /> * /usr/src/wikipbx/wikipbx/wikipbxweb/views.py in index<br /> 41. from wikipbx.wikipbxweb.forms import *<br /> 42. from wikipbx.wikipbxweb.paginator import Paginator<br /> 43. from xml.dom import minidom<br /> 44.<br /> 45.<br /> 46. def index(request):<br /> 47. return simple.direct_to_template(<br /> 48. request, 'index.html', {'nousers': not User.objects.all()}) …<br /> 49.<br /> 50. def dashboard(request):<br /> 51. if not request.user.is_authenticated():<br /> 52. msg = "Must be logged in to view this resource"<br /> 53. return http.HttpResponseRedirect("/?urgentmsg=%s" % msg)<br /> 54. return simple.direct_to_template(request, 'dashboard.html')<br /> ▶ Local vars<br /> Variable Value<br /> request<br /> &lt;WSGIRequest GET:&lt;MultiValueDict: {}&gt;, POST:&lt;MultiValueDict: {}&gt;, COOKIES:{}, META:{'DOCUMENT_ROOT': '/var/www/html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'localhost', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009072711 CentOS/3.0.12-1.el5.centos Firefox/3.0.12', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/usr/src/wikipbx/wikipbx.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '48318', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/usr/src/wikipbx/wikipbx.wsgi', 'SCRIPT_NAME': '', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '<span class="wiki-email">ten.revresruoy.xbpikiw|retsambew#ten.revresruoy.xbpikiw|retsambew</span>', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '&lt;address&gt;Apache/2.2.3 (CentOS) Server at localhost Port 80&lt;/address&gt;\n', 'SERVER_SOFTWARE': 'Apache/2.2.3 (CentOS)', 'mod_wsgi.application_group': 'wikipbx.yourserver.net|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 1), 'wsgi.errors': &lt;mod_wsgi.Log object at 0x922b458&gt;, 'wsgi.file_wrapper': &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0xb7e0f698&gt;, 'wsgi.input': &lt;mod_wsgi.Input object at 0x9270db8&gt;, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}&gt;<br /> * /usr/src/django/django/views/generic/simple.py in direct_to_template<br /> 9. """<br /> 10. dictionary = {'params': kwargs}<br /> 11. for key, value in extra_context.items():<br /> 12. if callable(value):<br /> 13. dictionary[key] = value()<br /> 14. else:<br /> 15. dictionary[key] = value<br /> 16. c = RequestContext(request, dictionary) …<br /> 17. t = loader.get_template(template)<br /> 18. return HttpResponse(t.render(c), mimetype=mimetype)<br /> 19.<br /> 20. def redirect_to(request, url, **kwargs):<br /> 21. """<br /> 22. Redirect to a given URL.<br /> ▶ Local vars<br /> Variable Value<br /> dictionary<br /> {'nousers': True, 'params': {}}<br /> extra_context<br /> {'nousers': True}<br /> key<br /> 'nousers'<br /> kwargs<br /> {}<br /> mimetype<br /> None<br /> request<br /> &lt;WSGIRequest GET:&lt;MultiValueDict: {}&gt;, POST:&lt;MultiValueDict: {}&gt;, COOKIES:{}, META:{'DOCUMENT_ROOT': '/var/www/html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'localhost', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009072711 CentOS/3.0.12-1.el5.centos Firefox/3.0.12', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/usr/src/wikipbx/wikipbx.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '48318', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/usr/src/wikipbx/wikipbx.wsgi', 'SCRIPT_NAME': '', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '<span class="wiki-email">ten.revresruoy.xbpikiw|retsambew#ten.revresruoy.xbpikiw|retsambew</span>', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '&lt;address&gt;Apache/2.2.3 (CentOS) Server at localhost Port 80&lt;/address&gt;\n', 'SERVER_SOFTWARE': 'Apache/2.2.3 (CentOS)', 'mod_wsgi.application_group': 'wikipbx.yourserver.net|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 1), 'wsgi.errors': &lt;mod_wsgi.Log object at 0x922b458&gt;, 'wsgi.file_wrapper': &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0xb7e0f698&gt;, 'wsgi.input': &lt;mod_wsgi.Input object at 0x9270db8&gt;, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}&gt;<br /> template<br /> 'index.html'<br /> value<br /> True<br /> * /usr/src/django/django/template/context.py in <span style="text-decoration: underline;">init</span><br /> 93. def <span style="text-decoration: underline;">init</span>(self, request, dict=None, processors=None):<br /> 94. Context.<span style="text-decoration: underline;">init</span>(self, dict)<br /> 95. if processors is None:<br /> 96. processors = ()<br /> 97. else:<br /> 98. processors = tuple(processors)<br /> 99. for processor in get_standard_processors() + processors:<br /> 100. self.update(processor(request)) …<br /> ▶ Local vars<br /> Variable Value<br /> dict<br /> {'nousers': True, 'params': {}}<br /> processor<br /> &lt;function auth at 0x987c48c&gt;<br /> processors<br /> ()<br /> request<br /> &lt;WSGIRequest GET:&lt;MultiValueDict: {}&gt;, POST:&lt;MultiValueDict: {}&gt;, COOKIES:{}, META:{'DOCUMENT_ROOT': '/var/www/html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'localhost', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009072711 CentOS/3.0.12-1.el5.centos Firefox/3.0.12', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/usr/src/wikipbx/wikipbx.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '48318', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/usr/src/wikipbx/wikipbx.wsgi', 'SCRIPT_NAME': '', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '<span class="wiki-email">ten.revresruoy.xbpikiw|retsambew#ten.revresruoy.xbpikiw|retsambew</span>', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '&lt;address&gt;Apache/2.2.3 (CentOS) Server at localhost Port 80&lt;/address&gt;\n', 'SERVER_SOFTWARE': 'Apache/2.2.3 (CentOS)', 'mod_wsgi.application_group': 'wikipbx.yourserver.net|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 1), 'wsgi.errors': &lt;mod_wsgi.Log object at 0x922b458&gt;, 'wsgi.file_wrapper': &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0xb7e0f698&gt;, 'wsgi.input': &lt;mod_wsgi.Input object at 0x9270db8&gt;, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}&gt;<br /> self<br /> [{'nousers': True, 'params': {}}]<br /> * /usr/src/django/django/core/context_processors.py in auth<br /> 11.<br /> 12. def auth(request):<br /> 13. """<br /> 14. Returns context variables required by apps that use Django's authentication<br /> 15. system.<br /> 16. """<br /> 17. return {<br /> 18. 'user': request.user, …<br /> 19. 'messages': request.user.get_and_delete_messages(),<br /> 20. 'perms': PermWrapper(request.user),<br /> 21. }<br /> 22.<br /> 23. def debug(request):<br /> 24. "Returns context variables helpful for debugging."<br /> ▶ Local vars<br /> Variable Value<br /> request<br /> &lt;WSGIRequest GET:&lt;MultiValueDict: {}&gt;, POST:&lt;MultiValueDict: {}&gt;, COOKIES:{}, META:{'DOCUMENT_ROOT': '/var/www/html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'localhost', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009072711 CentOS/3.0.12-1.el5.centos Firefox/3.0.12', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/usr/src/wikipbx/wikipbx.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '48318', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/usr/src/wikipbx/wikipbx.wsgi', 'SCRIPT_NAME': '', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '<span class="wiki-email">ten.revresruoy.xbpikiw|retsambew#ten.revresruoy.xbpikiw|retsambew</span>', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '&lt;address&gt;Apache/2.2.3 (CentOS) Server at localhost Port 80&lt;/address&gt;\n', 'SERVER_SOFTWARE': 'Apache/2.2.3 (CentOS)', 'mod_wsgi.application_group': 'wikipbx.yourserver.net|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 1), 'wsgi.errors': &lt;mod_wsgi.Log object at 0x922b458&gt;, 'wsgi.file_wrapper': &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0xb7e0f698&gt;, 'wsgi.input': &lt;mod_wsgi.Input object at 0x9270db8&gt;, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}&gt;</p> <p>Traceback (most recent call last):<br /> File "/usr/src/django/django/core/handlers/base.py" in get_response<br /> 77. response = callback(request, *callback_args, **callback_kwargs)<br /> File "/usr/src/wikipbx/wikipbx/wikipbxweb/views.py" in index<br /> 48. request, 'index.html', {'nousers': not User.objects.all()})<br /> File "/usr/src/django/django/views/generic/simple.py" in direct_to_template<br /> 16. c = RequestContext(request, dictionary)<br /> File "/usr/src/django/django/template/context.py" in <span style="text-decoration: underline;">init</span><br /> 100. self.update(processor(request))<br /> File "/usr/src/django/django/core/context_processors.py" in auth<br /> 18. 'user': request.user,</p> <p>AttributeError at /<br /> 'WSGIRequest' object has no attribute 'user'</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-215246#post-687557</guid>
				<title>Re: does 0.8 wikipbx works with python 2.4</title>
				<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4#post-687557</link>
				<description></description>
				<pubDate>Sat, 30 Jan 2010 09:22:54 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Btw, someone has walked this path before - see <a href="http://wikipbx.subwiki.com/centos-install-notes">notes here</a>.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-215246#post-687555</guid>
				<title>Re: does 0.8 wikipbx works with python 2.4</title>
				<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4#post-687555</link>
				<description></description>
				<pubDate>Sat, 30 Jan 2010 09:19:14 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi,</p> <p>Only python 2.5/2.6 are supported.</p> <p>Stas.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-215246#post-687472</guid>
				<title>does 0.8 wikipbx works with python 2.4</title>
				<link>http://wikipbx.subwiki.com/forum/t-215246/does-0-8-wikipbx-works-with-python-2-4#post-687472</link>
				<description></description>
				<pubDate>Sat, 30 Jan 2010 04:20:28 +0000</pubDate>
				<wikidot:authorName>yzsj</wikidot:authorName>				<wikidot:authorUserId>434753</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi,</p> <p>I am using CentOS 5.4 which has python 2.4 included. I can not make wikipbx work on it. I basically use the same parameters in my test machine as the install guide. There is no error log messages in wikipbx.yourserver.net-error.log, but from freeswitch console I saw</p> <p>2010-01-29&nbsp;18:35:21.230134 [ERR] mod_xml_curl.c:304 Received HTTP error 500 trying to fetch <a href="http://wikipbx.yourserver.net/xml_dialplan/">http://wikipbx.yourserver.net/xml_dialplan/</a><br /> data: [hostname=localhost.localdomain&amp;section=configuration&amp;tag_name=configuration&amp;key_name=name&amp;key_value=event_socket.conf]</p> <p>wikipbx related are all in /usr/src and freeswitch is in /root/work/freeswitch</p> <p>WSGIPythonPath /usr/src/wikipbx:/usr/src/django:/root/work/freeswitch/libs/esl/python</p> <p>also copied</p> <p>[root@localhost freeswitch]# ls -l /usr/lib/python2.4/site-packages/*ESL*<br /> -rw-r<span style="text-decoration: line-through;">r</span> 1 root root 4916 Jan 29&nbsp;19:34 /usr/lib/python2.4/site-packages/ESL.py<br /> -rwxr-xr-x 1 root root 202634 Jan 29&nbsp;19:34 /usr/lib/python2.4/site-packages/_ESL.so</p> <p>When I go to <a href="http://wikipbx.yourserver.net/">http://wikipbx.yourserver.net/</a>, I just get the following. What could the<br /> problem be? Do I must upgrade the python to a newer version?</p> <p>Thanks!</p> <p>SyntaxError at /<br /> invalid syntax (views.py, line 1267)<br /> Request Method: GET<br /> Request URL: <a href="http://wikipbx.yourserver.net/">http://wikipbx.yourserver.net/</a><br /> Exception Type: SyntaxError<br /> Exception Value: invalid syntax (views.py, line 1267)<br /> Exception Location: /usr/src/django/django/core/urlresolvers.py in _get_callback, line 126<br /> Traceback (innermost last)<br /> Switch to copy-and-paste view</p> <p>* /usr/src/django/django/core/handlers/base.py in get_response<br /> 61. return response<br /> 62.<br /> 63. # Get urlconf from request object, if available. Otherwise use default.<br /> 64. urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF)<br /> 65.<br /> 66. resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)<br /> 67. try:<br /> 68. callback, callback_args, callback_kwargs = resolver.resolve(request.path) …<br /> 69.<br /> 70. # Apply view middleware<br /> 71. for middleware_method in self._view_middleware:<br /> 72. response = middleware_method(request, callback, callback_args, callback_kwargs)<br /> 73. if response:<br /> 74. return response<br /> ▶ Local vars<br /> Variable Value<br /> debug<br /> &lt;module 'django.views.debug' from '/usr/src/django/django/views/debug.py'&gt;<br /> exceptions<br /> &lt;module 'django.core.exceptions' from '/usr/src/django/django/core/exceptions.pyc'&gt;<br /> mail_admins<br /> &lt;function mail_admins at 0xb7d7872c&gt;<br /> middleware_method<br /> &lt;bound method AuthenticationMiddleware.process_request of &lt;django.contrib.auth.middleware.AuthenticationMiddleware object at 0x869e8ac»<br /> request<br /> &lt;WSGIRequest GET:&lt;MultiValueDict: {}&gt;, POST:&lt;MultiValueDict: {}&gt;, COOKIES:{}, META:{'DOCUMENT_ROOT': '/var/www/html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'wikipbx.yourserver.net', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.16) Gecko/2009121708 CentOS/3.0.16-1.el5.centos Firefox/3.0.16', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/usr/src/wikipbx/wikipbx.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '10.0.2.15', 'REMOTE_PORT': '33988', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/usr/src/wikipbx/wikipbx.wsgi', 'SCRIPT_NAME': '', 'SERVER_ADDR': '10.0.2.15', 'SERVER_ADMIN': '<span class="wiki-email">ten.revresruoy.xbpikiw|retsambew#ten.revresruoy.xbpikiw|retsambew</span>', 'SERVER_NAME': 'wikipbx.yourserver.net', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '&lt;address&gt;Apache/2.2.3 (CentOS) Server at wikipbx.yourserver.net Port 80&lt;/address&gt;\n', 'SERVER_SOFTWARE': 'Apache/2.2.3 (CentOS)', 'mod_wsgi.application_group': 'wikipbx.yourserver.net|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 1), 'wsgi.errors': &lt;mod_wsgi.Log object at 0xb7edc430&gt;, 'wsgi.file_wrapper': &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0xb7e10ad0&gt;, 'wsgi.input': &lt;mod_wsgi.Input object at 0xb7edc390&gt;, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}&gt;<br /> resolver<br /> &lt;django.core.urlresolvers.RegexURLResolver object at 0x86c902c&gt;<br /> response<br /> None<br /> self<br /> &lt;django.core.handlers.wsgi.WSGIHandler object at 0xb7ee35ac&gt;<br /> settings<br /> &lt;django.conf.LazySettings object at 0xb7dd084c&gt;<br /> urlconf<br /> 'wikipbx.urls'<br /> urlresolvers<br /> &lt;module 'django.core.urlresolvers' from '/usr/src/django/django/core/urlresolvers.py'&gt;<br /> * /usr/src/django/django/core/urlresolvers.py in resolve<br /> 156. def resolve(self, path):<br /> 157. tried = []<br /> 158. match = self.regex.search(path)<br /> 159. if match:<br /> 160. new_path = path[match.end():]<br /> 161. for pattern in self.urlconf_module.urlpatterns:<br /> 162. try:<br /> 163. sub_match = pattern.resolve(new_path) …<br /> 164. except Resolver404, e:<br /> 165. tried.extend([(pattern.regex.pattern + ' ' + t) for t in e.args[0]['tried']])<br /> 166. else:<br /> 167. if sub_match:<br /> 168. sub_match_dict = dict(self.default_kwargs, **sub_match[2])<br /> 169. return sub_match[0], sub_match[1], dict(match.groupdict(), **sub_match_dict)<br /> ▶ Local vars<br /> Variable Value<br /> match<br /> &lt;_sre.SRE_Match object at 0x867fd40&gt;<br /> new_path<br /> ''<br /> path<br /> '/'<br /> pattern<br /> &lt;django.core.urlresolvers.RegexURLPattern object at 0x8698bcc&gt;<br /> self<br /> &lt;django.core.urlresolvers.RegexURLResolver object at 0x86c902c&gt;<br /> sub_match<br /> None<br /> tried<br /> ['^admin/', '^(fav.ico)$', '^site_media/(.*)$', '^soundclips_media/(.*)$']<br /> * /usr/src/django/django/core/urlresolvers.py in resolve<br /> 112. if kwargs:<br /> 113. args = ()<br /> 114. else:<br /> 115. args = match.groups()<br /> 116. # In both cases, pass any extra_kwargs as **kwargs.<br /> 117. kwargs.update(self.default_args)<br /> 118.<br /> 119. return self.callback, args, kwargs …<br /> 120.<br /> 121. def _get_callback(self):<br /> 122. if self._callback is not None:<br /> 123. return self._callback<br /> 124. mod_name, func_name = get_mod_func(self._callback_str)<br /> 125. try:<br /> ▼ Local vars<br /> Variable Value<br /> args<br /> ()<br /> kwargs<br /> {}<br /> match<br /> &lt;_sre.SRE_Match object at 0x8680528&gt;<br /> path<br /> ''<br /> self<br /> &lt;django.core.urlresolvers.RegexURLPattern object at 0x8698bcc&gt;<br /> * /usr/src/django/django/core/urlresolvers.py in _get_callback<br /> 119. return self.callback, args, kwargs<br /> 120.<br /> 121. def _get_callback(self):<br /> 122. if self._callback is not None:<br /> 123. return self._callback<br /> 124. mod_name, func_name = get_mod_func(self._callback_str)<br /> 125. try:<br /> 126. self._callback = getattr(<span style="text-decoration: underline;">import</span>(mod_name, {}, {}, ['']), func_name) …<br /> 127. except ImportError, e:<br /> 128. raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e))<br /> 129. except AttributeError, e:<br /> 130. raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e))<br /> 131. return self._callback<br /> 132. callback = property(_get_callback)<br /> ▼ Local vars<br /> Variable Value<br /> func_name<br /> 'index'<br /> mod_name<br /> 'wikipbx.wikipbxweb.views'<br /> self<br /> &lt;django.core.urlresolvers.RegexURLPattern object at 0x8698bcc&gt;</p> <p>Traceback (most recent call last):<br /> File "/usr/src/django/django/core/handlers/base.py" in get_response<br /> 68. callback, callback_args, callback_kwargs = resolver.resolve(request.path)<br /> File "/usr/src/django/django/core/urlresolvers.py" in resolve<br /> 163. sub_match = pattern.resolve(new_path)<br /> File "/usr/src/django/django/core/urlresolvers.py" in resolve<br /> 119. return self.callback, args, kwargs<br /> File "/usr/src/django/django/core/urlresolvers.py" in _get_callback<br /> 126. self._callback = getattr(<span style="text-decoration: underline;">import</span>(mod_name, {}, {}, ['']), func_name)</p> <p>SyntaxError at /<br /> invalid syntax (views.py, line 1267)</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>