On 10/07/12 08:08, Rohan wrote:
Hi Matt,
If you do not have static serving enabled in your django application
mapping to /static/ in urls.py, then the content is being served by
Apache.
In settings.py I commented out the lines which assign MEDIA_ROOT,
MEDIA_URL, and ADMIN_MEDIA_PREFIX becaus
Hi Matt,
If you do not have static serving enabled in your django application
mapping to /static/ in urls.py, then the content is being served by Apache.
What is your MaxRequestsPerChild in your apache conf?
One of the reasons production environments use a different web server
for serving sta
Thx Kenneth, Rohan, Melvyn.
I've arrived at something that works:
httpd.conf:
WSGIScriptAlias /
/usr/local/django/projectName/apache/django.wsgi
Alias /static
/usr/local/django/projectName/static
So everything that's not a template lives unde
On 3-7-2012 5:03, Matt Smith wrote:
> Up until now I've been serving non-dynamic content the usual way. I
> apt-got installed apache2, worked out /var/www was the root, followed
> the index.html convention and that worked fine. Now I feel I'm stuck
> between that old way of doing things and the dj
If you change '/django' to '/' in your WSGIScriptAlias directive, then
everything will be forwarded to django, but apache will no longer check
in DocumentRoot since all url paths begin with a '/' and will be matched
by your wsgi alias
This means you would need another way of handling static co
On Tue, 2012-07-03 at 15:03 +1200, Matt Smith wrote:
> Now I feel I'm stuck
> between that old way of doing things and the django/wsgi way which I
> can't get my head around even after reading the docs.
I would suggest that you start with trying to understand the concept of
virtual host in Apac
Hi,
I made a multi choice quiz using django and was able to deploy it at:
http://mattsmith.org.nz/django/test
Thanks to the community for making these tools available.
I am a self-taught programmer, this is the first time I have tried any
web development so please be patient. I always fin
7 matches
Mail list logo