Re: Deploying django. Please specify the steps.

2011-03-11 Thread Xavier Ordoquy
Le 11 mars 2011 à 13:25, Kenneth Gonsalves a écrit : > On Fri, 2011-03-11 at 04:17 -0800, balu wrote: >> I tried to deploy django with the following. But I couldn't able >> succeed. Please let me know the exact steps in configuring apache >> server, configuring mod_wsgi. >> >> I had gone through

Re: Deploying django. Please specify the steps.

2011-03-11 Thread Kenneth Gonsalves
On Fri, 2011-03-11 at 04:17 -0800, balu wrote: > I tried to deploy django with the following. But I couldn't able > succeed. Please let me know the exact steps in configuring apache > server, configuring mod_wsgi. > > I had gone through the official site. But couldn't understand it > completely th

Deploying django. Please specify the steps.

2011-03-11 Thread balu
Hi all :) I tried to deploy django with the following. But I couldn't able succeed. Please let me know the exact steps in configuring apache server, configuring mod_wsgi. I had gone through the official site. But couldn't understand it completely the configuration process. apache, mod_wsgi, ngin

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: Deploying Django with mod_wsgi

2010-06-24 Thread Graham Dumpleton
On Jun 25, 6:00 am, commonzenpython wrote: > it would give me the same error, but with a different directory, Which as I already mentioned on mod_wsgi list, and referred you to the documentation about, this is because Apache runs as special user and needs to be able to write to the parent direc

Re: Deploying Django with mod_wsgi

2010-06-24 Thread commonzenpython
it would give me the same error, but with a different directory, thanks a lot guys, i have solved this by putting SetEnv PYTHON_EGG_CACHE /tmp as follows SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE ash.settings SetEnv PYTHON_

Re: Deploying Django with mod_wsgi

2010-06-24 Thread Tom Evans
On Thu, Jun 24, 2010 at 9:15 AM, commonzenpython wrote: > i have ran into the same error i get using mod_wsgi, which is : > > ExtractionError at / > Can't extract file(s) to egg cache > > The following error occurred while trying to extract file(s) to the > Python egg > cache: > >  [Errno 13] Perm

Re: Deploying Django with mod_wsgi

2010-06-24 Thread Kenneth Gonsalves
On Thursday 24 June 2010 13:45:51 commonzenpython wrote: > change the cache directory by setting the PYTHON_EGG_CACHE environment > variable to point to an accessible directory. > set the PYTHON_EGG_CACHE environment variable in your django.wsgi script to some directory that is writeable by apa

Re: Deploying Django with mod_wsgi

2010-06-24 Thread commonzenpython
i have ran into the same error i get using mod_wsgi, which is : ExtractionError at / Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: '/.python-eggs' The Python egg cache directory is current

Re: Deploying Django with mod_wsgi

2010-06-22 Thread Graham Dumpleton
On Jun 23, 2:35 am, commonzenpython wrote: > it turns out i have the __init__.py , so i changed the path as you > suggested but now i get this error : > > MOD_PYTHON ERROR > > ProcessId:      12182 > Interpreter:    'ashtangayogavideo.com' > > ServerName:     'ashtangayogavideo.com' > DocumentRo

Re: Deploying Django with mod_wsgi

2010-06-22 Thread commonzenpython
it turns out i have the __init__.py , so i changed the path as you suggested but now i get this error : MOD_PYTHON ERROR ProcessId: 12182 Interpreter:'ashtangayogavideo.com' ServerName: 'ashtangayogavideo.com' DocumentRoot: '/home/ashtanga/public_html' URI:'/ash/' Loc

Re: Deploying Django with mod_wsgi

2010-06-22 Thread backdoc
nothing. it's empty On Tue, Jun 22, 2010 at 8:41 AM, commonzenpython wrote: > thanks, but what should be inside the __init__.py file ? > > -- > 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...@go

Re: Deploying Django with mod_wsgi

2010-06-22 Thread commonzenpython
thanks, but what should be inside the __init__.py file ? -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@

Re: Deploying Django with mod_wsgi

2010-06-22 Thread Kenneth Gonsalves
On Tuesday 22 June 2010 11:08:00 commonzenpython wrote: > PythonPath "['/home/ashtanga/public_html/ash'] + sys.path" > PythonPath "['/home/ashtanga/public_html/'] + sys.path" and make sure you have an __init__.py file in your 'ash' directory -- Regards Kenneth Gonsalves Senior Associate NRC-FOS

Re: Deploying Django with mod_wsgi

2010-06-22 Thread commonzenpython
thanks, i have read your post and i am beginning to understand this better, i am also trying mod_python as an alternative my project path is the same /home/ashtanga/public_html/ash insdie the ash is my Django project and iside it i have my settings.py and urls.py, i have added the following script

Re: Deploying Django with mod_wsgi

2010-06-20 Thread Graham Dumpleton
On Jun 21, 10:51 am, commonzenpython wrote: > Graham thanks for all your help, and patience,  i will read the the > information in the link you provided, this is the exact configuration > i added to the httpd.conf file : > > LoadModule wsgi_module modules/mod_wsgi.so > WSGIScriptAlias / /home/as

Re: Deploying Django with mod_wsgi

2010-06-20 Thread commonzenpython
Graham thanks for all your help, and patience, i will read the the information in the link you provided, this is the exact configuration i added to the httpd.conf file : LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias / /home/ashtanga/public_html/ash/apache/django.wsgi the path to my

Re: Deploying Django with mod_wsgi

2010-06-19 Thread Graham Dumpleton
On Jun 20, 1:42 pm, lzantal wrote: > Hi > > On Jun 19, 2010, at 20:20, Graham Dumpleton   > > wrote: > > > On Jun 20, 1:08 pm, lzantal wrote: > >> Hi, > > >> If you add your project due to the sys.path then don't add the   > >> project > >> name to  os.environ['DJANGO_SETTINGS_MODULE'] = 'ash.

Re: Deploying Django with mod_wsgi

2010-06-19 Thread lzantal
Hi On Jun 19, 2010, at 20:20, Graham Dumpleton wrote: On Jun 20, 1:08 pm, lzantal wrote: Hi, If you add your project due to the sys.path then don't add the project name to os.environ['DJANGO_SETTINGS_MODULE'] = 'ash.settings' just add settings. Which can cause other problems if y

Re: Deploying Django with mod_wsgi

2010-06-19 Thread Graham Dumpleton
On Jun 20, 1:08 pm, lzantal wrote: > Hi, > > If you add your project due to the sys.path then don't add the project   > name to  os.environ['DJANGO_SETTINGS_MODULE'] = 'ash.settings' > just add settings. Which can cause other problems if you have used site name as package prefix in module impor

Re: Deploying Django with mod_wsgi

2010-06-19 Thread lzantal
Hi, If you add your project due to the sys.path then don't add the project name to os.environ['DJANGO_SETTINGS_MODULE'] = 'ash.settings' just add settings. hope it helps lzantal On Jun 19, 2010, at 19:48, commonzenpython wrote: thanks, i have seen the error logs and it says "could no

Re: Deploying Django with mod_wsgi

2010-06-19 Thread Graham Dumpleton
On Jun 20, 12:48 pm, commonzenpython wrote: > thanks, i have seen the error logs and it says "could not import > settings "ash.settings" ( is it on sys path ?)"  ash is the name of my > project, also i didnt get a 500 error this time, my website just didnt > load, i added the following configura

Re: Deploying Django with mod_wsgi

2010-06-19 Thread commonzenpython
thanks, i have seen the error logs and it says "could not import settings "ash.settings" ( is it on sys path ?)" ash is the name of my project, also i didnt get a 500 error this time, my website just didnt load, i added the following configuration to the httpd.conf : LoadModule wsgi_module modules

Re: Deploying Django with mod_wsgi

2010-06-19 Thread Graham Dumpleton
BTW, I really hope you literally have not said: WSGIScriptAlias / "/apache/ dj_survey.wsgi" When you do post the Apache configuration snippet, make sure you don't go editing it to change details. The exact information is needed else it makes it harder to debug what you have done wrong as have t

Re: Deploying Django with mod_wsgi

2010-06-19 Thread Graham Dumpleton
On Jun 20, 11:19 am, commonzenpython wrote: > im sorry, its causing an error 500, but i know its because of an error > in the httpd.conf file, but i dont know what, i have written the sript > WSGIScriptAlias / "/apache/ > dj_survey.wsgi" exactly how its supposed to be written but its still > cau

Re: Deploying Django with mod_wsgi

2010-06-19 Thread commonzenpython
im sorry, its causing an error 500, but i know its because of an error in the httpd.conf file, but i dont know what, i have written the sript WSGIScriptAlias / "/apache/ dj_survey.wsgi" exactly how its supposed to be written but its still causing the crash, is there anything besides that script tha

Re: Deploying Django with mod_wsgi

2010-06-19 Thread Karen Tracey
On Sat, Jun 19, 2010 at 6:15 PM, commonzenpython wrote: > Hey guys, im trying to deploy django using MySQl, Apache 2, and > mod_wsgi, but i am having lots of difficulties which are causing my > sites to go down, i have loaded the mod_wsgi module in the Apache > httpd.conf file successfully, but e

Deploying Django with mod_wsgi

2010-06-19 Thread commonzenpython
Hey guys, im trying to deploy django using MySQl, Apache 2, and mod_wsgi, but i am having lots of difficulties which are causing my sites to go down, i have loaded the mod_wsgi module in the Apache httpd.conf file successfully, but every time i try to put this line f WSGIScriptAlias / "/apache/ dj

Re: Deploying Django on a server with mod_userdir

2010-06-13 Thread Graham Dumpleton
On Jun 14, 10:50 am, Benjamin Webber wrote: > Hi Graham, sorry for replying to you so incredibly late, I haven't had > much time to work on my project. > > So the syntax of the WSGIDaemonProcess directive should be, > > WSGIDaemonProcess user=username group=groupname threads=15 maximum- > reques

Re: Deploying Django on a server with mod_userdir

2010-06-13 Thread Benjamin Webber
Hi Graham, sorry for replying to you so incredibly late, I haven't had much time to work on my project. So the syntax of the WSGIDaemonProcess directive should be, WSGIDaemonProcess user=username group=groupname threads=15 maximum- requests=1 For each individual Django user. But you state in

Re: Deploying Django on a server with mod_userdir

2010-05-21 Thread Graham Dumpleton
On May 22, 2:37 pm, Benjamin Webber wrote: > It appears that Apache was not given permission to access the /home/ > username/django directory and write to the database. Fixing the > permissions fixed everything. BTW, strongly recommend you use mod_wsgi daemon mode, configuring a separate mod_ws

Re: Deploying Django on a server with mod_userdir

2010-05-21 Thread Benjamin Webber
It appears that Apache was not given permission to access the /home/ username/django directory and write to the database. Fixing the permissions fixed everything. On May 21, 6:18 pm, Ben wrote: > Hi everyone, I'm just starting out with Django and really enjoying it. > For a project I am trying to

Deploying Django on a server with mod_userdir

2010-05-21 Thread Ben
Hi everyone, I'm just starting out with Django and really enjoying it. For a project I am trying to install it on an Apache server at school with multiple users. The userdir module is enabled such that users can create their own websites. I'd like to allow some of these users to tinker with Django.

Re: File/Folder permissions for deploying Django app

2010-05-19 Thread Shawn Milochik
To some extent it doesn't matter. Just make sure your code is as secure as any private information you wouldn't want others to have access to. When Django is running in a production environment, there is a Python instance listening on a port on your system. Your Web server (Apache, nginx, whatev

File/Folder permissions for deploying Django app

2010-05-18 Thread flyinglegs
Hello, I know that Django code and templates are should not sit in the root and the same path with Apache. Is there a recommendated location for deploying the Django app? Also, what is the best practice in terms of the user account and group the Django folder should use? Let's say on the virtual

Re: Deploying Django to production environment

2009-11-04 Thread sstein...@gmail.com
On Nov 3, 2009, at 11:19 PM, JohnL wrote: > Hi All, > > I just joined linode and followed there instructions in setting up > Django at http://library.linode.com/lamp-guides/ubuntu-9.10-karmic/. > > > > ServerAdmin squ...@bucknell.net > ServerName bucknell.net > ServerAlias www.bucknel

Re: Deploying Django to production environment

2009-11-04 Thread Daniel Roseman
On Nov 4, 4:19 am, JohnL wrote: > Hi All, > > I just joined linode and followed there instructions in setting up > Django athttp://library.linode.com/lamp-guides/ubuntu-9.10-karmic/. > > >      ServerAdmin squ...@bucknell.net >      ServerName bucknell.net >      ServerAliaswww.bucknell.net >  

Re: Deploying Django to production environment

2009-11-04 Thread fest
Hi John, It doesn't really matter where you place your application code- just don't put it in a place accessible by your web server, so nobody can access your source code. I have apache configured to serve php websites from /var/sharedwww/ site1/www, but my django site resides in /var/sharedwww/si

Deploying Django to production environment

2009-11-03 Thread JohnL
Hi All, I just joined linode and followed there instructions in setting up Django at http://library.linode.com/lamp-guides/ubuntu-9.10-karmic/. ServerAdmin squ...@bucknell.net ServerName bucknell.net ServerAlias www.bucknell.net DocumentRoot /srv/www/bucknell.net/public_htm

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: developing and deploying django with zc.buildout

2009-09-30 Thread Chris Withers
andreas schmid wrote: > then i wanted to try my apps which i have on my subversion repository > and i added a [site-packages] section to the buildout.cfg using Why not turn your apps into python packages and serve them from a private egg server? > to the [django] section. now i have my project

developing and deploying django with zc.buildout

2009-09-21 Thread andreas schmid
missing? thank you in advance p.s. if you need more details let me know. basically i followed this tutorial http://www.justanothercodemonkey.com/2009/08/deploying-django-with-buildout.html --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: First time deploying Django project

2009-08-26 Thread Graham Dumpleton
On Aug 26, 8:38 pm, Hussein B wrote: > I changed it to the following: > > >         SetHandler python-program >         PythonHandler django.core.handlers.modpython >         SetEnv DJANGO_SETTINGS_MODULE SshConnector.settings >         PythonPath "['/home/me/', '/home/me/SshConnector/'] + > s

Re: First time deploying Django project

2009-08-26 Thread Hussein B
I changed it to the following: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE SshConnector.settings PythonPath "['/home/me/', '/home/me/SshConnector/'] + sys.path" PythonDebug On I tried this URL http

Re: First time deploying Django project

2009-08-26 Thread Graham Dumpleton
On Aug 26, 7:51 pm, Kenneth Gonsalves wrote: > On Wednesday 26 Aug 2009 2:42:47 pm HB wrote: > > > Hey, > > I'm trying to deploy my first Django application to Apache. > > The project is located under:  /home/me/SshConnector/ > > Here is my configuration: > > > > >         Options Indexes Foll

Re: First time deploying Django project

2009-08-26 Thread Kenneth Gonsalves
On Wednesday 26 Aug 2009 2:42:47 pm HB wrote: > Hey, > I'm trying to deploy my first Django application to Apache. > The project is located under: /home/me/SshConnector/ > Here is my configuration: > > > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Ord

Re: First time deploying Django project

2009-08-26 Thread Hussein B
The previous conf is python.conf under /etc/httpd/conf.d On Aug 26, 12:12 pm, HB wrote: > Hey, > I'm trying to deploy my first Django application to Apache. > The project is located under:  /home/me/SshConnector/ > Here is my configuration: > > >         Options Indexes FollowSymLinks MultiView

First time deploying Django project

2009-08-26 Thread HB
Hey, I'm trying to deploy my first Django application to Apache. The project is located under: /home/me/SshConnector/ Here is my configuration: Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all AddHandler mod_pyt

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: Deploying django application

2009-04-06 Thread Oleg Oltar
There are few thing here: 1. I am root on that box. So can change apache conf. But have a little knowledge how to do it. So decided to use that way, as thought it's easier for hosting many django apps. So please tell me what to check. 2. I believe that htaccess is working as web server redirected

Re: Deploying django application

2009-04-05 Thread Daniel Roseman
On Apr 5, 10:04 pm, Oleg Oltar wrote: > Hi! > > I am trying to serve my project using server-spawned processes > > I created file .htaccess in my web_root directory which contains: > AddHandler fastcgi-script .fcgi > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ mysi

Deploying django application

2009-04-05 Thread Oleg Oltar
Hi! I am trying to serve my project using server-spawned processes I created file .htaccess in my web_root directory which contains: AddHandler fastcgi-script .fcgi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L] And also added file mysite.fcgi to

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-03-12 Thread Adam Yee
On Feb 10, 5:27 am, "a...@amos-site.org.uk" wrote: > Where exactly do you put this I'm guessing in the file, but a bit of > context would be appreciated. #django.views.generic.list_detail.py ... ... def object_detail(request, ... ... ... ... c = RequestContext(request, { temp

Re: lighty vs. nginx for deploying Django

2009-02-26 Thread Gour
> "Jacob" == Jacob Kaplan-Moss writes: Hi Jacob, let me express my gratitude for providing Django 1st! Jacob> The best thing you can do is try both and pick the one that works Jacob> better for you. Me, I generally try to pick the software that's Jacob> got better documentation so that I sp

Re: lighty vs. nginx for deploying Django

2009-02-26 Thread Jacob Kaplan-Moss
On Thu, Feb 26, 2009 at 2:46 AM, Gour wrote: > Although I'm still fiddling on my 'localhost', I'd like to know which > web server you recommend to settle on between lighty and nginx (Apache > excluded) so I can be clear in the future when choosing hosting/VPS for > Django sites and can learn abou

lighty vs. nginx for deploying Django

2009-02-26 Thread Gour
Hi! I'm working through 'withdjango' book and ch.7. deploys Gallery app with the need to serve static files. Although I'm still fiddling on my 'localhost', I'd like to know which web server you recommend to settle on between lighty and nginx (Apache excluded) so I can be clear in the future when

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-02-11 Thread Maarten Kossen
Shouldn't it be pointed out in the tutorial that if you use a non-root path for your django-installation, the hard-coded form-action won't work? On Feb 10, 2:27 pm, "a...@amos-site.org.uk" wrote: > Where exactly do you put this I'm guessing in the file, but a bit of > context would be appreciate

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-02-10 Thread a...@amos-site.org.uk
Where exactly do you put this I'm guessing in the file, but a bit of context would be appreciated. On Jan 19, 7:17 am, Adam Yee wrote: > Success.  I added > > 'script_name': request.META['SCRIPT_NAME'] > > into the context of object_detail() in django's generic views > list_detail.py.  Here's th

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
Success. I added 'script_name': request.META['SCRIPT_NAME'] into the context of object_detail() in django's generic views list_detail.py. Here's the modified form tag to the polls_detail.html template: Note removing the / before {{ script_name }} Just to reiterate what Preston said, please

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
On Jan 18, 7:39 am, ptone wrote: > In the tutorial, the form action in the poll_detail template is > hardcoded to "/polls/..." > > So the browser is doing what's been explicitly asked of it, despite > Django doing its best to deal gracefully with your mounting the app > at /mysite. > > In my own

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
On Jan 18, 3:44 am, Graham Dumpleton wrote: > On Jan 18, 8:46 pm, Adam Yee wrote: > > > > > > > On Jan 17, 8:36 pm, Malcolm Tredinnick > > wrote: > > > > On Jan 18, 2:53 pm, Adam Yee wrote: > > > > > It was a slam dunk for completing the tutorial in the development > > > > server, but I can't

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 19, 3:02 am, JCorey wrote: > On Jan 18, 9:39 am, ptone wrote: > > > In the tutorial, the form action in the poll_detail template is > > hardcoded to "/polls/..." > > > So the browser is doing what's been explicitly asked of it, despite > > Django doing its best to deal gracefully with y

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread JCorey
On Jan 18, 9:39 am, ptone wrote: > In the tutorial, the form action in the poll_detail template is > hardcoded to "/polls/..." > > So the browser is doing what's been explicitly asked of it, despite > Django doing its best to deal gracefully with your mounting the app > at /mysite. The same thin

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread ptone
In the tutorial, the form action in the poll_detail template is hardcoded to "/polls/..." So the browser is doing what's been explicitly asked of it, despite Django doing its best to deal gracefully with your mounting the app at /mysite. In my own newcomer approach, the way I found to work aroun

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 18, 8:46 pm, Adam Yee wrote: > On Jan 17, 8:36 pm, Malcolm Tredinnick > wrote: > > > > > On Jan 18, 2:53 pm, Adam Yee wrote: > > > > It was a slam dunk for completing the tutorial in the development > > > server, but I can't figure out this issue I'm having with the generic > > > views

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 18, 3:36 pm, Malcolm Tredinnick wrote: > On Jan 18, 2:53 pm, Adam Yee wrote: > > > It was a slam dunk for completing the tutorial in the development > > server, but I can't figure out this issue I'm having with the generic > > views while using my apache server.  I'm unable to get the v

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Malcolm Tredinnick
On Sun, 2009-01-18 at 01:46 -0800, Adam Yee wrote: [...] > I'm still very puzzled by not being able to use '/mysite'. I agree > with you that somewhere '/mysite' is being stripped or just not being > accessed at all. My guess is somewhere in the generic views and/or > how they are set up in the

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
On Jan 17, 8:36 pm, Malcolm Tredinnick wrote: > On Jan 18, 2:53 pm, Adam Yee wrote: > > > It was a slam dunk for completing the tutorial in the development > > server, but I can't figure out this issue I'm having with the generic > > views while using my apache server.  I'm unable to get the v

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-17 Thread Malcolm Tredinnick
On Jan 18, 2:53 pm, Adam Yee wrote: > It was a slam dunk for completing the tutorial in the development > server, but I can't figure out this issue I'm having with the generic > views while using my apache server.  I'm unable to get the vote view > to redirect correctly. > > My apache error seen

Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-17 Thread Adam Yee
It was a slam dunk for completing the tutorial in the development server, but I can't figure out this issue I'm having with the generic views while using my apache server. I'm unable to get the vote view to redirect correctly. My apache error seen here with both urls.py and views.py. The apache

Re: Newbie question - Deploying Django apps

2008-12-29 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-12-29, o godz. 07:28, przez Leslie Maclachlan: > I am using Eclipse editor to work with my django projects. > Can anyone recommend a way to deploy my django apps to an Apache web > server? > > Currently, I am manually copying the entire source folder to the > co

Newbie question - Deploying Django apps

2008-12-28 Thread Leslie Maclachlan
Hi, I am using Eclipse editor to work with my django projects. Can anyone recommend a way to deploy my django apps to an Apache web server? Currently, I am manually copying the entire source folder to the correct location on my Apache server. It seems that there should be an easier way to keep m

Re: Deploying Django Apache mod_python

2008-09-25 Thread [EMAIL PROTECTED]
Thank you so much :-)! That did the trick. --~--~-~--~~~---~--~~ 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 group, send

Re: Deploying Django Apache mod_python

2008-09-25 Thread Bojan Mihelac
Would this help: PythonPath "['/home/user/projects', '/home/user/projects/myproject'] + sys.path" Bojan On Sep 25, 6:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to deploy my django project, but when I go to any urls of > the project I get this error: > > Mod_pytho

Re: Deploying Django Apache mod_python

2008-09-25 Thread [EMAIL PROTECTED]
And my django install is in /usr/lib/python2.4/site-packages/django --~--~-~--~~~---~--~~ 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 unsubscri

Deploying Django Apache mod_python

2008-09-25 Thread [EMAIL PROTECTED]
Hi, I'm trying to deploy my django project, but when I go to any urls of the project I get this error: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatc

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: deploying django at unix/linux homepage space without root access

2008-05-05 Thread Jeff Anderson
Bing wrote: Now if I want to deploy the website so that other people can visit it under my homepage space, http://name.of.some.site/~user/ what should I do? You should use mod_python and apache. If that is too much trouble (probably is based on how your setup sounds), use fastcgi. Don't use t

deploying django at unix/linux homepage space without root access

2008-05-05 Thread Bing
I have a small django application which is running on a development server. The platform is linux and I am able to view the django-powered pages at the url like http://127.0.0.1:8000/ Now if I want to deploy the website so that other people can visit it under my homepage space, http://name.of.s

Re: Deploying Django - can't get past the welcome screen

2008-02-18 Thread Darthmahon
Hi Brian, I know how to get into python but not sure the exact commands to import settings.py? I tried "import settings" and it didn't come back with an error. How do I check the __file__/__path__ module attributes? I am now running into a weird intermittent issue which is actually not showing

Re: Deploying Django - can't get past the welcome screen

2008-02-17 Thread Brian Luft
Your code is apparently in a project called "thumbslap": >If you plan to use a database, edit the DATABASE_* settings in >thumbslap/settings.py. >Start your first app by running python thumbslap/manage.py startapp >[appname]. But your settings file is ROOT_URL_CONF set to "mysite.urls". Is that

Re: Deploying Django - can't get past the welcome screen

2008-02-17 Thread Darthmahon
== File: urls.py == from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls')), (r'^$', 'mysite.views.index'), (r'^settings/', 'mysite.people.v

Re: Deploying Django - can't get past the welcome screen

2008-02-17 Thread Darthmahon
== File: urls.py == from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls')), (r'^$', 'thumbslap.views.index'), (r'^settings/', 'thumbslap.

Re: Deploying Django - can't get past the welcome screen

2008-02-16 Thread Bret W
Could you post your urls.py and settings files? --~--~-~--~~~---~--~~ 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 group,

Re: Deploying Django - can't get past the welcome screen

2008-02-16 Thread Darthmahon
Yea I've restarted it and "touched" the fcgi file so it's rather odd - do you know of any good tutorials that are not written by the Django team (read them, not too helpful and assume too much)? On Feb 16, 9:05 pm, Bret W <[EMAIL PROTECTED]> wrote: > Have you restarted the Web server?  Perhaps ca

<    1   2   3   4   >