I dont know what you actually mean, but I think just by passing the url that you have created in the urls.py, which points to the function you have defined in ur views.py should work.
hung david <[email protected]> wrote: I've been working with Django like 3 months and I'm trying to get my site online with Apache2. So please forgive if this is a stupid question. I'm gonna make this short. On development server, when I go to, like, http://localhost:8000/my-function , it works ( since I have a my-function view in views.py, and a mount point in urls.py to point to it) # views.py def my-function(request): #do something # urls.py urlpatterns = patterns('', url(r'^my-function/$', views.my-function ), ) Those things work well on development server. I've been working with mod_wsgi and WSGI application script file and I've made them work alright on my production server. It's just as easy to make some directives change (WSGIScriptAlias, Alias, <Directory></Directory>) in apache's httpd.conf file. (for example : http://www.my-domain.com/my-wsgi-app ) But how make it work on a production server by going to http://www.my-domain.com/my-function to make my my-function work like it does on development server? Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.

