is there any reason you are using mod_python instead of, say, wsgi?
modpython is deprecated and there are "better" alternatives.
id start with that. looking in apache logs to find out why you have
the 500 error might help.
(a hunch tells me it might be a python path error)
ash
On 28 Jan., 07:45,
Hi,
I'm trying to get my first Django app up and running on amazon ec2
fedora 8 instance on apache with mod_python. I've got mod_python MySQL-
python python-devel Django mysql-server installed.
I've got the homepage to show up, but its a very simple view that just
returns text. Anything more comp
Yes, changing directory permissions helped. Thanks.
2009/10/29 Graham Dumpleton
>
>
>
> On Oct 29, 10:21 am, Christophe Pettus wrote:
> > On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote:
> >
> > > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/
> > > usr/lib/python2.6/site-p
Yes, I must have overlooked that. Changing permissions helped.
I really appreciate your help. Thanks.
2009/10/29 Christophe Pettus
>
>
> On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote:
> > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/
> > usr/lib/python2.6/site-packages/dj
On Oct 29, 10:21 am, Christophe Pettus wrote:
> On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote:
>
> > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/
> > usr/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py",
> > line 193, in execute
> > [Wed Oct 28 23:58:42
On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote:
> [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/
> usr/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py",
> line 193, in execute
> [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] return
> Databa
On attempt to visit http://localhost/meth/admin/ I get the following in the
Apache error log:
[Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] mod_wsgi
(pid=2655): Exception occurred processing WSGI script
'/var/www/meth/apache/django.wsgi'.
[Wed Oct 28 23:58:42 2009] [error] [client 85.2
On Oct 28, 2009, at 3:44 PM, Piotr Górski wrote:
> When I try to go to admin site, I get 500 internal
> server error (admin site works perfectly well on development server).
Is there anything interesting in the Apache error log?
--
-- Christophe Pettus
x...@thebuild.com
--~--~-~--~
I have a small Django website which I am trying to run on an Apache
2.2 HTTP-Server. The application is running fine using "python
manage.py runserver". It is also running fine on Apache, except for
the admin site. When I try to go to admin site, I get 500 internal
server error (admin site works p
Graham,
I'll take a look at mod_wsgi.
But first i have to figure out proper urls and settings for css and
javascript.
Once again thanks a lot.
Thomas
On 12 Aug, 11:09, Graham Dumpleton wrote:
> On Aug 12, 3:43 pm, consiglieri wrote:
>
>
>
>
>
> > Thanks Graham!
>
> > The absolute path was
On Aug 12, 3:43 pm, consiglieri wrote:
> Thanks Graham!
>
> The absolute path was the issue. Can't believe I couldnt find that
> anywhere.
>
> As for the Alias, well i was just testing to make sure that wasnt an
> issue.And its in the httpd.conf , for perl-cgi you need that so since
> i was hav
Thanks Graham!
The absolute path was the issue. Can't believe I couldnt find that
anywhere.
As for the Alias, well i was just testing to make sure that wasnt an
issue.And its in the httpd.conf , for perl-cgi you need that so since
i was having issues i decided to try and see if it was causing my
For SQLite database, the directory the database is in must also be
writable to user that Apache runs as. The location of the database in
settings file must also be an absolute path, can't use a relative
path.
BTW, what is:
Alias test.django.com "/Users/someone/djangoproject/appname"
for in co
Thanks for the tip, however it does not make a difference. I moved the
app to another catalogue and made sure that the database file was
chmod to 755 and also that all directories have the same permissions.
The error remains.
There is something happening that i dont understand. I'm beginning to
t
On Tuesday 11 August 2009 09:43:38 am consiglieri wrote:
> Hi
>
> I'm new with django and have made a small test app which works as it
> should with the development server.
>
> However when i try and deploy it with apache and mod_python I cant get
> it to work. I have tested that mod_python works.
Hi
I'm new with django and have made a small test app which works as it
should with the development server.
However when i try and deploy it with apache and mod_python I cant get
it to work. I have tested that mod_python works. I can do the
recommended mod_python test. When i try to run the djan
This is my file system structure
WebApplication
-> 0.9
->lib (log4py)
->src (the Django Code)
This is the command i used to run the Django Application from console.
$ PYTHONPATH=lib/:src/ DJANGO_SETTINGS_MODULE=settings src/manage.py
runserver
PYTHONPATN=lib/:src/
The above command is
YES!!!
It worked!!
Now onto another problem.
Database settings, my original settings is postgresql_psycopg2
Running from command line, the web application can access the database
with no problem.
Running off apache, i have a interface error complaining the
connection is closed.
Then i change
On Tue, Jul 22, 2008 at 5:47 AM, Pepsi330ml <[EMAIL PROTECTED]> wrote:
>
> like this?
>
> NameVirtualHost 127.1.1.1
>
>...
>PythonDebug On
>
>PythonPath "[/home/Documents/WebApplication/
> 0.1/',#the
> main directory for the
19 matches
Mail list logo