Jump to content

Recommended Posts

Posted

I am sorry,

but after having tried several times

my Django application doesen't work.

I use at home Django 1.0.2 and I know that the server installation is 1.0.

Might this be the problem?

 

Extract from error.log:

[sun Jul 19 21:01:26 2009] [error] [client 93.35.54.59] File does not exist: /home/roger8/public_html/500.shtml

[sun Jul 19 21:01:26 2009] [error] [client 93.35.54.59] File "/home/roger8/public_html/arcadomus/dispatch.wsgi", line 9, in application

[sun Jul 19 21:01:26 2009] [error] [client 93.35.54.59] mod_wsgi (pid=27090): Exception occurred processing WSGI script '/home/roger8/public_html/arcadomus/dispatch.wsgi'.

 

 

Thanks in advance

Ruggero

 

 

Posted

I have done some changes on my settings.py,

but i still have Internal Server Error...

Could it be that there are some errors in the configuration?!

 

Sorry to bother you.

 

Ruggero

 

 

Posted

After a lot of work, probably to my misunderstand, this the dispatch.wsgi file:

 

import os, sys

sys.path.append("/home/roger8/public_html/"); <--- NOTE THIS [my django project is in ..../public_html/arcadomus]

os.environ['DJANGO_SETTINGS_MODULE'] = 'arcadomus.settings' <-- NOTE THIS [not settings but arcadomus.settings]

os.environ['PYTHON_EGG_CACHE'] = '/home/roger8/.python_egg_cache'

import django.core.handlers.wsgi

_application = django.core.handlers.wsgi.WSGIHandler()

def application(environ, start_response):

environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']

return _application(environ, start_response)

 

All the request are in the form: www.arcadomus.heliohost.org/arcadomus/dispatch.wsgi/ <-- NOTE THIS

 

I changed url.py according the new urls, example:

(r'^arcadomus/dispatch.wsgi/$', 'arcadomus.main.views.index'),

 

 

Finally:

the site work, but the admin page give me an internal server error

 

I hope in some help :)

 

Ruggero

Posted

I'm going to try making a Django site on my own and see if I can fix the problem. I'll keep you updated.

  • 2 weeks later...
Posted

So has anybody made progress on getting the admin working for Django? Or is this thread totally dead?

Posted

Sorry for the delay. Here are the relevant errors when I try to load that page:

[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112] mod_wsgi (pid=18180): Exception occurred processing WSGI script '/home/roger8/public_html/arcadomus/dispatch.wsgi'.
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112] Traceback (most recent call last):
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/home/roger8/public_html/arcadomus/dispatch.wsgi", line 9, in application
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     return _application(environ, start_response)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 243, in __call__
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     response = middleware_method(request, response)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/contrib/sessions/middleware.py", line 35, in process_response
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     request.session.save()
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/contrib/sessions/backends/db.py", line 58, in save
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     obj.save(force_insert=must_create)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/db/models/base.py", line 311, in save
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     self.save_base(force_insert=force_insert, force_update=force_update)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/db/models/base.py", line 383, in save_base
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     result = manager._insert(values, return_id=update_pk)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/db/models/manager.py", line 138, in _insert
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     return insert_query(self.model, values, **kwargs)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/db/models/query.py", line 894, in insert_query
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     return query.execute_sql(return_id)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/db/models/sql/subqueries.py", line 309, in execute_sql
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     cursor = super(InsertQuery, self).execute_sql(None)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/db/models/sql/query.py", line 1734, in execute_sql
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     cursor.execute(sql, params)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/db/backends/util.py", line 19, in execute
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     return self.cursor.execute(sql, params)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]   File "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/base.py", line 168, in execute
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112]     return Database.Cursor.execute(self, query, params)
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112] OperationalError: attempt to write a readonly database
[Wed Aug 05 19:10:15 2009] [error] [client 131.107.0.112] File does not exist: /home/roger8/public_html/500.shtml
[Wed Aug 05 10:10:16 2009] [error] [client 131.107.0.112] File does not exist: /home/roger8/public_html/favicon.ico
[Wed Aug 05 10:10:16 2009] [error] [client 131.107.0.112] File does not exist: /home/roger8/public_html/404.shtml

Posted

Thanks djbob,

I resolved one problem: access permission on data.db and directory must be 777.

But I have some problems with the mapped urls:

 

Page not found (404)

Request Method: POST

Request URL: http://www.arcadomus.heliohost.org/arcadom...min/main/entry/

 

Using the URLconf defined in arcadomus.urls, Django tried these URL patterns, in this order:

 

1. ^arcadomus/dispatch.wsgi/$

2. ^arcadomus/dispatch.wsgi/index_entries

3. ^images/(?P<path>.*)$

4. ^docs/(?P<path>.*)$

5. ^arcadomus/dispatch.wsgi/admin(.*)

 

The current URL, arcadomus/dispatch.wsgi/arcadomus/dispatch.wsgi/admin/main/entry/, didn't match any of these.

 

I will work about this error.

Ruggero

 

Posted

A correctly configured .htaccess should be able to get rid of the "dispatch.wsgi" in that URL. Let me know if you figure anything out :)

Posted

Today is my first time to use joomla. I have problem with installation but its ok now.

Now i have problem when i put some news and one picture after that i wanna write more about that in READ MORE... but when i click READ MORE... going in to Control Panel :S

 

vesti.con.mk

 

you can see the page

 

how to fix this?

_____________________________________

Website I designed for canadian payday loan company.

Posted

Make a new topic; don't post in an existing one with an unrelated post. Anyways, if you want support for Joomla go ask the Joomla folks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...