Re: deploy django and apache mod wsgi

2014-01-20 Thread Timothy W. Cook
On Mon, Jan 20, 2014 at 11:32 AM, parnigot wrote: > Can you post: > > >- your_app.wsgi file >- apache version >- apache configuration >- apache error.log > > > AND! your OS And version. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: deploy django and apache mod wsgi

2014-01-20 Thread Toran Billups
Also what does your httpd.conf file look like? Are you doing a deny from all anywhere? On Monday, January 20, 2014 3:36:04 AM UTC-6, George Alvarado wrote: > > I try deploy django and apache2 apache2 mod-wsgi. An app for tets and open > the bowser, navigate in the correct url it says "error 40

Re: deploy django and apache mod wsgi

2014-01-20 Thread parnigot
Can you post: your_app.wsgi file apache version apache configuration apache error.log Cheers, Il giorno 20/gen/2014, alle ore 10:36, George Alvarado ha scritto: > I try deploy django and apache2 apache2 mod-wsgi. An app for tets and open > the bowser, navigate in the correct url it says "err

deploy django and apache mod wsgi

2014-01-20 Thread George Alvarado
I try deploy django and apache2 apache2 mod-wsgi. An app for tets and open the bowser, navigate in the correct url it says "error 403 tes.com cant acces / on this server", i know its about permisions but how can fix it? -- You received this message because you are subscribed to the Google Group

Re: Django and apache

2013-05-12 Thread Venkatraman S
Set STATIC_ROOT in your settings.py and run 'collectstatic'. You need not mention in your /static/admin /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin in your apache conf then. On Mon, May 13, 2013 at 7:16 AM, Stanley Agba wrote: > Thanks Guys, > The server is up and running w

Re: Django and apache

2013-05-12 Thread Stanley Agba
Thanks Guys, The server is up and running with mod_wsgi, tho the admin page is not loading with the static files. I have added this to my apache.conf file: Alias /static/admin /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin Kind of stuck after this On Sunday, 12 May 2013 11

Re: Django and apache

2013-05-12 Thread Venkatraman S
What i am going to suggest is totally orthogonal to your requirement as i am not helping you with apace+mod_wsgi. Though this generally works, but i think you should consider nginx if you are thinking about new deployments or learning this skill. And the reasons why i suggest nginx? Well.. 1. extr

Re: Django and apache

2013-05-12 Thread Branko Majic
On Sun, 12 May 2013 03:17:04 -0700 (PDT) Stanley Agba wrote: > Hello guys, > please I'm kind of a noob at django and I'm trying to deploy a django > site on Apache with mod_wsgi, I am not using a virtualenv as the > server has python installed. > I added the following to my /etc/apache2/apache2.

Django and apache

2013-05-12 Thread Stanley Agba
Hello guys, please I'm kind of a noob at django and I'm trying to deploy a django site on Apache with mod_wsgi, I am not using a virtualenv as the server has python installed. I added the following to my /etc/apache2/apache2.conf ServerName example ServerAlias example ServerAdmin exa

Help with Django and Apache

2010-01-05 Thread Chris McComas
I have a site built with Django, we're switching things up and will be running ExpressionEngine as our main CMS for the "front-end" / marketing piece of our site. We will have two Django apps running elsewhere on the site, one is a Course Management Software we built in house, the other is an onlin

Re: newie, django and apache, somethings are not working

2008-12-20 Thread Jeff FW
> the last line of the error is > > * > OperationalError: unable to open database file > ** > > NOtes: I have put the complete path for the DB /home/XXX/djangoProys/ > mysite2/DBmysite2, and I tried change permissions for database file Make sure that apache can read and write the database

newie, django and apache, somethings are not working

2008-12-19 Thread jjgarsal
Finally I finish the tutorial at http://docs.djangoproject.com/en/dev/intro/tutorial04/#intro-tutorial04 the example completly work on the WebServer test (the admin, questions and the polls, everything). Then when I tried to execute the application at apache server (I install mod_python, etc.) u

Re: Trouble setting up Django and Apache

2007-03-25 Thread Malcolm Tredinnick
Hi Ben, On Sun, 2007-03-25 at 14:23 -0700, benrawk wrote: > Hello all, > > With Graham's hint about possible problems caused by SELinux, I > finally figured out what was going on. Django can now serve pages! > Here is what I learned: Firstly, well done for sticking at solving the problem rather

Re: Trouble setting up Django and Apache

2007-03-25 Thread benrawk
Hello all, With Graham's hint about possible problems caused by SELinux, I finally figured out what was going on. Django can now serve pages! Here is what I learned: SELinux is installed and running by default on Fedora Core 6. This means that along with the correct file permissions, for files t

Re: Trouble setting up Django and Apache

2007-03-23 Thread Graham Dumpleton
On Mar 23, 6:47 pm, "benrawk" <[EMAIL PROTECTED]> wrote: > Thank you again for helping. FYI, I am using Fedora Core 6. I set > 'PythonHandlermod_python.testhandler' in httpd.conf and got a bunch > of info. The sys.path appears to be correct...relevant bits, and then > full text beneath. > > sys.pa

Re: Trouble setting up Django and Apache

2007-03-22 Thread benrawk
Thank you again for helping. FYI, I am using Fedora Core 6. I set 'PythonHandler mod_python.testhandler' in httpd.conf and got a bunch of info. The sys.path appears to be correct...relevant bits, and then full text beneath. sys.path containes /home/benrawk REQUEST_URI /mysite/ SCRIPT_NAME

Re: Trouble setting up Django and Apache

2007-03-22 Thread Graham Dumpleton
On Mar 23, 2:49 pm, "benrawk" <[EMAIL PROTECTED]> wrote: > Also, when I import and print sys.path into a python session, with > apache running in the background, sys.path does not include '/home/ > benrawk'. Is it supposed to? Is there a way I can check the value of > PythonPath as it is defined i

Re: Trouble setting up Django and Apache

2007-03-22 Thread Malcolm Tredinnick
On Fri, 2007-03-23 at 03:49 +, benrawk wrote: > Also, when I import and print sys.path into a python session, with > apache running in the background, sys.path does not include '/home/ > benrawk'. Is it supposed to? No, they are different processes. Apache will only adjust sys.path for the py

Re: Trouble setting up Django and Apache

2007-03-22 Thread dougeven
I don't know if it's an encouraged practice, but I established a symbolic link to my app folder in site-packages which ensures that the app is in the python path. Until I did that I received the same error from apache as you have. On Mar 22, 10:49 pm, "benrawk" <[EMAIL PROTECTED]> wrote: > Also,

Re: Trouble setting up Django and Apache

2007-03-22 Thread benrawk
Also, when I import and print sys.path into a python session, with apache running in the background, sys.path does not include '/home/ benrawk'. Is it supposed to? Is there a way I can check the value of PythonPath as it is defined in httpd.conf? On Mar 22, 8:37 pm, "benrawk" <[EMAIL PROTECTED]>

Re: Trouble setting up Django and Apache

2007-03-22 Thread benrawk
Hello, thank your for your reply. Tried everything, getting positive results, but still can't load http://localhost/mysite/. 1) permissions on both /home, /home/benrawk, and /home/benrawk/mysite are 'drwxr-xr-x' 2) I succesfully imported mysite.settings after adding /home/benrawk to the sys.path

Re: Trouble setting up Django and Apache

2007-03-22 Thread Malcolm Tredinnick
On Thu, 2007-03-22 at 07:57 +, benrawk wrote: > Hello, > > Recieving a common error, but have trolled the message boards, and > have not found a solution. My httpd.conf file contains the following > relevant snippet: > > > SetHandler python-program > PythonPath "['/home/benrawk'] +

Trouble setting up Django and Apache

2007-03-21 Thread benrawk
Hello, Recieving a common error, but have trolled the message boards, and have not found a solution. My httpd.conf file contains the following relevant snippet: SetHandler python-program PythonPath "['/home/benrawk'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE mysite.settings Pyth