Re: json serialization

2006-08-01 Thread Jyrki Pulliainen
2006/7/31, Gábor Farkas <[EMAIL PROTECTED]>: > > Jyrki Pulliainen wrote: > > 2006/7/31, Gábor Farkas <[EMAIL PROTECTED]>: > >> > >> datetime.datetime inherits from datetime. > >> > > > > Definetly not > > > > > sorry, of course i meant > > "datetime.datetime inherits from datetime.time" My bad to

Re: json serialization

2006-08-01 Thread Jyrki Pulliainen
2006/7/31, Jyrki Pulliainen <[EMAIL PROTECTED]>: > I filed a ticket for this, see http://code.djangoproject.com/ticket/2460 Json serialization is now fixed in SVN Trunk version -- Jyrki // [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because

Re: Scandinavian characters in .po files and timezones

2006-08-01 Thread Maciej Bliziński
On Mon, 2006-07-31 at 20:39 -0500, Jorge Gajon wrote: > Hi, > > Take notice that there is also a 'fileencoding' setting in vim. When > you create a new file in vim, 'fileencoding' will not be set and so it > will take the current value from 'encoding'. Also the variable 'fileencodings' is import

Design question (models? apps? field_type?)

2006-08-01 Thread Robert
Hello, Using version 0.95. I am designing a new truck transport database data service. There will be 2 kinds of offers: import & export Let's name seaport 'X'. Trucks: 1. Deliver package from Y to X (on the road from X to Y it's empty) 2. Deliver package from X to Y (on the road from Y to X it

Rev 3507 breaks admin site

2006-08-01 Thread Michael van der Westhuizen
Hi All, After updating SVN this morning I get the error below. Reverting to revision 3506 resolves the problem. The error occurs with the default site (no apps installed) - just start a project, enable admin, syncdb, runserver, log in to admin, go to users and click on a user to view the details

Question about tags

2006-08-01 Thread PythonistL
I have this very simple tag # from django.core.template import Library, Node from django.core import template register = Library() class FirstTestNode(Node): def __init__(self, num): self.num = num def render(self, context): context['print_results'] = self.num

Re: Question about tags

2006-08-01 Thread Nebojša Đorđević
On 1 Aug 2006, at 14:35, PythonistL wrote: def render(self, context): context['print_results'] = self.num return "" resolve_variable(self.wrapper, context) use: from django.template import resolve_variable def render(self, context): context['print_results'] = resolve_v

Re: Having trouble with views

2006-08-01 Thread Tomas Jacobsen
I have been on vaction for a week, so I haven't had time to do more coding before now. I think I understand what you have written in the view, but I can't understand what to write in urls.py. My views.py in my portfolio app folder looks like this: from django.views.generic.list_detail import obj

Protecting files

2006-08-01 Thread Todd O'Bryan
Part of my webapp will include a place for users to upload files that they can save on the server. I teach high school, and this is mostly designed as a way for students to quickly upload files so that they can transfer them from home to school and vice versa. What I don't understand is how

Re: Rev 3507 breaks admin site

2006-08-01 Thread Nebojša Đorđević
On 1 Aug 2006, at 13:23, Michael van der Westhuizen wrote: After updating SVN this morning I get the error below. Reverting to revision 3506 resolves the problem. The error occurs with the default site (no apps installed) - just start a project, enable admin, syncdb, runserver, log in to admin,

Re: Protecting files

2006-08-01 Thread limodou
On 8/1/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > Part of my webapp will include a place for users to upload files that > they can save on the server. I teach high school, and this is mostly > designed as a way for students to quickly upload files so that they > can transfer them from home to

using legacy db system

2006-08-01 Thread Gennan Chen
Hi! All,I am new to Django and will like to use its good admin interface to build a new web app. However, we used a couple of databases on a single mysql server. So, is there any chance I can reuse them? It seems you can only have use 1 db only in the settings.  Any pro and con on designing a syste

Re: Question about tags

2006-08-01 Thread PythonistL
Thanks a lot.It works! L. --~--~-~--~~~---~--~~ 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 [EMAIL

Re: Having trouble with views

2006-08-01 Thread Martin Glueck
Hi, >[...]#Views > def category_view(request, cat_slug): > [...] > (r'^portfolio/(?P[-\w]+)/$', > 'myproject.portfolio.views.category_view'), > > When I try "mydomain.com/portfolio/category_slug" (My category_slug is > "3d") I get the error: > > TypeError at /portfolio/3d/ > category_view(

Re: Protecting files

2006-08-01 Thread Nebojša Đorđević
On 1 Aug 2006, at 15:32, Todd O'Bryan wrote: What I don't understand is how, if the files are saved in the local filesystem and served by Apache, how do I control access to the files so that only users who should be able to access them can? In other words, Bobby uploads a file which I save to t

Re: Having trouble with views

2006-08-01 Thread Tomas Jacobsen
Yes, that seems to get me one step further! But now I get a new error: NameError at /portfolio/3d/ global name 'object_detail' is not defined Exception Location: /myproject/portfolio/views.py in category_view, line 10 --~--~-~--~~~---~--~~ You received this

Re: using legacy db system

2006-08-01 Thread [EMAIL PROTECTED]
This might be of some help: http://code.djangoproject.com/wiki/MultipleDatabaseSupport It's a SoC 2006 project, so the branch has yet to be merged into trunk but he reports it as being feature-complete. It just might not be 100% stable. Chris --~--~-~--~~~---~--~---

Re: Having trouble with views

2006-08-01 Thread Martin Glueck
Hi, > NameError at /portfolio/3d/ > global name 'object_detail' is not defined > > Exception Location: /myproject/portfolio/views.py in category_view, > line 10 That normally mean that you have not imported the name. Do you have something like this in you views.py from django.views.generic

Re: Rev 3507 breaks admin site

2006-08-01 Thread Adrian Holovaty
On 8/1/06, Neboj¹a Ðorðeviæ <[EMAIL PROTECTED]> wrote: > I submitted quick fix to http://code.djangoproject.com/ticket/2463 > which keeps 3507 changes. Fixed in [3508] -- thanks for pointing this out! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~--

Myghty Templates in Django - ver. 1

2006-08-01 Thread [EMAIL PROTECTED]
1. Install myghty (http://www.myghty.org) 2. edit your views. 2a. The easy way to use mygthy templates is to render them and send the result to a "Blank" django template which will show the results a simple view: ## from django.shortcuts import render_to_response im

Re: Protecting files

2006-08-01 Thread Adrian Holovaty
On 8/1/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > What I don't understand is how, if the files are saved in the local > filesystem and served by Apache, how do I control access to the files > so that only users who should be able to access them can? In other > words, Bobby uploads a file which

Re: Question about tags

2006-08-01 Thread [EMAIL PROTECTED]
Amazing! I encountered the same problem few hours ago, and I was about to ask exactly the same question :-) I can attest it works too! I checked the online documentation but could not find any mention about this magic 'resolve_name' method. Cet été, pensez aux cartes postales de laposte.net !

Re: using legacy db system

2006-08-01 Thread Jacob Kaplan-Moss
On Aug 1, 2006, at 9:16 AM, [EMAIL PROTECTED] wrote: > This might be of some help: > http://code.djangoproject.com/wiki/MultipleDatabaseSupport > > It's a SoC 2006 project, so the branch has yet to be merged into trunk > but he reports it as being feature-complete. It just might not be 100% > stab

Creating multiple objects at once

2006-08-01 Thread baasbartels
Hi all, I´m currently writing an app to track expenses (using Django). For this I´ve a simple datamodel which basically consists of two model classes: Register and Entry. The idea is that you can book expenses in various Registers, one Entry representing a particular Expense. Now my issue is the

Re: Rev 3507 breaks admin site

2006-08-01 Thread Michael van der Westhuizen
On 8/1/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > On 8/1/06, Neboj¹a Ðorðeviæ <[EMAIL PROTECTED]> wrote: > > I submitted quick fix to http://code.djangoproject.com/ticket/2463 > > which keeps 3507 changes. > > Fixed in [3508] -- thanks for pointing this out! Confirmed as fixed. --~--~-

problem with filtering data

2006-08-01 Thread Jakub 'teodor' Krajniak
Hi there, I've looked for some clue on this group but nothing similar for my case. I've got the following models: class Service: name = ... class TimeTable: ... class UserService: user = ForeignKey(User) service = ForeignKey(Service) timetable = ForeignKey(TimeTable) I've tried to

customizing admin templates

2006-08-01 Thread Tamara D. Snyder
I'm sorry to keep bothering the list about this, but I just can't get custom admin templates to work properly. Here's what I have right now: 2 apps, one called Blog and one called Events2 I would like it if the branding at the top of the admin page changed depending on the app that I am in.

Re: using legacy db system

2006-08-01 Thread Gennan Chen
I am with you on that.  Gen On Aug 1, 2006, at 8:23 AM, Jacob Kaplan-Moss wrote:On Aug 1, 2006, at 9:16 AM, [EMAIL PROTECTED] wrote: This might be of some help:http://code.djangoproject.com/wiki/MultipleDatabaseSupportIt's a SoC 2006 project, so the branch has yet to be merged into trunkbut he repo

Re: customizing admin templates

2006-08-01 Thread Joe
I'm not sure Django supports this 'out of the box'. You could try adding a template tag to the base_site.html folder. I'm pretty sure Django passes in the model name into the context of the template. You should be able to find this in the Django source (I'm not sure where off the top of my head

Loop in template

2006-08-01 Thread spako
i was wondering if there is a way to use the for loop to loop through a sequence of numbers? i.e. in python you would: for i in range(10): how would you do this in the template? i'd like to use this for some paging i'm building. i want to keep all the html in the templates, as there i

preparing rss feed

2006-08-01 Thread a
preparing rss feeds i hav a table in postgres and it has title and body columns, i want to create a rss file on the fly when this table is updated wat is the best way to get it done thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subs

VMWare image for running/developing Django

2006-08-01 Thread Joseph Heck
I was fiddling with a VMWare image for running and developing Django with the intention of posted the results up for anyone to use, and I got myself tied all in knots. So let me ask the community: what would be the most useful: 1) a light VMWare image (couple hundred Mb) that was completely command

Re: preparing rss feed

2006-08-01 Thread James Bennett
On 8/1/06, a <[EMAIL PROTECTED]> wrote: > i hav a table in postgres and it has title and body columns, i want to > create a rss file on the fly when this table is updated wat is the best > way to get it done > thanks a lot Have you read the documentation for Django's syndication system? http://w

Re: CGI Setup

2006-08-01 Thread Paul Sargent
Sorry for resurrecting an old thread, but this is very close to what I was wanting, and it wasn't *that* long ago ;-) Adrian Holovaty wrote: > I've never used Django with plain CGI, as I assume the performance > would be bad, but if you're interested in experimenting, you should > seek out some

Re: VMWare image for running/developing Django

2006-08-01 Thread Jacob Kaplan-Moss
On Aug 1, 2006, at 11:40 AM, Joseph Heck wrote: > I was fiddling with a VMWare image for running and developing > Django with > the intention of posted the results up for anyone to use, and I got > myself > tied all in knots. So let me ask the community: what would be the most > useful: > > 1)

Re: preparing rss feed

2006-08-01 Thread Tyson Tate
On Aug 1, 2006, at 9:36 AM, a wrote: > preparing rss feeds > > i hav a table in postgres and it has title and body columns, i want to > create a rss file on the fly when this table is updated wat is the > best > way to get it done > thanks a lot If that table is part of your Django project, ju

Blocking a site with Middleware

2006-08-01 Thread Joseph Heck
I had posted some questions about blocking a site on TextDrive on their forums, and ultimately ended up doing it with a middleware component that I wrote myself. There was a nice example already in the wiki, but it didn't do quite what I needed - I wanted to block the site to everyone (registered u

Re: VMWare image for running/developing Django

2006-08-01 Thread Jay Parlar
I agree with Jacob, full image (with MySQL and PostgreSQL as well). This is actually the setup I used at a contract gig. I had a VMWare image setup and configured for doing both development and deployment. So after I leave, if anyone needs to make modifications, then can just run the VM image on

Some new sites and a lots of thanks

2006-08-01 Thread kwe
We've just launched our first 'production' Django sites to run some Faculty 'portals' (http://bus.glam.ac.uk/, http://cci.glam.ac.uk/ etc). When we get some time I promise to write something up about the process, but for now a word of thanks.. Firstly to all the authors of Django, then the communi

Re: customizing admin templates

2006-08-01 Thread Wilson Miner
Try putting this in your main base_site.html template: {{ app.name|default:"Django" }} Administration I'm not sure if the app info is available in the changelist/change form contexts, but it's worth a shot. On 8/1/06, Tamara D. Snyder <[EMAIL PROTECTED]> wrote: > > I'm sorry to keep bothering t

Using a session variable in templates

2006-08-01 Thread Phil Powell
Hi all, I'm trying to implement something I'd imagine is quite simple, but have come a bit unstuck when it comes to finding a graceful way to so it. What I want to do is sotre a random number (easy enough) in the users session, then retrieve it in my base template (this is for the purpose of sel

Re: problem with filtering data

2006-08-01 Thread Malcolm Tredinnick
On Tue, 2006-08-01 at 15:27 +, Jakub 'teodor' Krajniak wrote: > Hi there, > > I've looked for some clue on this group but nothing similar for my > case. > I've got the following models: > > class Service: > name = > ... > class TimeTable: > ... > > class UserService: > user = Foreig

Re: Loop in template

2006-08-01 Thread Malcolm Tredinnick
On Tue, 2006-08-01 at 16:22 +, spako wrote: > i was wondering if there is a way to use the for loop to loop through a > sequence of numbers? > > i.e. in python you would: > > for i in range(10): > > > how would you do this in the template? You can't. If you want a list of numbers

Re: Using a session variable in templates

2006-08-01 Thread [EMAIL PROTECTED]
Context processors might work: http://www.djangoproject.com/documentation/templates_python/ Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

runserver tracebacks on each HTTP-call

2006-08-01 Thread dummy
Hi all, I have a problem with HTTP, django and python 2.3.5 on linux suse. I got multiple tracebacks like http://paste.e-scribe.com/970/ after a HTTP call from Internet Explorer 6 using HTTP-Protocol 1.0 or 1.1 The web-app is working fine, but the tracebacks are strange. Has anybody seen such T

Re: runserver tracebacks on each HTTP-call

2006-08-01 Thread Malcolm Tredinnick
On Tue, 2006-08-01 at 23:20 +0200, [EMAIL PROTECTED] wrote: > Hi all, > > I have a problem with HTTP, django and python 2.3.5 on linux suse. > I got multiple tracebacks like http://paste.e-scribe.com/970/ > after a HTTP call from Internet Explorer 6 using HTTP-Protocol 1.0 or 1.1 > > The web-app

Are templates aware of their location?

2006-08-01 Thread [EMAIL PROTECTED]
In other words, if my url is www.mydomain.com/foo is the template aware that it's current directory is foo? I'm trying to figure out how I can filter items based on location. I have a field in the model that says foo or bar, and I want the foo items on the foo page, and the bar items on the bar p

Re: Are templates aware of their location?

2006-08-01 Thread Malcolm Tredinnick
On Tue, 2006-08-01 at 15:00 -0700, [EMAIL PROTECTED] wrote: > In other words, if my url is www.mydomain.com/foo is the template aware > that it's current directory is foo? One minor point: It's a bit dangerous to talk about the trailing portions of a URL as directories. It is only accidental that

Login not working: Site matching query does not exist.

2006-08-01 Thread cyberco
Login a user out works fine, but I can't get logging in working (0.95). I keep getting 'Site matching query does not exist'. What I got: urls.py: (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'registration/login.html'}), (r'^accounts/logout/$', 'django.c

Django source editing offtopic

2006-08-01 Thread toth anna
Sorry for boring the list with a slightly offtopic question. I saw that many of you are using a Mac. (i used it perhaps twice in my life) Last week i needed to edit several python files on a MiniMac (without net, b), and i used "built-in" editor of macosx. Not was so comfortable. What are you

Re: problem with filtering data

2006-08-01 Thread Jakub 'teodor' Krajniak
Thanks for answer Finally I get correct result, using objects.extra method: Service.objects.extra(where=['sms_service.id not in (select sms_userservices.service_id from sms_userservices where sms_userservices.user_id = 9)'],tables=['sms_userservices']).distinct() Maybe not so clean and tasty b

What is the proper way to apply a patch to the release version

2006-08-01 Thread Porter, Doug
I'm new to Django and want to apply the patches in Ticket #1990 for the Oracle backend to the 0.95 release version I have installed on Windows. Any pointers as to how to handle this. I'm new to SVN and am not sure how to apply the patch, compile the changes, and have them deployed to my exist

Re: Django source editing offtopic

2006-08-01 Thread Tyson Tate
On Aug 1, 2006, at 3:44 PM, toth anna wrote: > Sorry for boring the list with a slightly offtopic question. > I saw that many of you are using a Mac. (i used it perhaps > twice in my life) > Last week i needed to edit several python files on a MiniMac > (without net, b), and i used "built-in"

Re: Are templates aware of their location?

2006-08-01 Thread SmileyChris
Hi there, No, a template is not normally aware of the url used to get that template. This sort of logic is more what you'd do in a view rather than a template. You would have something like the following in your urls.py: r'^(?P\w+)/$, 'projectname.appname.views.filter' And your view would look

Re: Django source editing offtopic

2006-08-01 Thread Joseph Heck
On the Mac, I used TextWrangler (http://www.barebones.com/products/textwrangler/ also free, from Bare Bones Software) and liked it significantly better than jEdit - YMMV. Nice editor thought. -joeOn 8/1/06, Tyson Tate <[EMAIL PROTECTED]> wrote: On Aug 1, 2006, at 3:44 PM, toth anna wrote:> Sorry fo

Re: Django source editing offtopic

2006-08-01 Thread Ian Holsman
vim.mainly because it works on nearly any platform I need to go into.and my fingers are trained after years of using it.On 02/08/2006, at 9:29 AM, Joseph Heck wrote:On the Mac, I used TextWrangler (http://www.barebones.com/products/textwrangler/ also free, from Bare Bones Software) and liked it sig

Re: Django source editing offtopic

2006-08-01 Thread Tamara D. Snyder
Or use Text Wrangler, it is free: http://www.bbedit.com/products/ textwrangler/index.shtml. :-) Tamara On Aug 1, 2006, at 5:58 PM, Tyson Tate wrote: > > On Aug 1, 2006, at 3:44 PM, toth anna wrote: > >> Sorry for boring the list with a slightly offtopic question. >> I saw that many of you are

Re: VMWare image for running/developing Django

2006-08-01 Thread Joseph Heck
Well, the baseline image that I've just knocked together (desktop, full servers, etc) is running in the 3Gb file range (uncompressed...)I'm building it with VMWare Server - I don't see an option for shrinking the VM image. I was planning on Zipping it to see what compression I could get - but it's

Re: Django source editing offtopic

2006-08-01 Thread Glenn Tenney
On Tue, Aug 01, 2006 at 04:29:02PM -0700, Joseph Heck wrote: > On the Mac, I used TextWrangler Yep, very nice... But I mostly just use emacs (which comes with Mac OS X, as well as "vi" if you're so inclined). -- Glenn --~--~-~--~~~---~--~~ You received this mes

Re: Design question (models? apps? field_type?)

2006-08-01 Thread Julio Nobrega
Ok. Take it easy with me because I think I understand your problem, but the app goals seem amazing so I am going to try and help. First of all, I think you'll be asked to show both import and export to the same users (which are carriers and forwarders now, right?). So there's no sense in spli

Re: Distribute Django program to run on a local computer

2006-08-01 Thread Julio Nobrega
I was going to recommend a Live CD too, but let me get back a little to the first thread email and perhaps say something really stupid: On 7/31/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > As part of the grant review > process, the reviewers must remain anonymous and therefore, we cannot > simpl

Re: Django source editing offtopic

2006-08-01 Thread James Bennett
On 8/1/06, toth anna <[EMAIL PROTECTED]> wrote: > What are you using for editing sources? GNU Emacs. It's insanely powerful for text editing, has modes for all the languages I work in, and has support and/or extensions available for doing SVN commits, editing over WebDAV, editing over FTP/SFTP..

Re: runserver tracebacks on each HTTP-call

2006-08-01 Thread oggie rob
> Has anybody seen such Tracebacks ? Hi Dirk, I think I have seen this, but only using IE on the development server with admin-like pages. I think it might be issues with the media going through the dev server (i.e. probably not an issue with mod_python). If you were able to hack the way those fi

Re: Myghty Templates in Django - ver. 1

2006-08-01 Thread Russell Keith-Magee
On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 1. Install myghty (http://www.myghty.org) Hi,Thanks for the contribution. I would suggest adding this as a page to the Wiki so that it isn't forgotten. Create a page somewhere in the vicinity of: http://code.djangoproject.com/wiki/CookBookMygh

Re: VMWare image for running/developing Django

2006-08-01 Thread Jay Parlar
On 8/1/06, Joseph Heck <[EMAIL PROTECTED]> wrote: > Well, the baseline image that I've just knocked together (desktop, full > servers, etc) is running in the 3Gb file range (uncompressed...) > > I'm building it with VMWare Server - I don't see an option for shrinking the > VM image. I was planning

Re: Django source editing offtopic

2006-08-01 Thread Ian Clelland
On 8/1/06, toth anna <[EMAIL PROTECTED]> wrote: > What are you using for editing sources? If you're a native vim speaker, I have a version compiled for OSX, using the native Aqua interface, off of my homepage here: http://ian.casa.cavewallarts.com/vim.html Ian Clelland <[EMAIL PROTECTED]> --~--

Re: Myghty Templates in Django - ver. 1

2006-08-01 Thread Simon Willison
> 2a. The easy way to use mygthy templates is to render them and send the > result to a "Blank" django template which will show the results > a simple view: > [...] > def myview(request): > file = AFile() > #execute a template > interpreter.execute('mytemplate.myt', out_buf

Re: Django source editing offtopic

2006-08-01 Thread Don Arbow
On Aug 1, 2006, at 3:44 PM, toth anna wrote: > What are you using for editing sources? BBEdit, for everything (well, almost, vim for the other 5%). Don --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Weird slowdown with dev server behind nat

2006-08-01 Thread John Morton
On Monday 31 July 2006 22:04, Akatemik wrote: > I'm running the basic django server and everything works fine from lan. > But from outside every request has a three second overhead, even if > it's just a 304. This means that a small html-page with three JS-files > and a stylesheet takes 15 sec

customize admin

2006-08-01 Thread Gennan Chen
Hi!django's admin is pretty neat and I will like to customize it. I know there is a documentation to change its appearance. But how about I want to add a bit more function or buttons on the form. For example, I need to run some server side scripts/program after user click saving changes. How do I d

Re: customize admin

2006-08-01 Thread Ian Holsman
Hi Gen-Nan.you can override the template that the admin app uses to generate the listing page if that helps.so for example in my performance monitoring app, I created a template admin/perf/log/change_list.htmland put that file in my template directory.now when i click on the 'perf/log' model in the

Re: Distribute Django program to run on a local computer

2006-08-01 Thread Rob Hudson
Julio Nobrega wrote: > Can't you use SSL, and tell the reviewers to use an anonymizer proxy? Not really. We have to assume no internet connection at all and ship a self-contained program. It makes things difficult and adds extra work. With a PHP solution we were able to use Microweb (indigos

Re: Project when using multiple sites

2006-08-01 Thread Ian Holsman
Hi Jay.I have a similar issue.I have stuff in http://zyons.com, which is open source, and another set of apps which build on top of it which run on multiple hosts. (http://gyspsyjobs.com & http://car-chatter.com for example)the way I set it up is:project/ common/ app1/ templates app2/ templat

apache与django

2006-08-01 Thread 冷星独舞
我在httpd.conf下,add this: Listen 127.0.0.1: SetHandler python-program PythonPath "['C:\Python24\Lib\site-packages\Django-0.95-py2.4.egg\django\bin\work'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE n.settings_apache

Re: apache与django

2006-08-01 Thread limodou
On 8/2/06, 冷星独舞 <[EMAIL PROTECTED]> wrote: > > 我在httpd.conf下,add this: > Listen 127.0.0.1: > > > SetHandler python-program > PythonPath > "['C:\Python24\Lib\site-packages\Django-0.95-py2.4.egg\django\bin\work'] > + sys.path" > PythonHandler django.core.handlers.mod