I am a django newbie having difficulty getting django operational on my development box running on Apache, with mod_python. My Django test case - the sitepoint.com tutorial: http://www.sitepoint.com/article/build-to-do-list-30-minutes/ - renders as HTML, but [Apache? Mod_python?] can not find the CSS formatting code to render the pages as designed. See media directory below.
I have not used mod_python before, but I did install it (see system description below) and it did pass the basic test proposed by the mod_python installer. See (**) below. So i know that it knows to use mod_python to resolve all addresses ending in ".py". Also, Django pages render as expected with the Django lightweight web server for testing. I am seem to be close to success. I am going to spend time with the documentation today. Any suggestions would be greatly appreciated. Best regards, Douglas a) HTTPD.conf location directive follows: <Location "/gtd"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE gtd.settings PythonDebug On PythonOption django.root "/gtd" PythonPath "sys.path+['C:/apps/myDjango']" </Location> b) System Set-up Operating system: vista dbase: mysql 5.0 server: localhost webservice port: 81 Apache: v2.2 Python: v2.5 mod_python: v3.3.1 c) Directory python: C:\python25 d) Directory django: C:\Python25\Lib\site-packages\django e) Directory Django sitepoint application: C:\apps\myDjango f) Directory django media: C:/Python25/Lib/site-packages/django/ contrib/admin/media ** mod_python installer test: 1) Add to HTTPD.conf: <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/ htdocs/test"> AddHandler mod_python .py PythonHandler mptest PythonDebug On </Directory> 2) Create file with the following code: from mod_python import apache def handler(req): req.content_type = 'text/plain' req.write("Hello World!") return apache.OK 3) request page: http://localhost:81/test/mptest.py 4) "mptest.py" file is located undeer "htdocs" (C:\Program Files \Apache Software Foundation\Apache2.2\htdocs\test), and my django files are NOT. I assume that the django set-up creates a special configuration requirement. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---