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 Graham Dumpleton
o > 8 drwxr-xr-x 3 priya priya 4096 2007-11-04 18:33 .vlc > 8 -rw-r--r-- 1 priya priya 878 2007-11-05 14:22 .xsession-errors > [EMAIL PROTECTED] ~]$ > > On Nov 5, 3:16 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > Please do not keep deleting the pre

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
un 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:

Re: problem with Django

2007-11-07 Thread Graham Dumpleton
Go and read the mod_python documentation again. In particular: """An example might make this clearer. Suppose you have some applications under /usr/local/django-apps/ (for example, /usr/local/ django-apps/weblog/ and so forth), your settings file is at /var/www/ mysite/settings.py and you have sp

Re: problem with Django

2007-11-08 Thread Graham Dumpleton
s/django/contrib/admin/ media # Tell Apache it is allowed to serve files from where media files are stored. Order allow,deny Allow form all Check that ADMIN_MEDIA_PREFIX is set to '/media/' in settings.py file. Restart Apache. Graham > On Nov 8, 12:16 am, Graham Dumpleton <

Re: problem with Django

2007-11-08 Thread Graham Dumpleton
Type: ImproperlyConfigured > Exception Value:Error while importing URLconf 'crimemap.urls': name > 'crimemap' is not defined > Exception Location: /usr/lib/python2.5/site-packages/django/core/ > urlresolvers.py in _get_urlconf_module, line 255 >

Re: problem with Django

2007-11-07 Thread Graham Dumpleton
Check the file and directory permissions like suggested when you were first trying to setup your site, this time looking at any new files and directories you have added within your site area. They should have permissions so they are readable to Apache. Graham On Nov 8, 6:32 pm, stranger <[EMAIL

Re: problem with Django

2007-11-08 Thread Graham Dumpleton
rls': name > > 'crimemap' is not defined > > Exception Location: /usr/lib/python2.5/site-packages/django/core/ > > urlresolvers.py in _get_urlconf_module, line 255 > > Python Executable: /usr/bin/python > > Python Version: 2.5.0 > > >

Re: problem with Django

2007-11-08 Thread Graham Dumpleton
otes around the second value in the tuple: (r'^crime/([a-zA-Z]+)', 'crimemap.mapper.views.crime_by_type'), > http://localhost:8000/crime/arson > > should yield me the resulting view but i am getting an error I > mentioned above > > On. Nov 8, 12:08 am, G

Re: Authorization from ssl certificate data

2007-11-12 Thread Graham Dumpleton
On Nov 13, 3:34 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 11/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > So, without having tested it, you might be able to access > > request._req.subprocess_env to get the information (although read the > >mod_pythondocs first, particularl

Re: Accessing SSL client certificate variables

2007-11-15 Thread Graham Dumpleton
This was discussed a few days ago. http://groups.google.com/group/django-users/browse_thread/thread/92c663f6fbad1003/eddf765c2ddb7499?lnk=gst&q=ssl_var_lookup#eddf765c2ddb7499 On Oct 18, 1:22 am, lmierzej <[EMAIL PROTECTED]> wrote: > Is there a way to access apache/mod_python's SSL client cert

Re: MOD_PYTHON ERROR

2007-11-15 Thread Graham Dumpleton
On Nov 15, 8:32 pm, pacman <[EMAIL PROTECTED]> wrote: > Well, from what I can tell, there should not be any incompatibilities > since as of right now the farthest that I have gotten was creating > models. I didn't see anything from the wiki list that would pose a > problem. I tested out on the dj

Re: Memory problem... does this make sense

2007-11-15 Thread Graham Dumpleton
On Nov 16, 9:40 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I keep blowing up memory and crashing the server. Watching my memory > usage, it doesn't act like a leak. Instead of gradually rising, every > process will hover along at about 20 megs usage, then one will spike > to about 150, t

Re: mod_python delivering form data to wrong Django instance?

2007-11-16 Thread Graham Dumpleton
On Nov 17, 6:07 am, Steve Freitas <[EMAIL PROTECTED]> wrote: > Hi all, > > Yes, I realize that maybe this should go to the mod_python list instead, > but I wanted to rule Django out first. Here's my configuration, with > Apache2 on Linux (sorry I couldn't make this shorter): > > I've got four Djan

Re: Apache mod_python config problem

2007-11-17 Thread Graham Dumpleton
On Nov 18, 2:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks for the help. I didn't think about checking permissions. I > have the site working now and I think it was a combination of > permissions and file paths. Here's the httpd.conf file that works: > > > ServerName

Re: URL/Request Question

2007-11-19 Thread Graham Dumpleton
On Nov 20, 8:09 am, bfrederi <[EMAIL PROTECTED]> wrote: > We figured it out by looking in themod_pythonhandler and themod_pythondocs. > What we were looking for was in request._req actually > (through themod_pythonhandler), so thanks for that tip. It was the > request._req.unparsed_uri attribute.

Re: Django Web Hosting Service

2007-11-25 Thread Graham Dumpleton
On Nov 25, 6:58 pm, David Sissitka <[EMAIL PROTECTED]> wrote: > Hello, > > > then why do you recommend that apache be restarted on 17,37 and 57 minutes? > > In fact *you* yourself install that cronjob on all django sites.? > > The cron job you're referring to: > > 1) Exists because if you've a sp

Re: Django Web Hosting Service

2007-11-25 Thread Graham Dumpleton
On Nov 26, 7:00 am, Jose C <[EMAIL PROTECTED]> wrote: > > In short, if you are running Django in worker MPM for Apache, you can > > be subject to sudden memory increases when you get concurrent requests > > against resources which chew up a lot of transient memory. Receiving a > > lot of concurren

Re: Publishing

2007-11-26 Thread Graham Dumpleton
FWIW, you should never call stuff that might be interpreted as a Python module, 'test'. This is because there is a standard Python module of that name. Thus, depending on sys.path order, it could pick up the standard Python module instead of your site package. Thus, for a start, trying to recreat

Re: Publishing

2007-11-27 Thread Graham Dumpleton
ponse, > > The 'test' is actually just a stand-in name for this posting. > > Thanks, > Mike > > On Nov 26, 7:10 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > FWIW, you should never call stuff that might be interpreted as a > > Python

Re: Installation - symlink vs. python setup.py install

2007-12-03 Thread Graham Dumpleton
Apache generally runs as a special user. This user must have read access to those Django modules you have symlinked into the Python site- packages directory. Thus if the files are not readable to others, or any of the directories from the root right down to where the Django software is actually in

Re: Python Egg issues

2007-12-03 Thread Graham Dumpleton
On Dec 4, 11:22 am, Michael Newman <[EMAIL PROTECTED]> wrote: > This isn't strictly a problem with Django, but for some reason I am > having problems extracting my python eggs. Mod_python comes back with: > > ExtractionError: Can't extract file(s) to egg cache > > The following error occurred whil

Re: Python Egg issues

2007-12-03 Thread Graham Dumpleton
ute paths tomorrow. > Thanks > > On Dec 3, 7:55 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Dec 4, 11:22 am, Michael Newman <[EMAIL PROTECTED]> wrote: > > > > This isn't strictly a problem with Django, but for some reason I am > &g

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread Graham Dumpleton
On Dec 5, 3:06 am, walterbyrd <[EMAIL PROTECTED]> wrote: > On Dec 4, 7:12 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 04-Dec-07, at 7:05 PM, walterbyrd wrote: > > > I may also install drupal on the same site, so I'll probably go with > > > mysql. I don't know if that matters. > > > y

Re: Installation - symlink vs. python setup.py install

2007-12-04 Thread Graham Dumpleton
ler and see what sys.path is actually being set to for a request. Graham > On Dec 3, 9:38 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > Apache generally runs as a special user. This user must have read > > access to those Django modules you have symlinked into th

Re: Installation - symlink vs. python setup.py install

2007-12-04 Thread Graham Dumpleton
look there. Can you just use the OS version of Python 2.5 on MacOS X 10.5 and not the MacPorts version. I have seen someone else having odd problems when they tried to install MacPorts 2.5 when the OS already supplied 2.5. Graham On Dec 5, 11:57 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote

Re: Installation - symlink vs. python setup.py install

2007-12-05 Thread Graham Dumpleton
created using virtualenv. This way you could have different virtual environments for different versions of Django and how applications using the different versions in different daemon processes using mod_wsgi daemon mode. :-) Graham On Dec 6, 11:14 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote:

Re: Strange FastCGI problems

2007-12-05 Thread Graham Dumpleton
On Dec 6, 12:04 pm, TP <[EMAIL PROTECTED]> wrote: > I've been using Django for the past few months and had great results > with Apache and mod_python. However, I'd like to try and reduce the > amount of memory that is used by having multiple Apache's each with > their own copy of my application. I

Re: Installation - symlink vs. python setup.py install

2007-12-05 Thread Graham Dumpleton
thon > Python 2.5.1 (r251:54863, Oct 5 2007, 21:08:09) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > > >>> import django.core.handlers.modpython > &g

Re: Strange FastCGI problems

2007-12-05 Thread Graham Dumpleton
provider. For what those sites do, having that feature is critical and they can't move away from mod_python until mod_wsgi provides an equivalent mechanism. Graham > On Dec 5, 8:26 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Dec 6, 12:04 pm, TP <[EMAIL PROTE

Re: Performance of a django website

2007-12-11 Thread Graham Dumpleton
On Dec 12, 6:21 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi again, > > > 3. I'm using prefork MPM on apache with maxclients set to 1000. > > Apart from Joe's excellent profiling suggestion, I would recommend > reducing maxclients to a much lower value (like say 100) and then > increasing it

Re: Strange error, trying to deploy Django with mod_wsgi

2007-12-11 Thread Graham Dumpleton
On Dec 12, 3:18 pm, Michael Best <[EMAIL PROTECTED]> wrote: > yml wrote: > > Hello Steve, > > > Sometimes ago when I first try to use mod_wsgi I have written a wiki > > page there: > >*http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi > > It is a step by step procedure that I have

Re: Upgraded python2.4 to python2.5 but Django still running on python2.4

2007-12-19 Thread Graham Dumpleton
On Dec 20, 7:19 am, Nabuco <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm pretty new to Python so the answer to my problem may be obvious, > but I can't get to this folks. > > After installing python2.5 from sources, I switched the symlink in / > usr/bin/python to point to /usr/local/bin/python. Whe

Re: is there any way to avoid restart apache when changed django code to see the modification

2007-12-23 Thread Graham Dumpleton
Or use daemon mode of mod_wsgi 2.0 instead and enable process reload mechanism. This way all you need to do is touch the WSGI script file for the Django application and the daemon process for just Django will be restarted automatically without the need to restart the whole of Apache. Daemon mode

Re: Run different django versions

2007-12-23 Thread Graham Dumpleton
On Dec 24, 9:36 am, [EMAIL PROTECTED] wrote: > Hi i have 2 projects which one of them uses the svn version of the django and > another uses 0.96.1 > > How should i handle that situation. Currently i checouted the svn version and > created a ln -s to my site-packages version? > > How can i have the

Re: Performance of a django website

2007-12-26 Thread Graham Dumpleton
On Dec 26, 6:44 pm, Dima Dogadaylo <[EMAIL PROTECTED]> wrote: > On Dec 11, 8:37 pm, Richard Coleman <[EMAIL PROTECTED]> > wrote: > > > 1. mod_python > > 2. apache 2.2.4 > > 3. I'm using funkload and ab to measure the requests per second of one > > of the base pages within the dynamic part of the w

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-12-26 Thread Graham Dumpleton
On Dec 27, 9:49 am, Oliver Beattie <[EMAIL PROTECTED]> wrote: > Did anyone ever get this working, I am tearing my hair out here trying > to figure it out; I finally get it to build and now I'm getting:- > > ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Library/ > WebServer/.python-eg

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-12-27 Thread Graham Dumpleton
> 64-bit:http://farm3.static.flickr.com/2013/2140077639_7abe03b5fb_o.gif > > > Yet I still get this error, am I missing something? > > > I would be reluctant to make force Apache into 32-bit, but if that's > > the only option... > > > On Dec 27, 12:18 am, Graha

Re: Running Multiple Versions of Django (91 and trunk) on the same machine

2006-09-25 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > I'm trying to run multiple versions of Django on OS X to support > applications written under different code. After searching ad nauseum, > I think I'm very close, but I can't get it working. I'd like to be able > to choose the Django version, either through the developm

Re: settings

2006-09-28 Thread Graham Dumpleton
Malcolm Tredinnick wrote: > > On a side not, why can't django detect that I have modified a file and > > reload it, much better than running in a beta mode. > > Not entirely sure what you mean here. The development server can detect > this. You can configure mod-python to do so, too, although it's

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-05 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > Hello. I'm trying to get Apache to authenticate users using Django's > user database but I'm getting the above error (the whole apache error > log is at the bottom of the message). > > I've set up my project and created users using the Django development > server so the

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-06 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > Hi.. thanks for your replies guys. > > You're probably right... I'm running mod_python from the Ubuntu dapper > repositories which currently has version 3.1.4. Unfortunately the Edgy > package (which is 3.2.8) depends on a newer version of libc6 which > means that I rea

Re: Error when switching the debug flag to false

2006-10-09 Thread Graham Dumpleton
Malcolm Tredinnick wrote: > Then focus your attention on that one. If > necessary, put some debugging prints into the Django source at one of > the points in the traceback (starting from the bottom) to see what might > be going on. Print the information to sys.stderr, which will go to your > Apac

Re: how to tell if django is running from apache or standalone?

2006-11-16 Thread Graham Dumpleton
sandro.dentella wrote: > Hi all, > > how can I test from within settings.py if I'm running via mod_python > or in standalone way? I need to set a variable, accordingly. You could use something like: in_mod_python = False try: from mod_python import apache in_mod_python = True e

Re: Session problems

2006-11-27 Thread Graham Dumpleton
Adrian Holovaty wrote: > On 11/7/06, Jakub Labath <[EMAIL PROTECTED]> wrote: > > If you take a look at the attached log you will see the same child > > process having the same request._req object for two different IP > > addresses. Now this should not normally happen should it. The memory > > add

Re: Session problems

2006-11-28 Thread Graham Dumpleton
Brian Ray wrote: > Graham: > > This behavior has been seen with mod_python under certian instances. > For example how to the settings in httpd.conf effect this? For example, > "PythonAutoReload On" and apache's MaxRequestsPerChild 1. Maybe they > can aggravate a problem when something else is go

Re: File downloads

2006-12-03 Thread Graham Dumpleton
marksibly wrote: > Found it in the FAQ; > [quote] > If you're using mod_python but not using Django's request handler, > you'll need to work around a mod_python bug related to the use of > SetEnv; before you import anything from Django you'll need to do the > following: > > os.environ.update(req.s

Re: Session problems

2006-12-03 Thread Graham Dumpleton
Jakub Labath wrote: > Hi All, > > Sorry for being quiet for a while just got back from a vacation. > > > > > Hi Jakub, > > > > Do you have any updates on this problem? Was it a mod_python bug? > > > > Adrian > > > > No the problem persists and I noticed that my coworkers have not > resolved this

Re: Accessing the current request object in a template loader

2006-12-17 Thread Graham Dumpleton
kahless wrote: > hi, > i want to make a simple template loader which loads from directories > depending on the sub-site the user requests a page from. (or probably > also from the user session - which theme he has set, etc.) > > so i would need to get the current request object but haven't found

Re: django.core.handlers.modpython imported several times

2007-01-04 Thread Graham Dumpleton
Adrian Holovaty wrote: On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > here what I've got from my Apache2 error log: > > [Thu Jan 04 16:07:57 2007] [notice] mod_python: (Re)importing module > 'django.core.handlers.modpython' > [Thu Jan 04 16:08:06 2007] [notice] mod_python: (Re)importi

Re: django.core.handlers.modpython imported several times

2007-01-04 Thread Graham Dumpleton
Adrian Holovaty wrote: On 1/4/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > FWIW, it amazes me sometimes that although Django can be made to work > on mod_python that very few if any Django developers I have seen > exhibit any real knowledge about how Apache/mod_pyt

Re: easy way of rerouting print messages

2007-01-26 Thread Graham Dumpleton
On Jan 25, 11:57 pm, "Benedict Verheyen" <[EMAIL PROTECTED]> wrote: > Hi, > > when i used the builtin web server, i did my debugging via print messages. > Now that the site has gone into production, i use Apache and so the > print messages > don't show up anymore. > Is there an easy way to rerou

Re: request.META.PATH_INFO strangeness...

2007-01-29 Thread Graham Dumpleton
On Jan 30, 6:42 am, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > hello everyone, > > Short question! > > If I go tohttp://my.server.com/hello/this/is/my/path/ > > and request.META.PATH_INFO is set to "/path" not to > "/hello/this/is/my/path/" > > Runningmod_python/ apache. In the dev-ser

Re: ImproperlyConfigured: Error importing middleware django.contrib.sessions.middleware: "No module named mysite"

2007-02-02 Thread Graham Dumpleton
On Feb 3, 12:12 am, "HenrikG" <[EMAIL PROTECTED]> wrote: > My biggest problem was to get the Location directive right in the > httpd.conf. It now looks like this: > > > SetHandlermod_python > PythonHandler django.core.handlers.modpython > PythonPath "sys.path + ['/usr/local/apache2/django

Re: Can I get stdout from mod_python?

2007-02-05 Thread Graham Dumpleton
On Feb 6, 1:38 am, "quentinsf" <[EMAIL PROTECTED]> wrote: > I'm developing some code which I need to run undermod_python- the > 'runserver' option won't work because it's complex stuff and I need to > handle multiple simultaneous requests, even in the early debugging > stages. > > It would be re

Re: mod_python whoes

2006-08-30 Thread Graham Dumpleton
Kenneth Gonsalves wrote: > On 30-Aug-06, at 3:35 PM, Frank Stüss wrote: > > > on a production server with mod_python, how can i force reloading > > all .py > > files without restarting apache? > > you cant To clarify, this is only the case where the Python code file is loaded by Django using its

Re: mod_python whoes

2006-08-31 Thread Graham Dumpleton
Frank Stüss wrote: > Thanks to you. > > So it is like it is. No short changes on a virtually hosted production server > with mod_python :) > > And my second problem doesn't belong in this list. After googling again i > found that it may be caused by a wrong compiled mod_python (two mod_python > v

Re: mod_python whoes

2006-08-31 Thread Graham Dumpleton
Frank Stüss wrote: > Thanks again for anticipation. > > The strange thing is: Apache *has* been restarted (as of message of my > provider). That's why i talked about a cache or something. I found others > experiencing this problem, too. We will see. If you are using a service provider, ask them

Re: mod_python - Using Apache prefork Vs Apache worker

2006-09-07 Thread Graham Dumpleton
gabor wrote: > Filipe wrote: > > Hi, > > > > The docs say [1] that: > > "Django requires Apache 2.x and mod_python 3.x, and you should use > > Apache's prefork MPM, as opposed to the worker MPM." > > > > I want to test a Django site on a server (I plan to deploy there some > > other sites in the f

Re: [modwsgi] Thread timeout

2012-02-12 Thread Graham Dumpleton
On 13 February 2012 08:30, Phyllipe Medeiros wrote: > I have made this class: > "class Teste(Thread): >     def __init__(self): >         Thread.__init__(self) >     def run(self): >         try: >             print "Begin" >             from httplib2 import Http >             import time >      

Re: Mod_Wsgi + Apache 2.2 + Threads + httplib2

2012-02-15 Thread Graham Dumpleton
On Feb 14, 1:31 am, sbrandt wrote: > mod_wsgi doesn't support print, does it? Its usage should raise an > exception. Yes it does support 'print'. Read: http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output.html Graham -- You received this message because you are subscribed t

Re: New Relic with Django

2012-01-04 Thread Graham Dumpleton
On Jan 4, 10:40 pm, prabesh shrestha wrote: > I am trying to get started too with new relic. > I did all the configurations and it looks like everything is properly > set up. I am using gunicorn for my loca development. SO acc to the > tutorial I can start the app with > NEW_RELIC_CONFIG_FILE=ne

Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-14 Thread Graham Dumpleton
On Jan 15, 9:40 am, Stuart Laughlin wrote: > Graham turned up on a thread in another forum where I was asking about how > to fix a strange error I had been seeing intermittently for months. He > instructed me on how to put mod-wsgi into daemon mode, among other things, > and finally solved my pr

Re: environment variables in virtualenv's postactivate using mod_wsgi

2013-05-22 Thread Graham Dumpleton
On Thursday, 23 May 2013 07:57:02 UTC+10, ke1g wrote: > > Since my Apache virtualhost file contains >> >> WSGIDaemonProcess mysite.local >> python-path=/my/python/path:/path/to/my/project/venv/lib/python2.7/site-packages >> > > If memory serves, this does not cause the .pth files in site-packages

Re: running projects on the back of a base URL and having issues with the homepage

2010-12-15 Thread Graham Dumpleton
On Wednesday, December 15, 2010 11:10:06 PM UTC+11, Craig Trader wrote: > > Here's how I solved this problem for my own applications. Note that I use > VirtualEnv to ensure that each application gets exactly the Python > environment I want it to have. If you don't use VirtualEnv, it will make

Re: running projects on the back of a base URL and having issues with the homepage

2010-12-15 Thread Graham Dumpleton
g - > > On Wed, Dec 15, 2010 at 17:11, Graham Dumpleton wrote: > >> >> >> On Wednesday, December 15, 2010 11:10:06 PM UTC+11, Craig Trader wrote: >> >>> Here's how I solved this problem for my own applications. Note that I >>> use VirtualEn

Re: virtualenv and deployment

2010-12-16 Thread Graham Dumpleton
On Friday, December 17, 2010 1:21:26 AM UTC+11, Craig Trader wrote: > > Alex ... > > This is the point where my experience ends -- I'm not operating in a > hosting environment. I can tell you that mod_python has to be compiled for > a specific version of Apache AND Python (one of the reasons t

Re: registering app level signal handlers

2010-12-16 Thread Graham Dumpleton
On Friday, December 17, 2010 10:00:55 AM UTC+11, dmitry b wrote: > > Hi, What is the best place to register a signal handler so that the > registration happens when the app is first initialized into django? I have > an app that needs to listen to signals generated by another app and fire off >

Re: virtualenv and deployment

2010-12-21 Thread Graham Dumpleton
m On Wednesday, December 22, 2010 12:54:47 AM UTC+11, xota wrote: > > A related question... why my apache forks (to server to the clients) don't > update the code at same time? Can I force django to compile and load the .py > files at time of server? (Only for debug) > > On Thu, D

Re: django using wrong python???

2010-12-30 Thread Graham Dumpleton
Are you having this problem with Django development server, or with a production type hosting setup such as mod_wsgi? Need to know which. Graham On Friday, December 31, 2010 1:34:22 AM UTC+11, yelbuke wrote: > > Hi, > > I'm on centos and have two pythons 2.5 and 2.6. > > I tried in models.py: >

Re: How configure Django to handle /books URL and yet allow access to PDFs/images in subdirs of /books?

2011-01-04 Thread Graham Dumpleton
On Tuesday, January 4, 2011 2:54:25 PM UTC+11, Chris Seberino wrote: > > How configure Django to handle /books URL and yet allow access to PDFs > and images in subdirs of /books? > > Specifically, I want /books to be a dynamic page with lots of links to > PDFs and images of book covers contain

Re: an error happened to apache2and wsgi

2011-01-05 Thread Graham Dumpleton
Which generally indicates that the HTTP client closed the connection before all of the response could be written back. There is no traceback because it is occurring after Django has returned the response and mod_wsgi is trying to write/flush it back to HTTP client. By rights the 'Exception occu

Re: How to plug in Python: CGI

2011-01-18 Thread Graham Dumpleton
On Wednesday, January 19, 2011 12:52:14 AM UTC+11, tonton wrote: > > now it is seems to be mod_wsgi > > in apache/conf.d/ yoursite.conf > > WSGIScriptAlias / /path/to/your/djangoproject/wsgi_handler.py > >WSGIDaemonProcess djangoproject user=CCC group=CCC processes=5 > threads=1 >

Re: 4 different domains on single apache/mod_wsgi

2011-01-19 Thread Graham Dumpleton
Technically it should be able to made to work. I would recommend though you use mod_wsgi daemon mode and delegate each Django site instance to its own process, rather than each sharing the same process but in different sub interpreters. See: http://code.google.com/p/modwsgi/wiki/QuickConfigu

Re: Django Deployment Statistics (via djangosites.org)

2011-01-22 Thread Graham Dumpleton
For each category, is there a list to choose from or up to people to enter in right name? Is odd that uWSGI doesn't even get a mention for serving method. Either way, very interesting and will be more interesting to see over time what take up of Tornado and gunicorn is, especially with the majo

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
Rather than have us guess what is in your settings file, post that whole section. For example: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': os.path.join(ENVIRON_ROOT, 'db'

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
t; localhost. Not used with sqlite3. > 'PORT': '', # Set to empty string for default. > Not used with sqlite3. > } > } > > Inside the settings.py file, in the template_dirs section, there's a line > says os.path.join(os.

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
Still doesn't work. But thank you for trying to help me. It keep giving me > the same ENGINE configuration that it is not set. > > On Sun, Jan 23, 2011 at 8:05 PM, Graham Dumpleton > wrote: > >> >> >> On Monday, January 24, 2011 12:42:57 PM UTC+11, Kimberly wrote

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
the browser. Not everything, just the exception message and traceback will do. In other words, we need to see the actual context in which the real error message is displayed and the exact wording of the error message and the location. Graham > On Sun, Jan 23, 2011 at 8:19 PM, Graham Dumplet

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 2:19:09 PM UTC+11, Steven Elliott Jr wrote: > > Copy and Paste the following to replace your entire DATABASES tuple: > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.sqlite3', > 'NAME': 'database.db', >

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
se even if you think it isn't. Graham On Monday, January 24, 2011 2:35:06 PM UTC+11, Kimberly wrote: > > it says that the _file_ is not defined. > > On Sun, Jan 23, 2011 at 9:28 PM, Graham Dumpleton > wrote: > >> >> >> On Monday, January 24, 2011 2:19:09 P

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
g the print __file__ and 'DATABASES', DATABASES) as > I'm encountering the same after I've copied and paste the print inside the > settings.py file at the end) > > On Sun, Jan 23, 2011 at 9:40 PM, Graham Dumpleton > wrote: > >> That is two underscores, f

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
On Monday, January 24, 2011 2:55:16 PM UTC+11, Graham Dumpleton wrote: > > Are you saying that those two print statements you were told to add are not > causing anything additional to be displayed on the screen when you run both > runserver and syncdb? > > This is why I as

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
INE': 'django.db.backends.sqlite3', 'NAME': > 'wiki.db', 'HOST': '', 'USER': '', 'PASSWORD':'', 'PORT':''}} > validating models... > 0 errors found > > Django version

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
y > file somewhere which is being found instead of that in same directory as > manage.py. > > Finally, if you have modified manage.py, tell is what you have changed it > to. > > > > On Sun, Jan 23, 2011 at 10:27 PM, Graham Dumpleton > wrote: > >> >&

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
or either echo $PYTHONPATH >> and echo $DJANGO_SETTINGS_MODULE >> >> I am currently reading your messages. >> >> >> On Sun, Jan 23, 2011 at 10:55 PM, Graham Dumpleton > > wrote: >> >>> >>> >>> On Monday, January 24, 2011 3:44:59 PM UTC+11,

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
n manage.py syncdb to see > if it works? > YES. YES. YES. :-) Graham > > On Sun, Jan 23, 2011 at 11:17 PM, Graham Dumpleton > wrote: > >> >> >> On Monday, January 24, 2011 4:10:15 PM UTC+11, Kimberly wrote: >>> >>> >>> /home

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
at backup copy to get imported wrongly meaning wrong settings used. So, don't question it, just be happy it is working. :-) Graham > On Sun, Jan 23, 2011 at 11:32 PM, Graham Dumpleton > wrote: > >> >> >> On Monday, January 24, 2011 4:25:52 PM UTC+11, Kimberly wr

Re: Django Improper Configuration

2011-01-23 Thread Graham Dumpleton
t; question it, lol. > > On Sun, Jan 23, 2011 at 11:50 PM, Graham Dumpleton > wrote: > >> >> >> On Monday, January 24, 2011 4:39:47 PM UTC+11, Kimberly wrote: >>> >>> Screen: >>> >>> You just installed Django's auth system, which me

Re: Django Deployment Statistics (via djangosites.org)

2011-01-24 Thread Graham Dumpleton
ates to existing listings :) > > On Jan 23, 5:27 pm, Graham Dumpleton > wrote: > > For each category, is there a list to choose from or up to people to > enter > > in right name? Is odd that uWSGI doesn't even get a mention for serving > > method. > > Y

Re: custom Middleware for Django

2011-01-27 Thread Graham Dumpleton
On Thursday, January 27, 2011 9:15:52 AM UTC+11, 3lancer.eu wrote: > > Hi, > > More a Python thing, than Django. > > You should never put custom code in the django package. > > Generally you can put SWFUploadMiddleware inside, say, middleware.py in the > same directory as your settings.py. > >

Re: Switching off URL normalisation

2011-02-11 Thread Graham Dumpleton
On Friday, February 11, 2011 12:08:25 AM UTC+11, Torsten Bronger wrote: > > Hall�chen! > > Torsten Bronger writes: > > > [...] > > > > Currently, a URL like "http://www.example.com/super%2F/edit/"; is > > normalised to "http://www.example.com/super/edit/";. This is bad > > because the entity t

Re: thummer and django

2011-02-16 Thread Graham Dumpleton
Add the 500.html template like it tells you to, then you can see what the real error is. Otherwise enable DEBUG, as is also suggests. http://docs.djangoproject.com/en/dev/topics/http/views/#the-500-server-error-view On Thursday, February 17, 2011 7:31:04 AM UTC+8, mickarea wrote: > > Hi, > > >

Re: django and mod_wsgi

2011-02-28 Thread Graham Dumpleton
On Monday, February 28, 2011 11:23:14 PM UTC+11, atm wrote: > > Try adding, > > > *import os* > > *import sys* > > * * > > *path = 'C:\\Programme\\Apache Software Foundation\\Time2\\Time2\\'* > > *path1 = 'C:\\Programme\\Apache Software Foundation\\Time2\\'* > > * > * > > *if path not in sys.pa

Re: Deploying django. Please specify the steps.

2011-03-11 Thread Graham Dumpleton
Go watch: http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations That presentation explains a lot about permissions and other errors you can. Recommend that before you even try and get Django running that you get a WSGI hello world script running. Use what is shown i

Re: Django app and Amazon AWS (beginner)

2011-03-11 Thread Graham Dumpleton
One can if you want to get a development system closer to production use Apache/mod_wsgi in such a way that automatic code reloading on any change works, just like Django development server. See: http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html http://blog.dscpl.com

Re: better options for hosting multiple django based websites?

2011-03-14 Thread Graham Dumpleton
On Monday, March 14, 2011 4:27:19 PM UTC-4, garagefan wrote: > > I've got a server hosting multiple websites. Currently its not a big > deal to add another virtual host entry to apache2. Now, i'm using a > bad habit and using an http.conf instead of learning about, and > setting up "available

Re: Cannot configure apache to run my django site

2011-03-15 Thread Graham Dumpleton
Set LogLevel directive in Apache configuration to 'info' so that mod_wsgi logs more about what it is doing and whether a request even hits mod_wsgi. I would suggest you request is not even finding the server. Do you see anything for your requests in the Apache access log? Graham On Tuesday, Ma

Re: mod_wsgi - two sites on apache

2011-03-25 Thread Graham Dumpleton
Impossible to know because you haven't supplied the Apache configuration for VirtualHosts to verify you have done it correctly. Also need to know if you have set NameVirtualHosts directive properly. Graham On Saturday, March 26, 2011 5:54:48 AM UTC+11, CrabbyPete wrote: > > I am trying to run t

Re: Setting system path for django

2011-03-25 Thread Graham Dumpleton
On Saturday, March 26, 2011 8:56:53 AM UTC+11, tim042849 wrote: > > I've set up python 2.7 on slax. > I've also set up django 1.1 on slax. Slax does things a little > differently, so it appears. django is installed at > /usr/lib/python2.5/site-packages/django > > python 2.7 does not know where to

<    5   6   7   8   9   10   11   >