On Sep 13, 2:30 am, Jim Myers wrote:
> I had looked at that page before, but had thought it only applied to
> mod_python.
> Does it also apply to mod_wsgi? If so, the page could be made
> clearer.
It doesn't. Read instead:
http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms
This
On Sep 14, 7:31 am, Dan06 wrote:
> I've 'successfully' deployed django in a development environment on
> Apache2. While, I've got it to work, I'm
> thoroughly confused by the PythonPath setting needed for it to work.
>
> I don't understand why I need to give the directory that contains the
> dj
It also depends on how OP deploys Django. Use embedding with
mod_python or mod_wsgi, instead of daemon mode of mod_wsgi or fastcgi,
then you can be setting yourself up for problems. Read:
http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html
Graham
On Sep 14, 1:52 am, P
Are you bothering to set SESSION_COOKIE_NAME or SESSION_COOKIE_PATH
differently for each site instance so they don't try and use the same
values?
Graham
On Sep 16, 3:40 am, Lester wrote:
> Hello - I have a fedora 11, django 1.02, Apache 2.2, mod_python set
> up. I am using the standard Django
On Sep 18, 4:39 am, Karen Tracey wrote:
> On Thu, Sep 17, 2009 at 1:47 PM, Jashugan wrote:
>
> > Hello,
>
> > I have a user who is trying to upload a large file (> 50MB) to our
> > Django application. The error that they are getting is:
>
> > Request Entity Too Large
> > The requested resource
On Sep 21, 8:22 pm, "kelley@gmail.com"
wrote:
> I'm using it, without macports or fink. Although I'm having problems
> with sqlite3 (posted here yesterday), I'd say things are going a lot
> smoother than when I was trying things with my previous system.
>
> I have decided not to put either
On Sep 21, 7:50 am, Jose Sibande wrote:
> Hi,
> I get this error in /var/log/apache2/error.log:
>
> [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError:
> Could not import settings 'WWlove.settings' (Is it on sys.path? Does
> it have syntax errors?): No module named settings
>
>
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
On Sep 23, 7:11 pm, phoebebright wrote:
> Can anyone suggest where the problem might be for this one.
>
> I am using wsgi and have a number of other django sites on this server
> all running fine. Have recreated the subdomain on the server, have
> copied the vhost.conf file from a site that wo
On Sep 27, 1:15 am, troyhitch wrote:
> Hi everyone -
>
> I have deployed two django sites on the same server, with identical
> configs (apache, mod_wsgi) and have added this to each of their
> settings.py:
>
> IGNORABLE_404_STARTS = ('/cgi-bin/',)
> IGNORABLE_404_ENDS = ('favicon.ico','.php','r
On Sep 27, 3:08 am, Ben Davis wrote:
> I would like to be able to serve files that were uploaded via the admin
> site; for example, when someone clicks on the "Currently:" file link in the
> changeform. However, I also have the following requirements:
>
> 1. The file should only be accessi
On Oct 1, 1:19 am, Chris Withers wrote:
> Torsten Bronger wrote:
> >> Why are you asking?
>
> > Can it be safely used with Apache's Worker MPM?
>
> I guess that would depend on a lot of things, not least of all whether
> you use mod_python ormod_wsgito deploy. Certainly if it's the latter,
> yo
On Oct 2, 10:39 pm, Fabrizio wrote:
> Hi all,
>
> I'm trying to rewrite all requests for my Django server running on
> apache+WSGI ( inside my local network) and configured as the WSGI's
> wiki how to, except that I set a virtualhost for it.
>
> The server which from I want to rewrite requests
On Oct 3, 8:05 pm, Fabrizio Buratta wrote:
> 2009/10/3 Graham Dumpleton
>
>
>
> > I think I may know what you are talking about, but your explanation is
> > a bit confusing.
>
> > To help understand, post your mod_wsgi configuration from backend.
Yo
On Oct 5, 9:42 pm, Fabrizio Buratta wrote:
> 2009/10/3 Graham Dumpleton :
>
> > You still didn't post your mod_wsgi configuration. You only posted
> > your WSGI script file. I am talking about the WSGIScriptAlias you are
> > using in the Apache configuration files
On Oct 7, 2:44 am, Chris McComas wrote:
> We've been running our Django app with mod_python and Apache to serve
> static files, along with MySQL as the database of choice. We're in the
> process of making a few changes because we've had some stability and
> performance issues,
Explained perhap
On Oct 7, 3:34 pm, hcarvalhoalves wrote:
> I recently found this web server (http://www.cherokee-project.com/)
> that claims to be "the fastest web server". I'm not sure that holds
> true for *CGI, but at least for static content they have some
> impressive benchmarks. Despite the claimings, it
On Oct 8, 9:38 am, Oli Warner wrote:
> On Wed, Oct 7, 2009 at 5:34 AM, hcarvalhoalves
> wrote:
>
> > I wanted to know if someone here on the list is using or used Cherokee
> > with Django, if there's any performance improvements over Apache +
> > mod_wsgi/mod_python (specially for concurrent r
Answered in:
http://groups.google.com/group/modwsgi/browse_frm/thread/46bbc449ca69a659
Graham
On Oct 13, 6:26 am, JSL wrote:
> Hi, i'm switching an installation over from mod_python to mod_wsgi and
> all seems to have gone well except for one bit. I have a redirect page
> that takes the new
On Oct 15, 5:14 am, Jani Tiainen wrote:
> Chris Withers kirjoitti:
> > Hi All,
>
> > I need to host my django project from /some/folder in my apache instance.
>
> > I have the following:
>
> > WSGIScriptAlias /some/folder /path/to/django.wsgi
>
> > Does this now mean I have to prefix all my ent
On Oct 15, 7:46 am, Daniel Hilton wrote:
> 2009/10/14 Jani Tiainen :
> > Chris Withers kirjoitti:
> >> Hi All,
>
> >> I need to host my django project from /some/folder in my apache instance.
>
> >> I have the following:
>
> >> WSGIScriptAlias /some/folder /path/to/django.wsgi
>
> >> Does this
On Oct 16, 4:59 am, Ramdas S wrote:
> On Thu, Oct 15, 2009 at 11:11 PM, Christophe Pettus wrote:
>
>
>
> > On Oct 15, 2009, at 10:36 AM, Ramdas S wrote:
>
> > > I am currently running all my sites on modwsgi apache! Though I
> > > cannot complain that the performance is bad, I would like to hav
On Oct 16, 10:21 am, Antoni Aloy wrote:
> 2009/10/16 Graham Dumpleton :
>
> > On Oct 16, 4:59 am, Ramdas S wrote:
> >> On Thu, Oct 15, 2009 at 11:11 PM, Christophe Pettus
> >> wrote:
>
> >> > On Oct 15, 2009, at 10:36 AM, Ramdas S wrote:
>
On Oct 15, 9:41 pm, ReneMarxis wrote:
> Hello
>
> i'm faceing the following problem: i have some application for
> creating image galleries (upload/change...).
> Till now the images are served by an nginx webserver (and are
> therefore open to everyone). The django app is running in apache with
On Oct 19, 2:23 pm, DjangoRocks wrote:
> Hi all,
> as per the subject: what is the most effective and stable Django set
> up options on a production server?
>
> I am currently on a mod_python, linux, apache set up.
>
> And sometimes, it seems that the server is unstable.
> For example, whenever
On Oct 19, 6:10 pm, Lars Stavholm wrote:
> Bit of an annoying problem with apache2 + mod_python configuration.
>
> I've got my django site setup and working. When adding a
> directive in the apache config which then includes authentication,
> the SetHandler None directive doesn't seem to work,
On Oct 21, 4:00 pm, Михаил Лукин wrote:
> ./manage runserver is OK for debugging purposes... unless you use
> server-specific features, in my case - NTLM authentication. When deploying
> Django project with Apache2+mod_wsgi, I need to `rcapache2 reload` to apply
> changes in Python modules (whi
On Oct 21, 5:07 pm, Graham Dumpleton
wrote:
> On Oct 21, 4:00 pm, Михаил Лукин wrote:
>
> > ./manage runserver is OK for debugging purposes... unless you use
> > server-specific features, in my case - NTLM authentication. When deploying
> > Django project with Apa
On Oct 22, 3:44 am, Javier Guerra wrote:
> On Wed, Oct 21, 2009 at 9:49 AM, Michael Thon wrote:
> > Thanks for pointing me towards celery. Its probably overkill for what
> > I want to do right now but I'm going to try to set it up anyway.
>
> the roll-your-own alternative is just setting a DB
The easier thing to do and which works for both HTTP and HTTPS is to
have have any front end web server such as nginx which is handling the
actual request set a special header when request came via HTTPS. In
Apache configuration you then use mod_setenvif to set HTTPS variable.
As an example, WebF
Apache error logs for the host/virtual host the application is running
in normally.
Graham
On Oct 24, 7:54 pm, DjangoRocks wrote:
> hi,
> may i know how ( or where ) do i get the traceback from the error
> logs?
>
> ( i'm kind of a server noob )
>
> On Oct 19,
On Oct 27, 2:20 pm, zweb wrote:
> I want to serve whole of my site on HTTPS.
> But HttpResponseRedirect is sending to http by default.
>
> Any way to tell django that it should use https and not http
>
> I am using mod_python on one site and mod_wsgi on another. Both need
> to go to HTTPS
For
On Oct 27, 9:18 pm, Benjamin Wohlwend wrote:
> Hi,
>
> I develop and maintain several Django sites that are all part of the
> same organization. Some of them are more of the Intranet-type (e.g.
> only for internal use), others are publicly accessible (e.g. a CMS).
> My problem is that certain
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
On Nov 2, 2:04 pm, Kenneth Gonsalves wrote:
> On Monday 02 Nov 2009 8:14:22 am Mike Ramirez wrote:> > hi,
> > > when I switched from apache to nginx, I found that all my spaces in urls
> > > were being replaced with '%20' which caused the urls to fail and
> > > database lookup also to fail. I
Which of the many ways of hosting under Apache are you using?
mod_python? mod_wsgi? mod_fcgid? mod_fastcgi? mod_cgi(d)? mod_scgi?
other?
SetEnv does not set os.environ in a number of these.
Graham
On Nov 3, 4:14 pm, delfick755 wrote:
> Hello,
>
> I have a setup where a django's debug setting
Sorry, I should just follow your pastebin links shouldn't I. :-)
On Nov 3, 4:21 pm, Graham Dumpleton
wrote:
> Which of the many ways of hosting under Apache are you using?
>
> mod_python? mod_wsgi? mod_fcgid? mod_fastcgi? mod_cgi(d)? mod_scgi?
> other?
>
> SetEnv does
Python interpreters for that matter.
Make sure you set PRODUCTION/INTERNET in all application
configurations. Ie., add:
SetEnv PRODUCTION true
SetEnv INTERNET true
or whatever it needs to be in other configurations.
Graham
On Nov 3, 4:28 pm, Graham Dumpleton
wrote:
> Sorry, I sho
On Nov 3, 4:49 pm, Stephen Moore wrote:
> On Tue, Nov 3, 2009 at 1:31 PM, Graham Dumpleton
>
> wrote:
> >http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_E...
>
> > You are experiencing environment variable leakage between Python sub
> > int
On Nov 3, 5:55 pm, Stephen Moore wrote:
> On Tue, Nov 3, 2009 at 2:31 PM, Graham Dumpleton
>
> wrote:
> > Cant you just have different settings files and set
> > DJANGO_SETTINGS_MODULES different for each installation?
>
> The problem with that becomes let
On Nov 5, 8:42 pm, Graham Dumpleton
wrote:
> On Nov 5, 5:49 pm, Jason wrote:
>
> > I have 2 projects, and I want to visit project1 at:http://localhost:8080/,
> > and visit project2 athttp://localhost:8088/.
> > I am not sure if there is a way to do it, but I real
On Nov 6, 6:13 pm, Sam Walters wrote:
> Hi
> I am trying to get mod_wsgi installed on a production server.
> Apache: 1.3.37
> Kernel: 2.6.17.13-vs2.0.2.1vs-1.00
> Os: CentOS 4.8
>
> Following instructions
> from:http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
>
> at the point with
On Nov 11, 10:41 am, BEC wrote:
> I have a Django application running with mod_python on Apache. In
> settings.py I have set TIME_ZONE="America/New_York". Within my
> application I verify that os.environ['TZ'] is indeed set to this
> value. Within my view.py I use datetime.datetime.now() to cre
On Nov 17, 10:58 am, Damon Jablons wrote:
> Hey,
>
> I'm running Nginx which proxies Apache and on my website, I get the
> following error when I tail the Apache log:
>
> [Mon Nov 16 23:51:08 2009] [error] [client 127.0.0.1] No WSGI daemon
> process called 'sub.domain.net' has been configured: /
On Nov 19, 7:36 am, Alessandro Ronchi
wrote:
> I'm running several django applications on different vhosts on a virtual
> server.
> In that virtual server I have enough ram and cpu and I want to get the
> fastest configuration for mod_wsgi.
>
> I don't have much cuncurrent users on the same vir
On Nov 19, 8:53 am, Alessandro Ronchi
wrote:
> On Wed, Nov 18, 2009 at 10:29 PM, Graham Dumpleton <
>
>
>
>
>
> graham.dumple...@gmail.com> wrote:
>
> > Yes, don't be so concerned in the first instance of trying to squeeze
> > the most out of
On Nov 19, 10:48 am, Alessandro Ronchi
wrote:
> With mod_wsgi I only get error logged into apache and not on the interactive
> trackback in the browser, also If i set DEBUG=True in my settings.
>
> Is there any way to handle the django trackback as usual?
Is the error definitely from Django and
On Nov 20, 4:33 am, Stodge wrote:
> I got this working with several sites using Apache. I just created a
> configuration file for each site and pointed it to different settings
> files:
>
>
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SE
On Nov 25, 3:23 pm, Crispin Wellington
wrote:
> Have a read of the mod_wsgi documentation, particularly the
> page:http://code.google.com/p/modwsgi/wiki/ApplicationIssues
>
> Because Django uses environment variables to access the settings file,
> all kinds of strife can occur when running Djan
> bounce Apache for me.
>
> > That's about as close as it'll get, I think :P
>
> You don't give details on what your production environment is so I don't
> know if you can get closer there, but with mod_wsgi you can get closer.
>
> With mod_wsgi i
On Nov 25, 4:52 pm, Graham Dumpleton
wrote:
> On Nov 25, 3:23 pm, Crispin Wellington
>
> wrote:
> > Have a read of the mod_wsgi documentation, particularly the
> > page:http://code.google.com/p/modwsgi/wiki/ApplicationIssues
>
> > Because Django uses envir
On Nov 25, 6:43 pm, Crispin Wellington
wrote:
> On Tue, 2009-11-24 at 21:52 -0800, Graham Dumpleton wrote:
> > Your imagination is running amuck, no such thing happens. You can
> > quite happily run multiple Django instances in embedded mode, they
> > just need to be se
On Nov 26, 5:04 pm, Some Guy wrote:
> WSGIScriptAlias /test
>
> should be
>
> WSGIScriptAlias /
>
> not really sure what you mean by suburl...
No it shouldn't. What he was doing with the directive is correct.
Provided they are using 1.0 or later, urls.py should be setup the same
as if site mo
On Nov 27, 8:21 pm, Gabriel Rossetti
wrote:
> Hello everyone,
>
> this is a bit off-topic, in my apache2 httpd.conf, I see some poeple use
> "SetHandler mod_python" and others (as mentioned in the docs) use
> "SetHandler python-program", what is the difference?
Nothing. They both achieve the sa
On Dec 1, 12:53 pm, "~km" wrote:
> Hello,
>
> I'm a Python enthusiast and Django newbie. I'm trying to develop a
> website with an "Ask and Get an Answer"-Interface, with the goal to
> get a strong community; seehttp://stackoverflow.comto get an idea.
> For more information on stackoverflow.com
Have a read of:
http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
In particular where it says:
"""
If you have been using the Django development server and have made use
of the fact that it is possible when doing explicit imports, or when
referencing modules in 'urls.py', to leave out
Read Apache documentation on virtual hosts.
http://httpd.apache.org/docs/2.2/vhosts/
Graham
On Dec 2, 3:29 am, knight wrote:
> Hi,
>
> I need my django app to listen to port 80 and port .
>
> I have 2 servers. One is listening to both ports and one is not
> listening to .
> The first on
ing in embedded mode or that daemon mode process
group, as appropriate for way configured.
As such, setting these in WSGI script file is better if they relate
only to a specific Django instance.
Graham
> On Dec 1, 3:03 pm, Graham Dumpleton
> wrote:
>
>
>
> > Have a re
you are referred to and also look at what other
documentation exists on that site, starting at:
http://code.google.com/p/modwsgi/wiki/InstallationInstructions
Graham
>
> J
> On Dec 1, 5:22 pm, Graham Dumpleton
> wrote:
>
>
>
> > On Dec 2, 12:02 pm, neridaj wrote:
On Dec 6, 11:12 pm, Oleg Oltar wrote:
> Hi!
>
> I am deploying my django application on a server, and on last stages I am
> getting this error:
>
> ExtractionError at /admin/
>
> Can't extract file(s) to egg cache
>
> The following error occurred while trying to extract file(s) to the Python egg
On Dec 7, 8:47 am, Sameer Rahmani wrote:
> it's very simple ( if you have root access to your host ) just create a
> directory with the name : ".python-eggs" in ther "/" ( root directory ) and
> change it owner to the apache user ( the user who run apache ).
> ( if you don't have root access )
On Dec 7, 1:39 pm, Brian Neal wrote:
> On Dec 6, 7:40 pm, XtraGreen wrote:
>
> > I've changed settings.TIME_ZONE to 'UTC' and restarted my server but
> > when I create records (postgresql) they're not UTC, they're 'America/
> > Chicago' (-6) in the table.
>
> > Am I missing something or is sett
On Dec 7, 8:22 pm, Sameer Rahmani wrote:
> hi
> how can i find out that my project ran under apache or development server ?
How are you running under Apache. Are you using mod_python, mod_wsgi,
fastcgi, something else?
One could try and look for the fingerprint of the development server,
or yo
On Dec 8, 9:45 am, Sameer Rahmani wrote:
> i want to know just about development server . i mean i just want to know
> when my code run under development server:
The body of you post asked about both. :-)
> if development_server:
> some code
If this is for debugging code, then you are p
On Dec 9, 6:16 pm, Lakshman Prasad wrote:
> You can just replace the regex ^/comments/$ with ^/sees/comments/$ within
> the urls.py
>
> Why can't you do that?
Because it will not work.
Based on description he is mounting Django application on /sees in
Apache, likely as:
WSGIScriptAlias /see
You do understand that when running under Apache that the code runs as
a special Apache user.
So, not only would the home directory not even be that for your home
account, Apache scrubs the HOME user environment variable from the
process environment anyway, and so trying to access HOME variable wi
on
> but nothing works :(
>
> And about quotas i think this is not it. Code without quotas works
> fine on dev server, but stop working on apache.
>
> Regards
> Ed
>
> On Dec 10, 10:14 am, Graham Dumpleton
> wrote:
>
>
>
> > You do understand that when ru
You need to use the Django request object to get access to the WSGI
environ variable set and look them up there. When using SetEnv with
mod_wsgi, they are not pushed into os.environ. Although mod_python
does allow one to push variables into os.environ from Apache
configuration, that is arguably bro
Post the actual bits of your Apache configuration related to setting
up Joomla and mod_wsgi. Without seeing how you have done it and how
they relate to each other, not possible to debug your problem.
Graham
On Dec 17, 2:56 am, Urko Masse wrote:
> Hello,
>
> I am trying to deploy a Django develop
On Dec 18, 3:57 pm, Info Cascade wrote:
> Dan,
>
> This works for me -- using mod_python.
>
> VirtualHost defininition:> SetEnv VIRTUAL_HOST_NAME dev.hostname.com
> > SetEnv DATABASE_NAME dbname
> settings.py:
> > VIRTUAL_HOST_NAME = os.environ.get('VIRTUAL_HOST_NAME')
> > DATABASE_NAME = os
Answered in reply to your mod_python mailing list post.
http://www.modpython.org/pipermail/mod_python/2009-December/026415.html
Graham
On Dec 22, 9:45 pm, bharath wrote:
> Hi,
>
> Django is taking time loading libraries . I am using python open
> source libraries like montylingua , simpl
On Dec 24, 4:13 am, Martyn wrote:
> Hey,
>
> I'm getting a 'Premature end of script headers' issue when I'm
> submitting post data, and I'm not sure why.
>
> if I hit the page up normally, it works fine, if I post a form to the
> same url it borks.
>
> Anyone know why? I'm searched for a while
On Apr 19, 9:00 pm, "jani.mono...@gmail.com"
wrote:
> What is the most straightforward way of inspecting/scripting a
> headless Java application from Django?
> I run Jython embedded in the Java app already so this may or may not
> make things easier than plain Java on one side.
>
> Instead of wr
On Apr 21, 12:09 pm, Brad Buran wrote:
> I'm currently researching Django as a potential framework for a web
> application I am building. We plan to make a variety of media (images
> and videos) free on our website; however, we want to have some premium
> media available only when certain crite
rver or your Apache instance. Some also require optional
web server modules to be installed.
Graham
> Brad
>
> On Tue, Apr 20, 2010 at 10:50 PM, Graham Dumpleton <
>
>
>
>
>
> graham.dumple...@gmail.com> wrote:
>
> > On Apr 21, 12:09 pm, Brad Buran wrot
On Apr 26, 3:46 pm, Kenneth Gonsalves wrote:
> On Friday 23 Apr 2010 6:03:33 pm Massimiliano della Rovere wrote:
>
> > does apache have the rights to open the file and enter the directories
> > smedia and images?
>
> yes
This sort of loss of a slash is usually caused by people writing:
Alias
On Apr 30, 4:01 am, "ge...@aquarianhouse.com"
wrote:
> it should be already switched on
>
> http://www.modpython.org/live/current/doc-html/dir-other-par.html
That has zero effect in the case of Django.
The automatic reloading in mod_python only applies to handler code
files directly under the
On Apr 30, 2:57 am, "ge...@aquarianhouse.com"
wrote:
> Sure, with WSGI script reload
In respect of what? You can't just say WSGI as a generalised concept
in this case, you have to refer to the specific WSGI hosting
mechanism.
Many WSGI hosting mechanisms don't provide a way of doing automatic
On May 7, 7:34 am, When ideas fail wrote:
> Hi, I have been trying to setup mod_wsgi with apache 2
>
> but when I do:
>
> sudo a2enmod mod-wsgi
> sudo /etc/init.d/apache2 restart
>
> I get this error message:
>
> Restarting web server: apache2apache2: Syntax error on line 185 of /
> etc/apache2/
On May 7, 4:40 am, Ross wrote:
> I have a Django app that selects one of many possible XML documents,
> parses it with minidom.parse(), finds all elements of a certain tag
> with getElementsByTagName() then it sends a small subset of those
> elements off to a client browser. So I typically have
On May 10, 7:25 pm, Tom Evans wrote:
> On Mon, May 10, 2010 at 9:39 AM, Ivan Uemlianin wrote:
> > Dear Kenneth
>
> > Thanks for your suggestion.
>
> > I tried
>
> > $ chmod -R a+x mysite
>
> > (where mysite is the django site directory)
>
> > and stopped and started apache, but no effect.
>
On May 10, 10:42 pm, Ivan Uemlianin wrote:
> Dear All
>
> The nginx/fastcgi set up is now working (there's an easy-to-follow
> howto on the django advent site [1]).
>
> Embarrasingly I may have stumbled upon what was getting me 403s with
> mod_wsgi, and it's nothing to do with apache or mod_wsgi
On May 21, 9:45 am, VWAllen wrote:
> I have my project set up to use Apache/mod_wsgi with different configs
> for dev, staging and production. I'd like to set up my dev server to
> automatically reload the WSGI app per request (without touching my
> django.wsgi file each time).
If you want to d
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
On May 24, 5:04 pm, laspal wrote:
> Hi,
> How to restrict the size of file being uploaded. I am using django
> 1.1 with apache. Can I use apache for this and show some html error
> page if say size is bigger then 100MB.
> I can use LimitRequestBody for restricting the file size in apache,
> My
On May 24, 5:23 pm, laspal wrote:
> Hi,
> How can I restrict the number of file upload sessions. Say suppose I
> want only 100 user at any instant of time and I
> also there is no problem of Denial of Service attacks.
You may want to look at it in terms of bandwidth used. See:
http://www.co
On May 26, 12:03 pm, Kenneth Gonsalves wrote:
> On Wednesday 26 May 2010 03:52:16 Chris Seberino wrote:
>
> > I tried adding paths to sys.path in the wsgi file.
>
> you need to add the path to the *parent* directory of your project, and your
> project should have __init__.py in every folder wher
On May 27, 8:42 am, mojito wrote:
> Hello,
> I am trying to set up django 1.1.1 with mod_wsgi 2.3 and Apache
> 2.0.63 on Windows XP. My Python version is 2.4.4
>
> I followed the instructions for installing and configuring mod_wsgi
> fromhttp://code.google.com/p/modwsgi/.
>
> I set up the "Hell
On May 28, 8:35 am, Chris Seberino wrote:
> On May 27, 10:51 am, Nuno Maltez wrote:
>
> > > ImportError: No module named mvc
>
> > What's the "mvc" module? Python can't seem to find it. Is it in your
> > python path?
>
> My project is called seoconquer.
> My app is called mvc.
> My absolute dir
On May 28, 6:27 am, mojito wrote:
> > > When I come to deploy my django app on Apache , I get this error.
>
> > > [error] [client 127.0.0.1] Target WSGI script not found or unable to
> > > stat: C:/wsgi-django-app
> > > /testing/apache/django.wsgi
>
> > This will occur where the user that the A
In '/home/seb/MAIN/seoconquer', can you do:
ls -las
ls -las mvc
and post the output.
If you are concerned about revealing details send it to my email
direct.
Graham
On May 29, 7:19 am, Chris Seberino wrote:
> On May 27, 6:56 pm, Graham Dumpleton
> wrote:
>
>
On Jun 1, 1:04 pm, Kieran Farr wrote:
> We're adapting our Django powered video site to be an open video
> platform for any user to create their own "site" using subdomains (eg
> mysite.vidplatform.com) on one Django server instance. Each "site"
> would obviously have content associated with onl
On Jun 3, 12:38 pm, Superman wrote:
> Thanks for your reply. How do you check env path variables diff
> between shell and code
> execution?
>
> To my wsgi file, I have this line "#!/usr/local/bin/python" which
> tells which interpreter to use.
Generally, no it doesn't. If this is a WSGI script
On Jun 3, 1:20 pm, Bruce Wang wrote:
> On Thu, Jun 3, 2010 at 12:38 PM, Superman wrote:
> > Thanks for your reply. How do you check env path variables diff
> > between shell and code
> > execution?
>
> > To my wsgi file, I have this line "#!/usr/local/bin/python" which
> > tells which interpret
On Jun 5, 9:42 pm, Richard Shebora wrote:
> A must read for using django
> withmod_wsgi...http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
And actually starting with the official mod_wsgi documentation and
getting a hello world program working first is a good idea.
ht
On Jun 7, 4:47 am, Chris Seberino wrote:
> My Django app runs great with Apache+mod_wsgi.
> Apache now runs my Django app as user www-data.
> This causes issues since my Django app is sitting in my non-root
> user's $HOME directory.
>
> Best solution seems to be to add my user and www-data to sa
Do you have multiple Django sites hosted on the same Apache?
Try alternate WSGI script as documented in:
http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
to see if it makes a difference.
Graham
On Jun 11, 12:44 am, Hasnain Lakhani
wrote:
> I have a django site deploye
the Apache parent process.
Thus, that comment only applies where Apache wasn't in the first
instance started as root, ie., you started it by hand from your own
user account as yourself and not as root via sudo or when system
starts up.
Graham
> On May 22, 1:47 am, Graham Dumpleton
> wr
On Jun 15, 2:48 am, Chris Seberino wrote:
> 1. Restarting Apache+mod_wsgi
> 2. Clearing Firefox cache and
> 3. Visiting Django app URL
>
> are all done often when debugging/developing a DJango app under Apache
> +mod_wsgi.
>
> I've noticed with mod_wsgi, I will *SOMETIMES* get an error after thi
On Jun 16, 12:45 am, Chris Seberino wrote:
> On Jun 14, 7:02 pm, Graham Dumpleton
> wrote:
> > Use WSGI script described in:
>
>
>
> > http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
>
> In mod_wsgi's defense, remember that this e
401 - 500 of 1006 matches
Mail list logo