Yeah, you have to create django databases manually.
Running manage.py synchdb sorted this one out.
I'm now getting this error on the webpage:
Request Method: GET
Request URL: http://127.0.0.1:8092/
Django Version: 1.2.3
Exception Type: DatabaseError
Exception Value:
relation "auth_user" does not exist
LINE 1: …ser"."last_login", "auth_user"."date_joined" FROM "auth_user…
^
Exception Location: /usr/lib/pymodules/python2.6/django/db/backends/postgresql_psycopg2/base.py in execute, line 44
Python Executable: /usr/bin/python
Seems my problem was I had both wikipbx's of (wikipbx.wkipbx) as modules and in python path, hence causing confusion.
But now that's OK.
Will post my current problem in a new post.
Thanks
What version are you running? Did you install from repository or from release archive?
Anyway, you can probably just add /usr/src/wikipbx/wikipbx to WSGIPythonPath setting in your apache config to get it to work.
When I try to access my wikipbx site, I'm getting the error message in the summary above on my apache log.
I can however access the module in question via »>import wikipbxweb, and I have no other python environment in my machine.
I've tried various things, including changing ownership of the wikipbxweb directory to www-data (both apache and mod_wsgi use this).
What could be the problem?
Thanks
Aza
Thanks Stas, this project is looking GREAT and moving to Launchpad was a perfect decision…
Alias /soundclips /usr/src/wikipbx/soundclips
Alias /site_media /usr/src/wikipbx/wikipbx/wikipbxweb/static
Looks like it was missing in the docs, I've updated them.
How do I configure Apache for '/site_media/' (i.e. MEDIA_ROOT) and '/soundclips_media/'
Thanks
Aza
thanks for the answer
You're right, those libraries are not maintained for years. We've got rid of pyxml in trunk version already and there are plans to use native python logging instead of log4py.
It should work on all django DB backends, as we don't use any hand-written SQL code. We haven't tested 0.8 on anything but postgres, so there's some possibility of getting issues with django ORM, but it's not very likely. I'm running trunk version on sqlite without any problems, but you should be awart that its write performance is not stellar, it's not something you'd want to run in production under heavy load.
hello,
i see that wikipbx depends on log4py and python-xml which looks like are dead projects. They also aren't in recent debian versions anymore. Is there a plan to remove them as dependency? Also does wikipbx work on any database django works, i.e. sqlite?
in discussion WikiPBX / Technical Support » I've missed something. settings.py not found.
Looks like your configs are correct. There's no error if you import wikipbx settings module, except when you do it in apache. Most likely, you've got some issue with mod_wsgi.
What OS distro and python version are you running? Is that the default python version for your OS? Did you install binary build of mod_wsgi or compile it yourself? You may need to build mod_wsgi if you've installed binary that doesn't work for unknown reason.
Also, if you've installed mod_python along with mod_wsgi, you may have some problems with running python code under apache.
in discussion WikiPBX / Technical Support » I've missed something. settings.py not found.
PYTHONPATH=/usr/src/wikipbx python -c "from wikipbx import settings"
Comes right back with no messages.
root@freeswitch:/etc/apache2/sites-enabled# grep WSGIPythonPath *
wikipbx:WSGIPythonPath /usr/src/wikipbx:/usr/src/django:/usr/src/freeswitch/libs/esl/python
Full log contents at http://fayettedigital.com/wlog.txt
Thanks,
Jim.
in discussion WikiPBX / Technical Support » I've missed something. settings.py not found.
No problem, I've moved it to tech support thread.
in discussion WikiPBX / Technical Support » I've missed something. settings.py not found.
Ok, in such case you should make sure you don't have any syntactic errors in your settings, try running this:
PYTHONPATH=/usr/src/wikipbx python -c "from wikipbx import settings"
If it doesn't give you an error, make sure that your apache config has /usr/src/wikipbx as one of the values of WSGIPythonPath directive.
in discussion WikiPBX / Technical Support » I've missed something. settings.py not found.
I apologize for posting in the announcements forum. I didn't realize I did that until just now.
in discussion WikiPBX / Technical Support » I've missed something. settings.py not found.
Hi, Stas,
Can you be more specific? I did everything in that section as described. The only questionable part is the
modify FREESWITCH_URL_PORT and change the current value to http://wikipbx.yourserver.net, where yourserver.net MUST be replaced with the domain name you are planning on using.
Section. Since I'm behind a firewall I don't have a domain defined so I've set it to http://127.0.0.1. I fail to see how that affects the failure of python to find the settings.py file.
root@freeswitch:/usr/src/wikipbx/wikipbx# ls
authutil.py init.pyc settings.py urls.py
cdrutil.py ivr settings.pyc utils.py
dialplanbuilder.py logger.py settings_template.py utils.pyc
extensionutil.py logger.pyc sofiautil.py wikipbxweb
freeswitchxml mailutil.py sofiautil.pyc xmlconfig.py
fseventlogger.py manage.py statics.py xmlutil.py
fsutil.py migrate.py ttsutil.py
init.py modelutils.py twisted
Thanks,
Jim.
in discussion WikiPBX / Technical Support » I've missed something. settings.py not found.
in discussion WikiPBX / Technical Support » I've missed something. settings.py not found.
I see in the /usr/src/wikipbx/wikipbx.wsgi file this line:
os.environ['DJANGO_SETTINGS_MODULE'] = 'wikipbx.settings'
And I see in the /etc/apache2/sites-available/wikipbx file
WSGIScriptAlias / /usr/src/wikipbx/wikipbx.wsgi
But I fail to find where apache has been told where the wikipbx.settings file is located.
Hence the following message:
[Thu Aug 05 09:22:54 2010] [error] [client 192.168.2.90] mod_wsgi (pid=31296): Exception occurred within WSGI script '/usr/src/wikipbx/wikipbx.wsgi'.
…
[Thu Aug 05 09:22:54 2010] [error] [client 192.168.2.90] raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)
[Thu Aug 05 09:22:54 2010] [error] [client 192.168.2.90] EnvironmentError: Could not import settings 'wikipbx.settings' (Is it on sys.path? Does it have syntax errors?): No module named wikipbx.settings
So where did I miss the relationship?
Thanks,
Jim.





