Re: Django + Apache Web server on Windows

2016-04-05 Thread Avraham Serour
you won't have problems until you try On Mon, Apr 4, 2016 at 8:12 PM, asimkon wrote: > > I would like to configure Django with Apache web server on Windows using > XAMPP or Wamp. I looked over the Web until i came across the following > video https://www.youtube.com/watch?v=VOkXG0jL_8U. Do you

Re: Django apache mod_wsgi permission denied

2012-12-16 Thread Phang Mulianto
THank for the config , i do able to run the apache22 with mod_wsgi + python 2.7 in windows server. On Sun, Dec 2, 2012 at 3:03 PM, Loai Ghoraba wrote: > Thanks a million for the tip :) > > > On Sun, Dec 2, 2012 at 5:08 AM, Chris Cogdon wrote: > >> >> >> On Saturday, December 1, 2012 3:47:39 A

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Loai Ghoraba
Thanks a million for the tip :) On Sun, Dec 2, 2012 at 5:08 AM, Chris Cogdon wrote: > > > On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote: >> >> no I mean the root of my project guys :) thanks a lot :D which lives in >> path/to/my/project :) >> > > Oh thank god for that! > > I

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Chris Cogdon
On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote: > > no I mean the root of my project guys :) thanks a lot :D which lives in > path/to/my/project :) > Oh thank god for that! I'd actually done something similiar once... I'd removed a bunch of permissions using chmod -R / r

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Loai Ghoraba
no I mean the root of my project guys :) thanks a lot :D which lives in path/to/my/project :) On Sat, Dec 1, 2012 at 11:42 AM, Timothy Makobu wrote: > Root directory??? As in / ? Nooo nonono > > > On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon wrote: > >> >> >> On Friday, November 30, 2012 8

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Timothy Makobu
Root directory??? As in / ? Nooo nonono On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon wrote: > > > On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote: >> >> On 1/12/2012 3:48pm, Loai Ghoraba wrote: >> > I have ran chmod o+rx on the root directory, isn't this enough (isn't >>

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Chris Cogdon
On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote: > > On 1/12/2012 3:48pm, Loai Ghoraba wrote: > > I have ran chmod o+rx on the root directory, isn't this enough (isn't > > chmod applied to all folders down recursively ?) ? > > No. You need chmod -R o+rx > Oh hell no, don't

Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
okay it works now, I was just missing a trailing slash at Alias /static/ /home/loai/workspace/Faculty/Faculty/static/ On Sat, Dec 1, 2012 at 8:17 AM, Loai Ghoraba wrote: > a strange thing is that when I remove the directive so it > becomes: > > > Order deny,allow > Allow from all > > > inste

Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
a strange thing is that when I remove the directive so it becomes: Order deny,allow Allow from all instead of Order deny,allow Allow from all then trying to access any static or media file raises (not found) instead of permission denied ! On Sat, Dec 1, 2012 at 7:42 AM, Loai Ghoraba w

Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
thanks, but still I can't find what's wrong with the permission thing. The html pages are loaded without static content, no css or js or whatever, neither the media is accessible. On Sat, Dec 1, 2012 at 7:15 AM, Mike Dewhirst wrote: > On 1/12/2012 3:57pm, Loai Ghoraba wrote: > >> thanks, but I

Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Mike Dewhirst
On 1/12/2012 3:57pm, Loai Ghoraba wrote: thanks, but I have tried this now and it also doesn't work :X though the author slides presentation mentioned chmod o+rx on the root dir only. On Sat, Dec 1, 2012 at 6:53 AM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: chmod -R o+rx Here is

Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Mike Dewhirst
On 1/12/2012 3:48pm, Loai Ghoraba wrote: I have ran chmod o+rx on the root directory, isn't this enough (isn't chmod applied to all folders down recursively ?) ? No. You need chmod -R o+rx and I have checked the directories from the root down to static, all have the permission of drwxr-xr-x

Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Loai Ghoraba
I have ran chmod o+rx on the root directory, isn't this enough (isn't chmod applied to all folders down recursively ?) ? and I have checked the directories from the root down to static, all have the permission of drwxr-xr-x On Sat, Dec 1, 2012 at 2:21 AM, Chris Cogdon wrote: > Make sure all the

Re: Django apache mod_wsgi permission denied

2012-11-30 Thread Chris Cogdon
Make sure all the directories, from static leading all the way up to the root, are chmod a+x On Friday, November 30, 2012 4:00:55 PM UTC-8, Loai Ghoraba wrote: > > Hi > > I have installed apache and mod_wsgi and my basic site *skeleton is > running* on local host, but with NO static files loade

Re: django+apache

2012-07-18 Thread Иван Земцов
Using gunicorn in virtual environment. On 18 July 2012 04:03, Kurtis Mullins wrote: > Hello Carlos, > > I apologize but I am unable to understand your problem. It looks like you > are trying to use Apache to forward requests on to Django using > "mod_python". > > According to Django's web site,

Re: django+apache

2012-07-17 Thread Kurtis Mullins
Hello Carlos, I apologize but I am unable to understand your problem. It looks like you are trying to use Apache to forward requests on to Django using "mod_python". According to Django's web site, "mod_python" is deprecated and therefore shouldn't be used. (Source: https://docs.djangoproject.com

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread Dimitry Zolotaryov
Thanks to everyone for your time. Michael, I have found a similar GIL-related issue on ServerFault: http://groups.google.com/group/django-users/browse_thread/thread/4c42b458fd5bfba9 Are there ways to code around this limitation? What versions were you running when you encountered these issues? T

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread Michael Manfre
I have a decent amount of experience with running apache, mod_wsgi and django on windows (w/ MS SQL). Apache's process module on windows (mpm_winnt) may result in you having to configure around some serious GIL related performance issues. You might not hit the problems if the site is low traffic. Y

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread Andre Terra
I recently compiled nginx with an additional module on windows and so far, so good. I'm probably skipping Apache altogether for this small website. As far as PostgreSQL goes, from what I've seen, it works flawlessly on Windows. Never heard of anyone complaining about that. Cheers, AT On Tue, Ju

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread CrabbyPete
PS, I used mod_wsgi and make sure you have the latest pywin32 On Jul 26, 2:03 pm, CrabbyPete wrote: > I've run django on Windows Server with apache and it was easy to > deploy.  Forget IIS. I've deployed Nginx and uWSGI on linux and that > was even easier. > I've never done Nginx on windows, but

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread CrabbyPete
I've run django on Windows Server with apache and it was easy to deploy. Forget IIS. I've deployed Nginx and uWSGI on linux and that was even easier. I've never done Nginx on windows, but I don't think it would be a big deal. On Jul 26, 1:25 pm, Dimitry Zolotaryov wrote: > So if I run into perfo

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread Dimitry Zolotaryov
So if I run into performance issues, I can always pipe from Apache to something like gunicorn and keep Apache serving static media? Dimitry On 26 juil, 13:03, Javier Guerra Giraldez wrote: > On Tue, Jul 26, 2011 at 11:33 AM, Dimitry Zolotaryov wrote: > > Knowing this, any advice on the original

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread Javier Guerra Giraldez
On Tue, Jul 26, 2011 at 11:33 AM, Dimitry Zolotaryov wrote: > Knowing this, any advice on the original question would be greatly > appreciated. I haven't done any deployment on windows; but i do know some helpful facts: - microsoft invests a lot of money in making sure that high-profile OSS proj

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread Dimitry Zolotaryov
Javier, You're correct in assuming that these are the tools I'm most comfortable with. Knowing this, any advice on the original question would be greatly appreciated. Thanks. Dimitry On Jul 26, 11:03 am, Javier Guerra Giraldez wrote: > On Tue, Jul 26, 2011 at 9:23 AM, Andre Terra wrote: > >

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread Javier Guerra Giraldez
On Tue, Jul 26, 2011 at 9:23 AM, Andre Terra wrote: > You can take a look at using something like nginx for serving small static > files, which can otherwise keep Apache busy and therefore delay its response > for more important tasks. > > At the risk of flaming, I should note that I have never he

Re: Django, Apache, MySQL on Windows in Production

2011-07-26 Thread Andre Terra
Hello, Dimitry You can take a look at using something like nginx for serving small static files, which can otherwise keep Apache busy and therefore delay its response for more important tasks. At the risk of flaming, I should note that I have never heard of anything that MySQL does better than Po

Re: Django/Apache/mod_wsgi: How do I specify the SCRIPT_NAME for non-root URLs?

2010-01-08 Thread Tyler Erickson
Fixed it. It turned out to be a problem with how the django project templates were written. Both of the projects that I was experimenting with were using hardcorded href values, instead of using a url template tag. hardcoded example: Per-geometry styles url template tag example: Per-geometry sty

Re: Django/Apache/mod_wsgi: How do I specify the SCRIPT_NAME for non-root URLs?

2010-01-08 Thread Tyler Erickson
I added the WSGI logging middleware to write to the Apache log as described in: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Request_and_Response and yes it appears that my SCRIPT_NAME environment variable is being automatically set (see excerpts below). So I guess it is Djan

Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-07 Thread Patrick May
On Jan 6, 3:22 pm, Rob wrote: > Have you managed to figure this out - I'm having a similar (I believe > the same) issue. It was the typo pointed out by Daniel Roseman. You may need to turn on a more detailed debugging level in your httpd.conf to see it in the log. Good luck, Patrick -- You re

Re: Django/Apache/mod_wsgi: How do I specify the SCRIPT_NAME for non-root URLs?

2010-01-06 Thread Karen Tracey
On Wed, Jan 6, 2010 at 2:39 PM, Tyler Erickson wrote: > I am trying to use Apache and mod_wsgi to serve multiple django > sites. The django sites are served up fine when at the root URL, but > when served from a sub-URL the portion of the the URL consumed by > Apache disappears from any links cre

Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-06 Thread Rob
Have you managed to figure this out - I'm having a similar (I believe the same) issue. On Jan 5, 6:27 am, Patrick May wrote: > Can you make it fail in the development server, with DEBUG turned on? > > If so, you can get more helpful error display and/or do pdb.set_trace() and > poke around. > > I

RE: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-05 Thread Patrick May
Can you make it fail in the development server, with DEBUG turned on? If so, you can get more helpful error display and/or do pdb.set_trace() and poke around. I'll give that a try, thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

RE: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-05 Thread Patrick May
Assuming the code you've posted is a real cut and paste, you have "HTTPResponse" for POST but "HttpResponse" for GET. Python is case- sensitive, so only "HttpResponse" will work. Thanks, that was it. Are errors like that written to a log file anywhere? Thanks again, Patrick -- You received

Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-04 Thread Bill Freeman
Can you make it fail in the development server, with DEBUG turned on? If so, you can get more helpful error display and/or do pdb.set_trace() and poke around. On Mon, Jan 4, 2010 at 4:25 PM, Patrick May wrote: > Hi, > > I have Django running under Apache with mod_wsgi.  I've got a simple URL >

Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-04 Thread Daniel Roseman
On Jan 4, 9:25 pm, Patrick May wrote: > Hi, > > I have Django running under Apache with mod_wsgi.  I've got a simple URL > handler that looks like this: > > def handler(request): >     response = None > >     if request.method == 'POST' or request.method == 'PUT': >         response = HTTPRespons

Re: Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread Ian Kelly
On Jun 15, 11:11 am, Miles wrote: > Connections aren't thread safe - you have to ensure every thread gets > its own connection. You can create a new connection every request or > use a thread-local to cache connections. The latter is what Django does, although it's very easy to miss when perusin

Re: Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread James Gregory
> Connections aren't thread safe - you have to ensure every thread gets > its own connection. You can create a new connection every request or > use a thread-local to cache connections. > Ok, thanks for the explanation/confirmation James --~--~-~--~~~---~--~~ You

Re: Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread Miles
On Jun 15, 6:18 pm, James Gregory wrote: > I am creating a web app with Django. I use a local MySQL database to > store users etc, but also connect to a remote Oracle database to pull > in some information to display. > > Due to Django's lack of multiple database support I have written my > own v

Re: django apache on windows setting problem

2009-05-07 Thread zayatzz
Several people answered to your question here: http://groups.google.com/group/django-users/browse_thread/thread/2f98dfb324b86747/884e9a5477deb6ca?q=#884e9a5477deb6ca Alan On May 8, 7:54 am, online wrote: > forgot to mention the error message: > >

Re: django apache on windows setting problem

2009-05-07 Thread online
forgot to mention the error message: --- ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined

Re: Django-Apache internationalization issue

2009-04-18 Thread Graham Dumpleton
On Apr 18, 7:30 pm, gurcharan wrote: > Hi > > I've used Django i18n module to implement internationalization in my > site. I'm facing a strange issue - 118n is working on Django webserver > but not on Apache and also no error message is getting logged. > > Can anyone have any clue why it's happ

Re: django apache authentication strange behavior with apache indexing.

2009-02-24 Thread Karen Tracey
On Fri, Feb 20, 2009 at 12:59 PM, Jlcarroll wrote: > > I posted this a couple of days ago and didn't get a response. Thought > that I might try again. > > I am creating a private genealogy web page of pictures/obituaries/data > files/census records etc... all just a set of files within a director

Re: django apache authentication strange behavior with apache indexing.

2009-02-24 Thread Jlcarroll
bump? On Feb 20, 10:59 am, Jlcarroll wrote: > I posted this a couple of days ago and didn't get a response. Thought > that I might try again. > > I am creating a private genealogy web page of pictures/obituaries/data > files/census records etc... all just a set of files within a directory > stru

Re: Django/Apache/wsgi problems -- help!

2009-02-20 Thread Polat Tuzla
I'm glad to hear that everything is solved. > One more question:  in what sense did you mean that MEDIA_ROOT > "is for file uploads"?  I have not begun working on file uploads > yet, but I will need that, and I see there is documentation on it > which talks about several configurable options.  Di

Re: Django/Apache/wsgi problems -- help!

2009-02-20 Thread Stephen Waterbury
Polat, Thank you, thank you!! That solved all the problems I had. I was really at a loss to know where to look -- perhaps I hadn't found the right docs, but this was the first time I had seen the things you suggested. One more question: in what sense did you mean that MEDIA_ROOT "is for file u

Re: Django/Apache/wsgi problems -- help!

2009-02-20 Thread Polat Tuzla
Also the /admin/ url gives > an internal error, which in apache's errlog shows a traceback > that ends in "OperationalError: no such table: django_session". This is most probably due to the fact that you did not set your DB_NAME variable with the full path of your .db file. And sqlite3 is creatin

Re: Django/Apache on Ubuntu - admin page looks weird

2009-01-09 Thread djangofett
Thanks a lot guys, that was it, should have looked at the official documentation more closely. On Jan 8, 9:27 pm, elithrar wrote: > Just in case you miss it - and this is the method I'd suggest, as it > makes updating easy: > > > Create a symbolic link to the admin media files from within your d

Re: Django/Apache on Ubuntu - admin page looks weird

2009-01-08 Thread elithrar
Just in case you miss it - and this is the method I'd suggest, as it makes updating easy: > Create a symbolic link to the admin media files from within your document > root. This way, all of your Django-related files -- code and templates -- > stay in > one place, and you'll still be able to sv

Re: Django/Apache on Ubuntu - admin page looks weird

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 11:45 PM, djangofett wrote: > > Hi, I am trying to get Django running on an Ubuntu server with Apache. > Everything seems to be installed fine (mod_python, plus MySQL with > MySQLdb python bindings), and I am running the main tutorial on the > Django site. I am doing the se

Re: Django-Apache configuration in Fedora 9

2008-09-23 Thread Graham Dumpleton
On Sep 24, 3:27 pm, Harish <[EMAIL PROTECTED]> wrote: > hi folks, > >         i am trying to configure a project which is developed using > django. > Now I am trying to host it in web server (using Apache2), which is > running in  Fedora 9. > > I tried with the instruction given in the following

Re: django + apache + ssl [OT Apache stuff]

2008-09-17 Thread Steve Holden
Glad you've got the SSL up and running, anyway. I wouldn't say I'm an expert, I just stab around until I get things to work. I do so little server configuration any more I tend to forget much of what I learned between bouts, and I'm afraid I'm away from home this week so I don't have the notes I

Re: django + apache + ssl

2008-09-17 Thread lingrlongr
It turns out that it was because i have multiple domains hosted at this current location. The ssl.conf file for Apache was configured for one of the other domains. One I configured that file for the domain I wanted it for, and moved the VirtualHost stuff from httpd.conf to ssl.conf, it worked.

Re: django + apache + ssl

2008-09-17 Thread Steve Holden
Note that you can only have one SSL server on an IP address: you can't have multiple virtual hosts running SSL because the connection has to be established (using the server's identity) before the Host: header can be read. I run the SSL server on my private server as a Virtual Host. This involves

Re: django + apache + ssl

2008-09-17 Thread lingrlongr
Hmmm I played around a bit more. I don't think this is a Django problem. I reduced the virtual host entry to: ServerName mysite.com ServerAliaswww.mysite.com DocumentRoot "/home/django/test" That fails too. If I change that port to 80, it works. Must be something my host

Re: Django, Apache, and CSS

2008-07-09 Thread foo
Thanks for the pointer Milan...much to my surprise, pointing my browser at http://localhost/media/style.css showed the contents of my CSS file. In the last post, by "seeing the same behavior", I meant that there was no 404 error, only a blank page...no output from the template and no stylesheet a

Re: Django, Apache, and CSS

2008-07-09 Thread foo
The contents of my base.html page are: http://www.w3.org/1999/xhtml";> {% block title %}{% endblock %} Foo Bar {% block content %} {% endblock %} {% block sidebar %} {% endblock %} As

Re: Django, Apache, and CSS

2008-07-09 Thread phillc
if you use multiple django instances, you need to add to each PythonInterpreter somestring On Jul 8, 11:52 pm, "Milan Andric" <[EMAIL PROTECTED]> wrote: > On Tue, Jul 8, 2008 at 9:47 PM, foo <[EMAIL PROTECTED]> wrote: > > > First, I want to thank you for your reply Milan!  I just recently > > j

Re: Django, Apache, and CSS

2008-07-08 Thread Milan Andric
On Tue, Jul 8, 2008 at 9:47 PM, foo <[EMAIL PROTECTED]> wrote: > > First, I want to thank you for your reply Milan! I just recently > joined the group and I'm impressed at how active the group is and how > helpful all of the advice I've found here has been. > > I've made the changes that you sugg

Re: Django, Apache, and CSS

2008-07-08 Thread Colin Bean
The blank page seems suspicious, as usually you'd be getting an error message if something was wrong with your configuration. What do you see if you view the source of that page? Perhaps there's an error in your HTML, like forgetting to close a tag. It's impossible to tell without seeing at th

Re: Django, Apache, and CSS

2008-07-08 Thread foo
First, I want to thank you for your reply Milan! I just recently joined the group and I'm impressed at how active the group is and how helpful all of the advice I've found here has been. I've made the changes that you suggested and unfortunately, I'm still seeing the same behavior. What I did w

Re: Django, Apache, and CSS

2008-07-08 Thread foo
First, I want to say thank you for your reply Milan! I just recently joined the group and I'm impressed at how active the group and how helpful all of the advice I've found here has been. I've made the changes that you suggested and unfortunately, I'm still seeing the same behavior. What I did

Re: Django, Apache, and CSS

2008-07-08 Thread Milan Andric
On Tue, Jul 8, 2008 at 7:58 PM, foo <[EMAIL PROTECTED]> wrote: > > OK, I know this has been posted in the forums before, but for some > reason, I'm still struggling to get my CSS stylesheet applied to my > django templates. I'm hoping that if I post my configuration, someone > can point out what

Re: Django - Apache - mod_python setup

2008-06-24 Thread Nagu
Karen: Thank you a million Karen. I changed the curly quotes to ordinary quotes and restarted Apache. It works fine. I was elated when I accessed the http://cobra.mycompany.com/petview and saw it working from another machine. This is my first toy with web application. Karen, thank you very much

Re: Django - Apache - mod_python setup

2008-06-24 Thread Karen Tracey
On Tue, Jun 24, 2008 at 12:38 PM, Nagu <[EMAIL PROTECTED]> wrote: > > Karen: > > I followed the instructions at > http://www.djangoproject.com/documentation/modpython/ > . > > Here are the settings I added to the httpd.conf file: > > >SetHandler python-program >PythonHandler django.core.h

Re: Django - Apache - mod_python setup

2008-06-24 Thread joshuajonah
since you are accessing a subdomain, there may be a vhost for your machine with an apache install for the whole domain... Are you the admin of the domain? if not you may want to have a chat with them. On Jun 24, 12:38 pm, Nagu <[EMAIL PROTECTED]> wrote: > Karen: > > I followed the instructions at

Re: Django - Apache - mod_python setup

2008-06-24 Thread Nagu
Karen: I followed the instructions at http://www.djangoproject.com/documentation/modpython/ . Here are the settings I added to the httpd.conf file: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE petinfosite.settings Python

Re: Django - Apache - mod_python setup

2008-06-24 Thread James Matthews
After that you need to setup a view in django and point that to a page (or function) On Tue, Jun 24, 2008 at 5:37 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 23, 2008 at 7:38 PM, Nagu <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> >> I am very new to programming in general. I start to te

Re: Django - Apache - mod_python setup

2008-06-23 Thread Karen Tracey
On Mon, Jun 23, 2008 at 7:38 PM, Nagu <[EMAIL PROTECTED]> wrote: > > Hi, > > I am very new to programming in general. I start to teach myself some > python and django stuff. > > I followed the instructions in the chapter 3 of the book Professional > Python Frameworks by Moore, Budd, and Wright. Ju

Re: Django / Apache Problem (ignores SetHandler)

2007-11-20 Thread Nils Herzog
Hi Marcin, > You can use django.views.static.serve. > In my application I have the following link in my urls.py But this is not good for my production server. Quote from http://www.djangoproject.com/documentation/static_files/ "Using this method is inefficient and insecure. Do not use this in

Re: Django / Apache Problem (ignores SetHandler)

2007-11-20 Thread Marcin Mierzejewski
Hi, You can use django.views.static.serve. In my application I have the following link in my urls.py (r'^css/(?P.*)$', 'django.views.static.serve', {'document_root': '%s/templates/css' % APPLICATION_ROOT }), (r'^javascript/(?P.*)$', 'django.views.static.serve', {'document_root': '%s/templates/ja

Re: Django & Apache 1.x

2006-07-06 Thread Carlos Yoder
> in short: > > 1. yes, it works without it. if you dig deep enough at > code.djangoproject.com, i think you can find some kind of fcgi.py which > is afaik a stripped-down flup, or something like that. > 2. the servage.net's answer is stupid :) [snip snip snip] > i hope this (chaotic) explanatio

Re: Django & Apache 1.x

2006-07-06 Thread Gábor Farkas
Carlos Yoder wrote: > * Important * > > Does anyone know if Django will run on a config with Apache 1.x + > FastCGI, but without flup? At servage.net they just told me that they > don't support flup "because of high memory usage", so I don't know > what to do. > > I'll be most obliged if anyone

Re: Django & Apache 1.x

2006-07-06 Thread Carlos Yoder
* Important * Does anyone know if Django will run on a config with Apache 1.x + FastCGI, but without flup? At servage.net they just told me that they don't support flup "because of high memory usage", so I don't know what to do. I'll be most obliged if anyone can clarify this quickly... thanks a

Re: Django & Apache 1.x

2006-07-05 Thread gabor
PythonistL wrote: > Gabor, > what trafic do you have at your website and what server configuration > do you use? I am asking that because you use FastCGI and I had big > problems with FastCGI when there was highload.So I decided to move to > mod_python and no problem since > Regards, > L hi, th

Re: Django & Apache 1.x

2006-07-05 Thread PythonistL
Gabor, what trafic do you have at your website and what server configuration do you use? I am asking that because you use FastCGI and I had big problems with FastCGI when there was highload.So I decided to move to mod_python and no problem since Regards, L --~--~-~--~~~-

Re: Django & Apache 1.x

2006-07-05 Thread Carlos Yoder
> I am not a doc wizard, but IMHO it is *always* worth addressing doc > issues re set up that are ambiguous and make one wonder how to get > started. I think most open source projects vastly undersestimate how > important ease of entry is to their growth. This encompasses both how > easy it is to

Re: Django & Apache 1.x

2006-07-04 Thread Iain Duncan
>>Well... Mod_python is the easiest method of running django, FastCGI >>setup is more advanced and usually requires basic knowledge about >>forking vs. threading, writing init scripts etc. These are things that >>makes it harder for beginners to understand Django itself so in my >>opinion it's go

Re: Django & Apache 1.x

2006-07-04 Thread Gábor Farkas
Carlos Yoder wrote: >>> Can anybody confirm having a Django app running under Apache 1.x + >>> FastCGI? Is this actually a silly question, since let's say Dreamhost >>> gives only Apache 1.x support? :-) >> i have a website served by apache 1.x + fastcgi. no problems. >> >> gabor > > Thank you ve

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
> > Can anybody confirm having a Django app running under Apache 1.x + > > FastCGI? Is this actually a silly question, since let's say Dreamhost > > gives only Apache 1.x support? :-) > > i have a website served by apache 1.x + fastcgi. no problems. > > gabor Thank you very much, or should I say

Re: Django & Apache 1.x

2006-07-04 Thread Gábor Farkas
Carlos Yoder wrote: >>> Hello people! >>> Since I only found *one* place stating that Django "requires Apache >>> 2.x and mod_python 3.x", I felt I should check :-) >>> Just to be absolutely sure... Django does NOT work under Apache 1.x, >>> correct? > >> Not correct. This 2.0 thing is mentioned

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
> > I wonder if more people were/are confused by that sentence (found > > here: http://www.djangoproject.com/documentation/install/)...? > > Well... Mod_python is the easiest method of running django, FastCGI > setup is more advanced and usually requires basic knowledge about > forking vs. threadi

Re: Django & Apache 1.x

2006-07-04 Thread Ivan Sagalaev
Carlos Yoder wrote: > I wonder if more people were/are confused by that sentence (found > here: http://www.djangoproject.com/documentation/install/)...? Well... Mod_python is the easiest method of running django, FastCGI setup is more advanced and usually requires basic knowledge about forking

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
>> Hello people! >> Since I only found *one* place stating that Django "requires Apache >> 2.x and mod_python 3.x", I felt I should check :-) >> Just to be absolutely sure... Django does NOT work under Apache 1.x, correct? > Not correct. This 2.0 thing is mentioned because Django works under > mo

Re: Django & Apache 1.x

2006-07-04 Thread Ivan Sagalaev
Carlos Yoder wrote: > Hello people! > > Since I only found *one* place stating that Django "requires Apache > 2.x and mod_python 3.x", I felt I should check :-) > > Just to be absolutely sure... Django does NOT work under Apache 1.x, correct? Not correct. This 2.0 thing is mentioned because Dja

Re: django/apache/mod_python

2006-05-19 Thread liudmila
Hello Alexandre, thanks for the help. Now I am trying to correct. With regards Liudmila --~--~-~--~~~---~--~~ 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@google

Re: django/apache/mod_python

2006-05-19 Thread Alexandre CONRAD
> 1. the pretty django layout disappears; It's something about the medias path (templates, css) for the admin. This should help: http://www.djangoproject.com/documentation/static_files/ > 2. now it is not possible to save the date in a database > (Mysql, version 4.0.24) I can't hel