<?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>Initialize Database</title>
		<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database</link>
		<description>Posts in the discussion thread &quot;Initialize Database&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 05 Sep 2010 03:26:32 +0000</lastBuildDate>
		
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660609</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660609</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 22:02:19 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I do it in a different way. I have a symlink to the active freeswitch version in /usr/src/freeswitch pointing to the active FS version and symlinks to the libs in /usr/src/freeswitch/libs/esl/… in python's site-packages dir. This way I can quickly upgrade to a new freeswitch version without modifying WSGI path. However, I'm starting to consider zero install approach to be much cleaner, so I think we should cosider using virtualenv.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660595</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660595</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 21:27:54 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It definitely took more time than it should in your case, although it's caused by debian maintainers' weird decision in first place. It's possible to drastically simplify installation of wikipbx by using other software for configuring python dependencies, but it's not in our short time plans yet.</p> <p>And definitely do stay away from PHP for anything that is more complicated than a Personal Home Page :-)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660589</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660589</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 21:14:18 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Any scripts to simplify installation would be highly appreciated and will go into the svn repository for other users to use. We know currently wikipbx is very difficult and time consuming to install .. so if you made it all the way through consider yourself part of the elite ;)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660576</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660576</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 20:52:27 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>well after i copy _ESL.so and ESL.py to /usr/lib/python2.5/site-packages everything work grate. i really appreciated all the help.</p> <p>like i mention before i have ubuntu 9.10 server on my box and i don't know if this going to help you guys but i will format the box and install a fresh copy of ubuntu 9.10 server. And i can make a shell script to do all the steps.</p> <p>coming from Microsoft environment where everything you need to do is one click, However, i did install FusionPBX and FreePBX-v3 they are much Easier put they all in php (php=bad).</p> <p>anyway thanks alot for all the help and if you think the shell script would help let me know.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660571</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660571</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 20:34:57 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I updated <a href="http://wikipbx.subwiki.com/configure-wikipbx-mod-wsgi">http://wikipbx.subwiki.com/configure-wikipbx-mod-wsgi</a> .. please take a look again</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660565</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660565</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 20:26:49 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>What is your current WSGIPythonPath set to?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660561</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660561</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 20:22:58 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Just checked my system and _ESL.so and ESL.py are not deployed to /usr/lib/python2.5/site-packages ..</p> <div class="code"> <pre> <code>locate ESL.py</code> </pre></div> <p>results in ..</p> <div class="code"> <pre> <code>/usr/src/freeswitch_15699/libs/esl/python/ESL.py</code> </pre></div> <p>which corresponds to my apache configuration WSGIPythonPath:</p> <div class="code"> <pre> <code>WSGIPythonPath /usr/src/freeswitch_13501/scripts/socket:/usr/src/wikipbx:/usr/src/django_5024:/usr/src/freeswitch_13501/libs/esl/python</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660550</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660550</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 20:00:22 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>no should i copy them there</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660548</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660548</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 19:55:27 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Do you have _ESL.so and ESL.py from libs/esl directory in python's dist-packages? I guess they're installed to site-packages instead.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660539</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660539</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 19:34:35 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre> <code>build the ESL module for python</code> </pre></div> <p>Go to libs/esl directory under freeswitch source tree<br /> Edit python/Makefile to use the version of python you prefer to use<br /> Run make pymod</p> <p>i did that</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660533</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660533</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 19:25:47 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>See <a href="http://wikipbx.subwiki.com/troubleshooting-0-8#toc2">http://wikipbx.subwiki.com/troubleshooting-0-8#toc2</a></p> <p>This means its not finding the ESL module on the python path from within the wsgi context.</p> <p>Either:</p> <p>* You forgot to build the ESL module for python<br /> * You forgot to set the WSGIPythonPath wsgi variable in the apache config, or had a typo<br /> * You correctly set it and for whatever reason its being ignored</p> <p>The workaround is to modify the /usr/src/wikipbx/wikipbx.wsgi file to manually add the ESL directory. Please post on the forum if you need help with that.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660517</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660517</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 18:46:16 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>after i Create the symlink everything lock ok but when i navigate to <a href="http://wikipbx.yourserver.net">http://wikipbx.yourserver.net</a> i got this</p> <div class="code"> <pre> <code>ViewDoesNotExist at / Could not import wikipbx.wikipbxweb.views. Error was: No module named ESL Request Method: GET Request URL: http://wikipbx.aldimna.com/ Exception Type: ViewDoesNotExist Exception Value: Could not import wikipbx.wikipbxweb.views. Error was: No module named ESL Exception Location: /usr/src/django/django/core/urlresolvers.py in _get_callback, line 128</code> </pre></div> <div class="code"> <pre> <code>tail -f /var/log/apache2/error.log /var/log/apache2/wikipbx.aldimna.com-error.log ==&gt; /var/log/apache2/error.log &lt;== [Tue Dec 22 13:34:27 2009] [error] /usr/src/django/django/middleware/common.py:4: DeprecationWarning: the md5 module is deprecated; use hashlib instead [Tue Dec 22 13:34:27 2009] [error] import md5 [Tue Dec 22 13:34:28 2009] [error] /usr/src/django/django/db/models/fields/related.py:15: DeprecationWarning: the sets module is deprecated [Tue Dec 22 13:34:28 2009] [error] from sets import Set as set [Tue Dec 22 13:34:33 2009] [error] /usr/src/django/django/middleware/common.py:4: DeprecationWarning: the md5 module is deprecated; use hashlib instead [Tue Dec 22 13:34:33 2009] [error] import md5 [Tue Dec 22 13:34:34 2009] [error] /usr/src/django/django/db/models/fields/related.py:15: DeprecationWarning: the sets module is deprecated [Tue Dec 22 13:34:34 2009] [error] from sets import Set as set [Tue Dec 22 13:40:39 2009] [error] [client 192.0.1.1] File does not exist: /var/www/favicon.ico [Tue Dec 22 13:40:42 2009] [error] [client 192.0.1.1] File does not exist: /var/www/favicon.ico ==&gt; /var/log/apache2/wikipbx.aldimna.com-error.log &lt;==</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660466</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660466</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 16:54:50 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ok, now it's pretty clear. Looks like you're using a newer ubuntu or other debian-based distro where they've <a href="http://www.mail-archive.com/debian-python@lists.debian.org/msg05788.html">renamed site-packages to dist-packages</a>. Don't ask me why would they want to do something that breaks most existing python third-party modules - it looks like idiotism to me.</p> <p>So you can do one of the following:</p> <p>1. Create the symlink in /usr/lib/python2.6/dist-packages directory instead of site-packages.</p> <p>2. Add site-packages to python path by setting it:</p> <blockquote> <p>sudo PYTHONPATH="/usr/lib/python2.6/site-packages:$PYTHONPATH" manage.py syncdb</p> </blockquote> <p>3. Don't install django, add it's root directory to pythonpath instead:</p> <blockquote> <p>sudo PYTHONPATH="/usr/src/django:$PYTHONPATH" manage.py syncdb</p> </blockquote> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660401</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660401</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 14:29:00 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre> <code>sudo python -c 'import sys; print sys.path' ['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660317</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660317</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 11:22:32 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>What do you get if you run:</p> <div class="code"> <pre> <code>sudo python -c 'import sys; print sys.path'</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660305</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660305</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 10:56:58 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well,<br /> I am glad you guys didn't give up on me :) i really appreciated all the help.</p> <p>the site-packages has only one symlink "django" which linked to /usr/src/django/django. so i thought if i delete it i wouldn't lose anything.</p> <blockquote> <p>So does it work now if you run the python shell and type "import django"?</p> </blockquote> <p>No i get this</p> <div class="code"> <pre> <code>Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import django Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: No module named django</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660115</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660115</link>
				<description></description>
				<pubDate>Tue, 22 Dec 2009 01:42:24 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Do you remember what site-packages was symlinked to? That seems odd .. I worry that some crucial python libs somehow got lost along the way (if you accidentally deleted the site-packages directory)</p> <p>So does it work now if you run the python shell and type "import django"?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-660069</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-660069</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 23:57:03 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>well,<br /> in "/usr/lib/python2.6" directory it show "site-packages" as symlink. therefore i delete the symlink and create the "site-packages" subdirectory under "/usr/lib/python2.6" and i run this command</p> <div class="code"> <pre> <code>ln -s /usr/src/django/django /usr/lib/python2.6/site-packages</code> </pre></div> <p>and this the output i got</p> <div class="code"> <pre> <code>ls -lh /usr/lib/python2.6/site-packages/django lrwxrwxrwx 1 root root 22 2009-12-21 18:20 /usr/lib/python2.6/site-packages/django -&gt; /usr/src/django/django</code> </pre></div> <div class="code"> <pre> <code>ls -lh /usr/lib/python2.6/site-packages/django/ total 72K drwxr-sr-x 4 root src 4.0K 2009-12-20 21:09 bin drwxr-sr-x 7 root src 4.0K 2009-12-20 21:09 conf drwxr-sr-x 20 root src 4.0K 2009-12-20 21:09 contrib drwxr-sr-x 7 root src 4.0K 2009-12-20 21:09 core drwxr-sr-x 5 root src 4.0K 2009-12-20 21:08 db drwxr-sr-x 3 root src 4.0K 2009-12-20 21:09 dispatch drwxr-sr-x 3 root src 4.0K 2009-12-20 21:09 forms drwxr-sr-x 3 root src 4.0K 2009-12-20 21:08 http -rw-r--r-- 1 root src 25 2009-12-20 21:09 __init__.py drwxr-sr-x 3 root src 4.0K 2009-12-20 21:09 middleware drwxr-sr-x 4 root src 4.0K 2009-12-20 21:09 newforms drwxr-sr-x 3 root src 4.0K 2009-12-20 21:08 oldforms drwxr-sr-x 3 root src 4.0K 2009-12-20 21:09 shortcuts drwxr-sr-x 4 root src 4.0K 2009-12-20 21:09 template drwxr-sr-x 3 root src 4.0K 2009-12-20 21:09 templatetags drwxr-sr-x 3 root src 4.0K 2009-12-20 21:08 test drwxr-sr-x 5 root src 4.0K 2009-12-20 21:09 utils drwxr-sr-x 5 root src 4.0K 2009-12-20 21:09 views</code> </pre></div> <div class="code"> <pre> <code>ls -al /usr/lib/python2.6/site-packages | grep -i django lrwxrwxrwx 1 root root 22 2009-12-21 18:20 django -&gt; /usr/src/django/django</code> </pre></div> <div class="code"> <pre> <code>ls -al /usr/lib/python2.6/site-packages/django lrwxrwxrwx 1 root root 22 2009-12-21 18:20 /usr/lib/python2.6/site-packages/django -&gt; /usr/src/django/django</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659991</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659991</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 20:28:20 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Oops didn't look at Stas' post to carefully before posting. I guess you'll want to use a trailing slash here</p> <div class="code"> <pre> <code>$ ls -al /usr/lib/python2.6/site-packages/django</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659921</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659921</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 17:38:19 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>So it looks like python can't find the django modules/classes. This should be really easy to fix..</p> <p>What is the output from this shell cmd?</p> <div class="code"> <pre> <code>$ ls -al /usr/lib/python2.6/site-packages | grep -i django</code> </pre></div> <p>And this one?</p> <div class="code"> <pre> <code>$ ls -al /usr/lib/python2.6/site-packages/django</code> </pre></div> <p>Which directory did you install django in? (eg, /usr/src/django, /opt/django, /home/foo/Django_5024)</p> <p>My guess is that your symlink points to the django top level directory (eg, /usr/src/django) rather than the subdirectory where the django python modules are (eg, /usr/src/django/django)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659770</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659770</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 13:50:23 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>"import django" is a python command, it should be run in python's command line not system shell. As it fails, it means that django is not installed in the python version you run.</p> <p>To help figuring out what's wrong with your setup, enter this command in the shell:</p> <blockquote> <p>ls -lh /usr/lib/python2.6/site-packages/django</p> </blockquote> <p>It should print the path where your django symlink is pointing. Next command is almost the same, except the trailing slash. It prints the contents of directory where the symlink points.</p> <blockquote> <p>ls -lh /usr/lib/python2.6/site-packages/django/</p> </blockquote> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659724</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659724</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 12:27:36 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>i got this</p> <div class="code"> <pre> <code>user@server:~$ import django The program 'import' can be found in the following packages: * imagemagick * graphicsmagick-imagemagick-compat Try: sudo apt-get install &lt;selected package&gt; import: command not found user@serve1:~$ sudo python import django python: can't open file 'import': [Errno 2] No such file or directory user@server:~$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import django Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: No module named django &gt;&gt;&gt;</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659712</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659712</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 11:54:19 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>And what about this:</p> <blockquote> <p>Type "import django" — do you get an error?</p> </blockquote> <p>If it works then run in python console:</p> <div class="code"> <pre> <code> print(django.__file__)</code> </pre></div> <p>It should output a path name like /usr/lib/python2.6/site-packages/django.pyc . This in necessary to make sure that you don't have some other library/module/script named django that gets imported instead of the django framework.</p> <p>When you run these commands you should be using the same environment as you're going to run in production, i.e. run it with sudo as it may have effect on python environment.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659695</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659695</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 10:57:33 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>You're supposed to replace 2.X with the actual python version</p> </blockquote> <p>i did replace it with 2.6</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659694</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659694</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 10:56:12 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre> <code>Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.</code> </pre></div> <p>and yes there is symlink to django subdirectory</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659676</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659676</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 10:17:48 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Traun meant this:</p> <blockquote> <p>If its 2.<strong>5</strong>, try <span style="text-decoration: underline;">ls /usr/lib/python2.<strong>5</strong>/site-packages</span></p> </blockquote> <p>You're supposed to replace 2.X with the actual python version used here and when running "ln -s …" command in the shell to make a symlink. Your error means that django isn't installed or installed where python can't find it.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659664</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659664</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 09:40:33 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I think maybe Django is not being found by your pyton VM. I looked and the instructions were a little confusing:</p> <div class="code"> <pre> <code>Get Django Django provides the O/R mapping layer to the database, and runs as a WSGI in the webserver and handles all the requests. Django has only been tested up to revision 5024, (in Django source tree). Attempting to run with later versions of Django won't work. cd /usr/src svn co --revision 5024 http://code.djangoproject.com/svn/django/trunk/ django ln -s /usr/src/django/django /usr/lib/python2.x/site-packages See djangoproject.com for more complete instructions.</code> </pre></div> <p>If you followed them literally you'd have a broken symlink.</p> <p>Try this</p> <ul> <li>Type "python" at command line</li> <li>What version of python is it?</li> <li>Type "import django" — do you get an error?</li> <li>If its 2.5, try <a class="newpage" href="http://wikipbx.subwiki.com/code">code</a>ls /usr/lib/python2.x/site-packages<a class="newpage" href="http://wikipbx.subwiki.com/code">/code</a></li> <li>Do you see a symlink to django subdirectory under the directory where you downloaded django to.</li> </ul> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659550</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659550</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 03:38:10 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, i think the forum just fine.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-659549</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-659549</link>
				<description></description>
				<pubDate>Mon, 21 Dec 2009 03:31:33 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello again,</p> <p>well I format my box and install a fresh copy of ubuntu 9.10 server and did every thing in the <a href="http://wikipbx.subwiki.com/installation-manual-0-8">manual</a> . However when i reach Initialize Database i get this</p> <div class="code"> <pre> <code>user@server:/usr/src/wikipbx/wikipbx$ sudo python manage.py syncdb Traceback (most recent call last): File "manage.py", line 30, in &lt;module&gt; from django.core.management import execute_manager ImportError: No module named django.core.management</code> </pre></div> <p>Any help would be much appreciated.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-658838</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-658838</link>
				<description></description>
				<pubDate>Sat, 19 Dec 2009 22:51:06 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>We are working on a version that will work with more recent versions of Django, but in the meantime you have to use an older one (as mentioned). Sorry about the hassle.</p> <p>Also a little off topic, but the forum has a bit dead and we are discussing other options to engage the user community more. Would you prefer a mailing list or a better forum, or does the forum work for you?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-658657</guid>
				<title>Re: Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-658657</link>
				<description></description>
				<pubDate>Sat, 19 Dec 2009 17:03:27 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You're running a version of django that is too new. Please install a supported version as described in the <a href="http://wikipbx.subwiki.com/installation-manual-0-8#toc4">manual</a>.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-205447#post-658605</guid>
				<title>Initialize Database</title>
				<link>http://wikipbx.subwiki.com/forum/t-205447/initialize-database#post-658605</link>
				<description></description>
				<pubDate>Sat, 19 Dec 2009 15:32:04 +0000</pubDate>
				<wikidot:authorName>Solo9300</wikidot:authorName>				<wikidot:authorUserId>418445</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello All,<br /> i am trying to get wikipb to work on my box using this <a href="http://www.example.com">http://wikipbx.subwiki.com/installation-manual-0-8</a> manual. However when i reach Initialize Database i get this</p> <div class="code"> <pre> <code>user@server:~$ cd /usr/src/wikipbx/wikipbx user@server:/usr/src/wikipbx/wikipbx$ sudo python manage.py syncdb Traceback (most recent call last): File "manage.py", line 39, in &lt;module&gt; execute_manager(settings) File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 362, in execute_manager utility.execute() File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 195, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 221, in execute self.validate() File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 249, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/pymodules/python2.6/django/core/management/validation.py", line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/usr/lib/pymodules/python2.6/django/db/models/loading.py", line 131, in get_app_errors self._populate() File "/usr/lib/pymodules/python2.6/django/db/models/loading.py", line 58, in _populate self.load_app(app_name, True) File "/usr/lib/pymodules/python2.6/django/db/models/loading.py", line 74, in load_app models = import_module('.models', app_name) File "/usr/lib/pymodules/python2.6/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/src/wikipbx/wikipbx/../wikipbx/wikipbxweb/models.py", line 98, in &lt;module&gt; class SipProfile(models.Model): File "/usr/src/wikipbx/wikipbx/../wikipbx/wikipbxweb/models.py", line 106, in SipProfile name = models.CharField(maxlength=50, null=False) TypeError: __init__() got an unexpected keyword argument 'maxlength'</code> </pre></div> <p>Any help would be much appreciated.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>