Re: wierd apache and mod_python problem with templates

2009-09-23 Thread andreas schmid
thank you... i solved it using the django.wsgi script created by the buildout! its a lot easier deploy django with wsgi and not to mention how much better it is with a buildout in a clean isolated folder!! love it! Graham Dumpleton wrote: > > On Sep 22, 11:41 pm, andreas schmid wrote: > >> h

Re: wierd apache and mod_python problem with templates

2009-09-22 Thread Graham Dumpleton
On Sep 22, 11:41 pm, andreas schmid wrote: > hi, > > im expierencing a strange problem on my server with mod_pyton. > > while testing my project on the server launching it with runserver > everything looks fine. > > using apache and mod_python the templates at the root of the templates > dir in

wierd apache and mod_python problem with templates

2009-09-22 Thread andreas schmid
hi, im expierencing a strange problem on my server with mod_pyton. while testing my project on the server launching it with runserver everything looks fine. using apache and mod_python the templates at the root of the templates dir in my project are loaded but all the others (templates/myprojec

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> Is the page truly blank? Ie., have you gone 'View Source' in the > browser to see what is returned. Are you sure you haven't stuffed up > something in global HTML template whereby missing a closing '>' for > HTML. Yup, view source shows it's blank, as in nothing is in the source at all. > Sinc

Re: mod_python problem

2009-08-20 Thread Graham Dumpleton
On Aug 21, 12:34 pm, Bryan Fordham wrote: > Also tried switching to wsgi, just to see if it would make a > difference. It didn't. > > I'm seriously stumped Is the page truly blank? Ie., have you gone 'View Source' in the browser to see what is returned. Are you sure you haven't stuffed up some

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
Also tried switching to wsgi, just to see if it would make a difference. It didn't. I'm seriously stumped On Thu, Aug 20, 2009 at 3:56 PM, Bryan Fordham wrote: >> >> Don't forget the comma after the absolute path. For example, >> >> '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> > Don't forget the comma after the absolute path. For example, > > '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates', > < comma Tried that, no change. Changed the template path to an invalid path, same thing. Very weird -- Thanks --B --~--~-~--~~~--

Re: mod_python problem

2009-08-20 Thread Mario
Don't forget the comma after the absolute path. For example, '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates', < comma _Mario On Aug 20, 4:41 pm, Bryan Fordham wrote: > > The default template is not loading correctly. Check and verify your > > settings.py and make sure it

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> The default template is not loading correctly. Check and verify your > settings.py and make sure it is pointing to the absolute path e.g., > TEMPLATE_DIRS ="/home/users/templates", You're right. Changed the index view to just return an HttpResponse, skipping the template, and it worked. So, go

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> The default template is not loading correctly. Check and verify your > settings.py and make sure it is pointing to the absolute path e.g., > TEMPLATE_DIRS ="/home/users/templates", It seems right >From settings.py: TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates"

Re: mod_python problem

2009-08-20 Thread Mario
The default template is not loading correctly. Check and verify your settings.py and make sure it is pointing to the absolute path e.g., TEMPLATE_DIRS ="/home/users/templates", _Mario On Aug 20, 2:14 pm, Bryan Fordham wrote: > It's athttp://bfordham.org/ > > The project runs from the root. It

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
It's at http://bfordham.org/ The project runs from the root. It was set that way on the development server, too, with no problem On Thu, Aug 20, 2009 at 11:11 AM, Mario wrote: > > Bryan, > > Can you post your project url? Also try changing from > to > > _Mario > > On Aug 20, 12:33 pm, Bryan Fo

Re: mod_python problem

2009-08-20 Thread Mario
Bryan, Can you post your project url? Also try changing from to _Mario On Aug 20, 12:33 pm, Bryan Fordham wrote: > I'm sure this is something simple, but I'm a bit stumped. It's been a > while since i've don't this, and obviously I'm missing something > > I have my django app installed on se

mod_python problem

2009-08-20 Thread Bryan Fordham
I'm sure this is something simple, but I'm a bit stumped. It's been a while since i've don't this, and obviously I'm missing something I have my django app installed on server. When I go to any URL that matches something in the urls.py file, I get a blank page. As in the server is returning a 200

mod_python problem

2008-04-19 Thread Narso
Hi, everybody. In my appication ("nude") I have 4 models (really I have some more), something like this: class State(models.Model): name:models.CharField(CharField(max_length=30) class Admin: pass class WorkCenter(models.Model): State=models.ForeignKey(State) phone=

Re: mod_python: problem with http.conf

2007-11-06 Thread Joe
Can you open a python interpreter and import your application? I place a sim link (ln -s) within the python site-packages directory to my project directory and the django source directory. J On Nov 5, 4:37 pm, stranger <[EMAIL PROTECTED]> wrote: > Hello I am using Fedora 7. I am using Django for

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Thanks a lot graham You have really helped me a lo. Thank you once againCan you please add me in Yahoo messenger id: aparichitudu_stranger Thank you On Nov 5, 3:33 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Turn off SELinux extensions on your box or do whatever research is

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
Turn off SELinux extensions on your box or do whatever research is required to work out how to configure SELinux to allow the user that Apache runs as to access your files. I can't help you with SELinux. Graham On Nov 6, 10:28 am, stranger <[EMAIL PROTECTED]> wrote: > Ya I have run the command

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Hey I have set the SELINUX from enforcing to permissive and the localhost/mysite is working. I am getting the Django default page. On Nov 5, 3:28 pm, stranger <[EMAIL PROTECTED]> wrote: > Ya I have run the command and restarted Apache... I have found the > cause for the problem can you advise m

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Ya I have run the command and restarted Apache... I have found the cause for the problem can you advise me after looking at this screenshot. http://img210.imageshack.us/img210/559/screenshot1bs5.png On Nov 5, 3:24 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Run: > > chmod 0755 /home/priy

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
Run: chmod 0755 /home/priya Restart Apache for good measure and try again. As I originally said, all the directories down to the mysite directory have to be readable and searchable to others. This means you personal home directory as well. Graham On Nov 6, 10:20 am, stranger <[EMAIL PROTECT

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Sorry for deleting I have run the command in /home When I run ls -lasgd in /home/priya 8 drwx-- 32 priya 4096 2007-11-05 14:54 . When I run ls -las in /home/priya [EMAIL PROTECTED] ~]$ ls -las total 416 8 drwx-- 32 priya priya 4096 2007-11-05 14:54 . 8 drwxr-xr-x 3 root root

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
Please do not keep deleting the previous message content. It makes it really hard having to go back and forth between messages. On Nov 6, 10:11 am, stranger <[EMAIL PROTECTED]> wrote: > I get this: > > 8 drwxr-xr-x 3 root 4096 2007-11-04 02:20 . If you get this when running that command in your

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
I get this: 8 drwxr-xr-x 3 root 4096 2007-11-04 02:20 . --~--~-~--~~~---~--~~ 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 t

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:57 am, stranger <[EMAIL PROTECTED]> wrote: > Thank alot Graham. To which user, I must grant access? > > I know the command chmod.. and I traversed to mysite directory and > chmod -R 755 * > > still no change. Hmmm, I saw that example in the document I referred to and thought it was a

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Thank alot Graham. To which user, I must grant access? I know the command chmod.. and I traversed to mysite directory and chmod -R 755 * still no change. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:37 am, stranger <[EMAIL PROTECTED]> wrote: > Yes my settings.py file is in the place you specified. > > I have restarted the apache: /etc/init.d/httpd restart > > I think u r right. Apache dont have right to read that module. Please > specify me how to give access to apche to my mysit

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Yes my settings.py file is in the place you specified. I have restarted the apache: /etc/init.d/httpd restart I think u r right. Apache dont have right to read that module. Please specify me how to give access to apche to my mysite directory. --~--~-~--~~~---~--~--

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:30 am, stranger <[EMAIL PROTECTED]> wrote: > Hello Graham, > >Just followed the same instructions as u said. > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > Pyt

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Hello Graham, Just followed the same instructions as u said. SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On PythonPath "['/home/priya'] + sys.path" No Change

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:13 am, stranger <[EMAIL PROTECTED]> wrote: > Thank you Graham for the fast reply Could you please elaborate a > little since i am new to django. > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settin

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Thank you Graham for the fast reply Could you please elaborate a little since i am new to django. SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On ...and replace mysite.settings with the Pyth

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 8:37 am, stranger <[EMAIL PROTECTED]> wrote: > Hello I am using Fedora 7. I am using Django for the first time. I > want the django to run on port 80. so that : > > http://localhost/mysite/ > > should retreive the Django dafault page. I have installed mod_python > and imported it into ht

mod_python: problem with http.conf

2007-11-05 Thread stranger
Hello I am using Fedora 7. I am using Django for the first time. I want the django to run on port 80. so that : http://localhost/mysite/ should retreive the Django dafault page. I have installed mod_python and imported it into http.conf. In http.conf I have also: SetHandler python-pro

Re: mod_python problem?

2007-07-23 Thread James McManus
/var/www/django/'] + sys.path" > > > PythonHandler django.core.handlers.modpython > > > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > > > PythonDebug On > > > > > > If you used mysite, mysite should always in your urls, the mod_pyt

Re: mod_python problem?

2007-07-23 Thread James McManus
lways in your urls, the mod_python > > will not found the right view if you did not add mysite in the urls. > > > > Best wishes, > > Nick > > > > - Original Message - > > *From:* James McManus <[EMAIL PROTECTED]> > > *To:* django-users@

Re: mod_python problem?

2007-07-23 Thread James McManus
our urls, the mod_python will > not found the right view if you did not add mysite in the urls. > > Best wishes, > Nick > > - Original Message - > *From:* James McManus <[EMAIL PROTECTED]> > *To:* django-users@googlegroups.com > *Sent:* Monday, July 23, 2007 12:35

Re: mod_python problem?

2007-07-22 Thread nick feng
7 12:35 PM Subject: mod_python problem? I am having two problems using django on an Apache server, with mod_python. The first problem I found a solution, but it may be causing other problems. In mysite/urls.py I am not able to use the ^ in: (r^'polls/', include(' mysite.polls.urls

Re: mod_python problem?

2007-07-22 Thread Graham Dumpleton
On Jul 23, 2:35 pm, "James McManus" <[EMAIL PROTECTED]> wrote: > I am having two problems using django on an Apache server, with mod_python. > The first problem I found a solution, but it may be causing other problems. > In mysite/urls.py I am not able to use the ^ in: > > (r^'polls/', include('my

mod_python problem?

2007-07-22 Thread James McManus
I am having two problems using django on an Apache server, with mod_python. The first problem I found a solution, but it may be causing other problems. In mysite/urls.py I am not able to use the ^ in: (r^'polls/', include('mysite.polls.urls')), It causes a 404 error. I do not have this problem wh

Re: Apache + mod_python problem

2007-05-04 Thread oggie rob
> As i try to login into the admin, i alway get a message saying my > browser does not accepr cookies!! > But it isn't true! > > Any suggestion? IE has a funny setting wrt media files & security settings - if you use a separate server for media (e.g. media.company.com vs. www.company.com as the d

Re: Apache + mod_python problem

2007-05-04 Thread RollyF
Haku, I fixed mine by giving executable permission to my "/home/username". Like you I was frustrated by this error and tried all combinations in httpd.conf, until I read Malcolm Tredinnick's reply to similar problem here: http://groups.google.com/group/django-users/browse_thread/thread/921e8e8f5

Re: Apache + mod_python problem

2007-05-04 Thread Haku
Ok, i've solved the problem, wich was in the PythonPath (no "/mysite" was needed :D ) But now i'm into another truble: As i try to login into the admin, i alway get a message saying my browser does not accepr cookies!! But it isn't true! Any suggestion? On 4 Mag, 13:13, Haku <[EMAIL PROTECTED]>

Re: Apache + mod_python problem

2007-05-04 Thread Bruno Tikami
Hi Haku! I have the same problem last week. What I did was to reate a file called .pth and saved it on /usr/lib/python2.4/site-packages/ inside this file, I wrote the root path to my project.. try it & let me know the results. good luck! Tkm On 5/4/07, Haku <[EMAIL PROTECTED]> wrote: > > > Ok,

Re: Apache + mod_python problem

2007-05-04 Thread Melech Ric
Try changing: PythonPath "['/root/mysite'] + sys.path" to PythonPath "['/root'] + sys.path" I think you only need to tell the server where to find 'mysite' since that is the root of your project. mod_python can then resolve 'mysite.settings' because it found mysite in 'root'. Hope this mak

Apache + mod_python problem

2007-05-04 Thread Haku
Ok, i'm here with another question :D Everithing is fine on my development server (windows), but now i want to put my project on my production server My production Server is a VPS running everithing django needs to run, so i've modified my httpd.conf file adding the following lines: Se