Re: Deploy Django on Apache server

2017-08-09 Thread Andréas Kühne
2017-08-09 9:01 GMT+02:00 Akshay Jagirdar : > Hi Guys, > > Please help me with deployment of Django project on Apache server. > > My System environment... > > OS : Fedora 20 > Python : 2.7 > Django : 1.11 > Apache: 2.4 > > What I know is i have modify httpd.conf file in > /etc/httpd/conf/htt

Deploy Django on Apache server

2017-08-09 Thread Akshay Jagirdar
Hi Guys, Please help me with deployment of Django project on Apache server. My System environment... OS : Fedora 20 Python : 2.7 Django : 1.11 Apache: 2.4 What I know is i have modify httpd.conf file in /etc/httpd/conf/httpd.conf, please help me with this. Thanks, Akshay Jagirdar --

Re: django on apache server

2016-08-18 Thread Asad Jibran Ahmed
Not being able to load CSS points to an Apache config issue. Did you setup apache so your static root configured to serve files from your static folder? Your apache config might be helpful here. Also, what you have pasted here seems like a warning, so while you should fix it, this is probably n

django on apache server

2016-08-18 Thread hirok biswas
while i have configuring django app on apchhe basically it works almost well but shows this error log and css not work what can i do now??? i am using #apache2 #django 1.9.6 ` [Wed Aug 17 14:54:12.747345 2016] [wsgi:error] [pid 17910:tid 139970848413440] /home/hirok/apachetest/venv/lib/python2.

Re: first time deploying django on apache with mod_python on fedora 8

2011-01-28 Thread ashwoods
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,

first time deploying django on apache with mod_python on fedora 8

2011-01-28 Thread n0h8dy
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

Re: Django on Apache

2010-09-26 Thread Vincent den Boer
On Saturday 25 of September 2010 20:36:52 Derek wrote: > Can someone briefly explain the difference between PHP apps -- which > run your code "as is" without need for refreshing the server -- and > Django? The difference is that Django starts once, loads all modules it needs and then starts handl

Re: Django on Apache

2010-09-25 Thread Tim Sawyer
On 25/09/10 19:36, Derek wrote: on several occasions I've made changes to a view, and got a "cannot load page/no response" (from the browser, not a Django error). Once I quit the server (Control-C), start it up again and refresh the page, it works fine. I get that sometimes too - I think it's

Re: Django on Apache

2010-09-25 Thread Derek
Thanks for the quick response, guys. I guess what confuses me is the need to EVER restart the server to pick up changes (excluding db syncs). It's been stated in many places (including Tim's response) that the test server will automatically pickup code changes, but on several occasions I've made

Re: Django on Apache

2010-09-25 Thread Tim Sawyer
's been pretty weird having to restart the Django webserver manually on certain occasions. Is this also the case when running Django on Apache? If not, can I set up Django to run with MAMP locally? If you're developing, you can use the built in test server and that will pick up ch

Re: Django on Apache

2010-09-25 Thread Steven Elliott Jr
ing the > results. > > Django's "syncdb" aside, it's been pretty weird having to restart the > Django webserver manually on certain occasions. Is this also the case > when running Django on Apache? If not, can I set up Django to run > with MAMP locally? >

Django on Apache

2010-09-25 Thread Derek
ing to restart the Django webserver manually on certain occasions. Is this also the case when running Django on Apache? If not, can I set up Django to run with MAMP locally? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Install django on apache

2009-11-25 Thread Christophe Pettus
On Nov 25, 2009, at 12:39 PM, Nadae Ivar BADIO wrote: > i'm new in django and i trying to run django on my production server > who have debian and apache someone can please help me? It's Centos, not Debian, but this might help: http://thebuild.com/blog/2009/10/16/wordpress-to-djan

Install django on apache

2009-11-25 Thread Nadae Ivar BADIO
Hi, i'm new in django and i trying to run django on my production server who have debian and apache someone can please help me? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googleg

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Piotr Górski
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

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Piotr Górski
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

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread 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-packages/django/db/backends/sqlite3/base.py",   > > line 193, in execute > > [Wed Oct 28 23:58:42

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread 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/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

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Piotr Górski
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

Re: Error with admin site while deploying Django on Apache

2009-10-28 Thread Christophe Pettus
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 --~--~-~--~

Error with admin site while deploying Django on Apache

2009-10-28 Thread Piotr Górski
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

Re: Deploying django on apache - cant access database

2009-08-13 Thread consiglieri
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

Re: Deploying django on apache - cant access database

2009-08-12 Thread Graham Dumpleton
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

Re: Deploying django on apache - cant access database

2009-08-11 Thread consiglieri
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

Re: Deploying django on apache - cant access database

2009-08-11 Thread Graham Dumpleton
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

Re: Deploying django on apache - cant access database

2009-08-11 Thread consiglieri
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

Re: Deploying django on apache - cant access database

2009-08-11 Thread Mike Ramirez
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.

Deploying django on apache - cant access database

2009-08-11 Thread consiglieri
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

Re: FIXED: Can't run django on Apache

2009-03-18 Thread Bro
What's the best way to do it ? I don't understand the official tutorial --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsub

Re: FIXED: Can't run django on Apache

2009-03-18 Thread Bro
Thanks Graham !! It works perfectly, you own :) Bro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this g

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Graham Dumpleton
Either way, their dango.root setting is wrong as they are setting it to physical file system path. Remove that whole django.root setting as you do not need it when mounting at root of site. The sooner people stop using mod_python the better. ;-) Graham On Mar 18, 12:41 pm, Karen Tracey wrote:

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Karen Tracey
On Tue, Mar 17, 2009 at 1:54 PM, Bro wrote: > > [snip] > File "/var/lib/python-support/python2.5/django/core/handlers/ > base.py", line 44, in load_middleware >raise exceptions.ImproperlyConfigured, 'Middleware module "%s" > does not define a "%s" class' % (mw_module, mw_classname) > > Imp

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Bro
Hi I've installed Django 1.02 on my dedibox. I'm trying to make .py file readable and executable. Apache, Python, Django are installed. We have many website : /var/www/mysite1 /var/www/mysite2 /var/www/mysite3 we have : /var/django/mysite1 /var/django/mysite2 We configure in /etc/apache2/site-a

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Bro
The result is : SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /home/rex/django/mturk PythonDebug On PythonPath "['/home/rex/django/'] + sys.path"

FIXED: Can't run django on Apache

2009-03-15 Thread Rex
On Mar 14, 7:52 pm, Rex wrote: > On Mar 4, 12:47 pm, John Maines wrote: > > > > > Hello: > > > I've installed Django 1.0 on Ubuntu and am trying to get it to run on > >Apache.Apacheis installed, working fine, with mod-python also in > > place. I'm new at everything Linux. > > > But when I try

Re: Can't run django on Apache

2009-03-14 Thread Malcolm Tredinnick
On Sat, 2009-03-14 at 19:52 -0700, Rex wrote: [...] > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > PythonOption django.root /home/rex/django/mturk *sigh* Will people please stop *guess

Re: Can't run django on Apache

2009-03-14 Thread Rex
On Mar 4, 12:47 pm, John Maines wrote: > Hello: > > I've installed Django 1.0 on Ubuntu and am trying to get it to run on > Apache. Apache is installed, working fine, with mod-python also in > place. I'm new at everything Linux. > > But when I try to run my app (a test blog), Apache gives an > Im

Re: Can't run django on Apache

2009-03-09 Thread jai
just put this line in (/etc/apache2/sites-enabled/000-default) SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonInterpreter mysite Py

Re: Can't run django on Apache

2009-03-06 Thread xankya
One thing I noticed in my windows and sun solaris is that, there is no trailing slash in python paths. When I added trailing slash, apache showed error. So you might as well try removing trailing slash in python paths. --~--~-~--~~~---~--~~ You received this message

Re: Can't run django on Apache

2009-03-04 Thread Danny Brown
l Message- > From: django-users@googlegroups.com > [mailto:django-us...@googlegroups.com]on Behalf Of xankya > Sent: Wednesday, March 04, 2009 4:28 PM > To: Django users > Subject: Re: Can't run django on Apache > > > > I guess u need to set python path to mysit

RE: Can't run django on Apache

2009-03-04 Thread Maines, John
bject: Re: Can't run django on Apache I guess u need to set python path to mysite plus django folders In httpd.conf: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings PythonDebug On PythonPath "['pa

Re: Can't run django on Apache

2009-03-04 Thread xankya
I guess u need to set python path to mysite plus django folders In httpd.conf: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings PythonDebug On PythonPath "['path to mysite', 'path to django'] + sys.path" --~--~--

Can't run django on Apache

2009-03-04 Thread John Maines
Hello: I've installed Django 1.0 on Ubuntu and am trying to get it to run on Apache. Apache is installed, working fine, with mod-python also in place. I'm new at everything Linux. But when I try to run my app (a test blog), Apache gives an ImportError message (below) I have come across NUMEROUS

Re: Django on Apache (mod_python) administration cookie problem

2008-11-04 Thread Dave Dash
I had cleared the cookies, I also tried in another browser as well - same result. On Nov 3, 10:50 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 4, 5:08 pm, Dave  Dash <[EMAIL PROTECTED]> wrote: > > > I am witnessing this issue using manage.py runserver. > > > The only useful informatio

Re: Django on Apache (mod_python) administration cookie problem

2008-11-03 Thread Graham Dumpleton
On Nov 4, 5:08 pm, Dave Dash <[EMAIL PROTECTED]> wrote: > I am witnessing this issue using manage.py runserver. > > The only useful information I can give is this was working when I was > running .97 (or whatever was the trunk a few months back), I recently > upgraded to the latest trunk (~1.1)

Re: Django on Apache (mod_python) administration cookie problem

2008-11-03 Thread Dave Dash
I am witnessing this issue using manage.py runserver. The only useful information I can give is this was working when I was running .97 (or whatever was the trunk a few months back), I recently upgraded to the latest trunk (~1.1) and now continually get this message. I suspect something has chan

Re: Django on Apache (mod_python) administration cookie problem

2008-10-24 Thread Graham Dumpleton
On Oct 25, 11:59 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Graham, > Option 3: I use other utilities like wordpress and phpMyAdmin, so I cannot > afford to disable php completely > Option 2: I use Linux Mint (Ubuntu variant) for developement and Debian Etch > for production. So for option 2,

Re: Django on Apache (mod_python) administration cookie problem

2008-10-24 Thread M.Ganesh
Graham, Option 3: I use other utilities like wordpress and phpMyAdmin, so I cannot afford to disable php completely Option 2: I use Linux Mint (Ubuntu variant) for developement and Debian Etch for production. So for option 2, I will require two sets of instructions, which means more trouble fo

Re: Django on Apache (mod_python) administration cookie problem

2008-10-21 Thread Graham Dumpleton
On Oct 22, 10:52 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi Daniel, > > I am also facing the same problem. I really can't understand the > technicalities of the solution offered in this thread. Since you seemed > to have solved the problem, can you please give a little more details on > how

Re: Django on Apache (mod_python) administration cookie problem

2008-10-21 Thread M.Ganesh
Hi Daniel, I am also facing the same problem. I really can't understand the technicalities of the solution offered in this thread. Since you seemed to have solved the problem, can you please give a little more details on how to do it Thanks in advance Regards Ganesh Daniel bodom_lx Grazioti

Re: django on apache looses all styling

2008-10-16 Thread Dj Gilcrease
In your settings.py file there is a MEDIA_URL setting and an ADMIN_MEDIA_PREFIX setting In my case I have MEDIA_URL = 'http://media.digitalxero.net/' + SITE_NAME + '/' ADMIN_MEDIA_PREFIX = 'http://media.digitalxero.net/admin/' That way all of my static files are server off my CDN (Separate serve

Re: django on apache looses all styling

2008-10-16 Thread William Purcell
I see that django documentation says to copy the admin media files so that they live within your Apache document root. I have put the media files from the django/contrib in the Apache document root. How does django/apache see them? On Thu, Oct 16, 2008 at 2:42 PM, William Purcell <[EMAIL PROTECTED

django on apache looses all styling

2008-10-16 Thread William Purcell
I am new to django, and web development in general for that matter, so please bear with me. I have done the introductory tutorial at the django web site. Everything works fine. I have now installed apache and I'm trying to serve django with mod_python installed in apache. I can now browse to localh

Re: Django on Apache (mod_python) administration cookie problem

2008-10-10 Thread Daniel bodom_lx Graziotin
Thank you very much for your replies, Alvaro and Graham! Removing php5-mhash solved the problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@g

Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Graham Dumpleton
On Oct 1, 10:56 am, Álvaro Justen <[EMAIL PROTECTED]> wrote: > Daniel bodom_lx Graziotin wrote: > > Hi everybody! I'm a new Django developer and for learning the > > framework I decided to create (another) pastebin clone that I > > published onhttp://incollo.com > > The application works very we

Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Álvaro Justen
Ah, some details: -> Admin interface runs OK with python manage.py runserver - as of it is an Apache error, Django's web server isn't affected by this bug. -> I'm using Debian etch as server: I've installed Apache, PHP and mod_php with Debian packages, but Django installed manually. -> Versions:

Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Álvaro Justen
Daniel bodom_lx Graziotin wrote: > Hi everybody! I'm a new Django developer and for learning the > framework I decided to create (another) pastebin clone that I > published on http://incollo.com > The application works very well and I'm very proud of it because I > started learning Django six days

Django on Apache (mod_python) administration cookie problem

2008-09-29 Thread Daniel "bodom_lx" Graziotin
Hi everybody! I'm a new Django developer and for learning the framework I decided to create (another) pastebin clone that I published on http://incollo.com The application works very well and I'm very proud of it because I started learning Django six days ago :-) Anyway.. I'm having problems in ac

Deploying Django on Apache

2008-07-22 Thread Pepsi330ml
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

Re: Deploying Django on Apache

2008-07-22 Thread Pepsi330ml
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

Re: Deploying Django on Apache

2008-07-22 Thread arsyed
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

Re: Django on apache and mod_python.... and problems

2008-06-22 Thread foxbunny
On Jun 22, 5:59 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > I'm assuming you have papastudio.blog listed in INSTALLED_APPS? > > Does apache have read access to the whole tree under  /papastudio, including > blog?  It seems apache can read /papastudio, otherwise you'd get an > 'ImportError: No

Re: Django on apache and mod_python.... and problems

2008-06-21 Thread Will Larson
Hi, > The summary of error messages is this: > >> AttributeError: 'module' object has no attribute 'blog' > > I've made sure that /papastudio/blog has __init.py__, and that it's > listed in INSTALLED_APPS (which is logical since the site actually > works if I ./manage.py runserver). Did you follo

Re: Django on apache and mod_python.... and problems

2008-06-21 Thread Karen Tracey
On Sat, Jun 21, 2008 at 9:02 PM, foxbunny <[EMAIL PROTECTED]> wrote: > > Hi, list, > > I'm trying to deploy a very simple Django app, and it's driving me > crazy. I've followed the docs and set up Apache with mod_python. Then > I uploaded the app, did syncdb, and everything works when I ./ > manag

Django on apache and mod_python.... and problems

2008-06-21 Thread foxbunny
Hi, list, I'm trying to deploy a very simple Django app, and it's driving me crazy. I've followed the docs and set up Apache with mod_python. Then I uploaded the app, did syncdb, and everything works when I ./ manage.py runserver on the remote host, but httpd won't serve it. I'm using Django trun

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread HangingClowns
; > > to load and that is how django starts up. The third part is a > > templates > > > > > directory, which is where all the django templates go. The last part > > is > > > > the > > > > > SQL we won't get into that here

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread Michael
t; > > be defined by you inside of settings.py. Apache (generally www-data) > > > should > > > > be given permission to read and execute these files. > > > > > > You should make sure django is in your python path. This is simple > open > > &

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread HangingClowns
simple open > > up a > > > python shell and type 'import django'. make sure your project is in a > > python > > > path. This is done with the PythonPath in the config file. Other than > > that > > > read up on how apache configuration works and

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread Michael
rtualHost that I have included from my main > apache.conf > > file:http://dpaste.com/43421/ > > > > I hope that helps you all: > > > > Michael > > > > On Sun, Apr 6, 2008 at 8:03 AM, <[EMAIL PROTECTED]> wrote: > > > > > Exact same issue

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread HangingClowns
un, Apr 6, 2008 at 8:03 AM, <[EMAIL PROTECTED]> wrote: > > > Exact same issue here. Tried everything listed. Any other ideas or > > possibly a sample config for httpd.conf on ubuntu. > > > Thanks in advance for your help > > > -Original Message- > > From:

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread Michael
: > > Exact same issue here. Tried everything listed. Any other ideas or > possibly a sample config for httpd.conf on ubuntu. > > Thanks in advance for your help > > > > > > -Original Message- > From: Will Boyce <[EMAIL PROTECTED]> > Sent: Sunday

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread keith
figure Mod_Python fo Django on Apache server on Ubuntu Assuming your django project (mysite) is in /home/webmaster/ public_html/django/ then you'll want a trailing "/" in your PythonPath. Hope this helps. On Apr 5, 9:53 pm, HangingClowns <[EMAIL PROTECTED]> wrote: > I s

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread Graham Dumpleton
On Apr 6, 5:23 pm, Will Boyce <[EMAIL PROTECTED]> wrote: > Assuming your django project (mysite) is in /home/webmaster/ > public_html/django/ then you'll want a trailing "/" in your > PythonPath. No you don't. Trailing slash shouldn't make any difference. What gives you that idea? Graham > H

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread Will Boyce
Assuming your django project (mysite) is in /home/webmaster/ public_html/django/ then you'll want a trailing "/" in your PythonPath. Hope this helps. On Apr 5, 9:53 pm, HangingClowns <[EMAIL PROTECTED]> wrote: > I should have the latest versions available for Apache and mod_python > cause I just

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-05 Thread HangingClowns
What's the syntax for that? Is that like that chmod? On Apr 5, 5:08 pm, Michael <[EMAIL PROTECTED]> wrote: > Simply django can't find your settings.py file. This could be a few things > but based on where the file is located my bet is that the apache process > (most likely www-data on ubuntu) doe

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-05 Thread Michael
Simply django can't find your settings.py file. This could be a few things but based on where the file is located my bet is that the apache process (most likely www-data on ubuntu) doesn't have permissions to access your settings.py file. Give www-data permissions to access the file and you should

Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-05 Thread HangingClowns
I should have the latest versions available for Apache and mod_python cause I just put those onto my server about 2 weeks ago. I'm having trouble understanding how to edit the Apache config file for Django. I currently use the code snippet below for my settings in Apache. And this is what the erro

Re: How to install django on Apache/Linux

2007-08-19 Thread Graham Dumpleton
On Aug 19, 11:04 pm, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > If my site is under /var/www/html/python, with the settings file as / > > var/www/html/python/foo/settings.py should I write, > > SetEnv DJANGO_SETTINGS_MODULE foo.settings > > (o

Re: How to install django on Apache/Linux

2007-08-19 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > If my site is under /var/www/html/python, with the settings file as / > var/www/html/python/foo/settings.py should I write, > SetEnv DJANGO_SETTINGS_MODULE foo.settings > (or) SetEnv DJANGO_SETTINGS_MODULE python.foo.settings Python imports stuff ba

Re: How to install django on Apache/Linux

2007-08-18 Thread James Bennett
On 8/19/07, shabda <[EMAIL PROTECTED]> wrote: > I am *very* confused here, I have only installed mod_python, and > nothing specific to django. SO how would the line > PythonHandler django.core.handlers.modpython work? If you have Django installed on the server and on the Python path, it will wor

How to install django on Apache/Linux

2007-08-18 Thread shabda
I have apache installed on linux with mod_php, mysql. I am trying to get django working here, and am following the intsallation steps at http://www.djangobook.com/en/beta/chapter21/ . Step 1. Install mod_python did yum install mod_python. Checked that mod_python is installed. Step 2. Add this to y

Re: CSS question: django on apache/mod_python

2007-07-09 Thread [EMAIL PROTECTED]
> The results of the above telnet > *should* (on a compliant proxy) leak a little info about the > proxy server in the HTTP headers. Got it! Thanks -- I looked at the HTTP header for the CSS file, and 'Vary' was set to 'cookie'. Cleared cookies in my browser (not a default when clearing cache

Re: CSS question: django on apache/mod_python

2007-07-09 Thread Tim Chase
> I'm running Django 0.95 on Apache 2.0, using mod_python 3.3.1, > and I use SSH to connect to my server. After a few days of > shuffling and cursing and fiddling, I've got everything > running nicely: apps work, dbs work, templates work, css > works. But, I've found that when I make CSS changes

CSS question: django on apache/mod_python

2007-07-09 Thread [EMAIL PROTECTED]
Hey all -- I've run into an unexpected situation, but feel it may be due more to my inexperience than any innate weirdness. Perhaps someone can explain? I'm running Django 0.95 on Apache 2.0, using mod_python 3.3.1, and I use SSH to connect to my server. After a few days of shuffling and cursi

Re: How to setup Django on Apache with correct rights and owners

2007-06-20 Thread Joel
> If you are not going to modify your application directories/files > through apache, a read permission for apache would be sufficient. Is this correct? I'm under the impression apache needs write access to the directories so it can create the pyc files. Otherwise you're going to have really

Re: How to setup Django on Apache with correct rights and owners

2007-06-20 Thread Ramashish Baranwal
On Jun 20, 8:29 pm, Pythoni <[EMAIL PROTECTED]> wrote: > I use Django with Apache and it runs great. > I have root access to the server. > But still I am not sure what are the best raccess rights for : > settings.py > for files in > models and views directories and for directories themselves. > W

Re: How to setup Django on Apache with correct rights and owners

2007-06-20 Thread Paul Rauch
Pythoni schrieb: > I use Django with Apache and it runs great. > I have root access to the server. > But still I am not sure what are the best raccess rights for : > settings.py > for files in > models and views directories and for directories themselves. > What owner shall I use? root or httpd o

How to setup Django on Apache with correct rights and owners

2007-06-20 Thread Pythoni
I use Django with Apache and it runs great. I have root access to the server. But still I am not sure what are the best raccess rights for : settings.py for files in models and views directories and for directories themselves. What owner shall I use? root or httpd or different? Thank you for help