Re: How to run a static html page as a section of django website?

2009-08-22 Thread Bins

Done. thanks Heather and all of you who helped me achive when I was
looking for..

Thanks a ton..

On Aug 22, 6:44 am, Heather  wrote:
> I think this is what you're looking for then...
>
> in your httpd.conf or httpd-vhosts.conf or wherever you set up django
> in apache:
>
> 
>    SetHandler None
> 
>
> On Aug 21, 3:12 pm, Bins  wrote:
>
>
>
> > mod_python.
>
> > On Aug 21, 6:37 pm, Heather  wrote:
>
> > > So are you using mod_wsgi or mod_python?
>
> > > On Aug 21, 9:24 am, Bins  wrote:
>
> > > > Thanks Matthias, Carlos & Heather for your help.
>
> > > > I tried direct_to_template in url.py in django as suggested by Carlos,
> > > > but didn't work.
>
> > > > What Matthias suggested, serving static files on the production
> > > > server, is little out of my abilities as I ain't no django or python
> > > > expert. My site was made by elder brother who is unable to help me as
> > > > of now.
>
> > > > Heather, my site indeed uses apache. and you are right, I want to have
> > > > a page that doesn't go through django.
>
> > > > What I can do is connect to my server through filezilla and edit the
> > > > code though pspad text editor. If you guys can tell me in simplest of
> > > > words
>
> > > > On Aug 21, 5:46 am, Heather  wrote:
>
> > > > > I think you are saying you want to have a page on your site that
> > > > > doesn't go through Django - is that right?
> > > > > I'm assuming you're using Apache and so you have to be using
> > > > > mod_python or mod_wsgi - is this what you're doing?
> > > > > Your answer would depend on which module you are using.
>
> > > > > If you are using mod_wsgi go 
> > > > > here:http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
>
> > > > > If you are using mod_python go 
> > > > > here:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/
> > > > > and look particularly at serving media files.
>
> > > > > Have fun :)
>
> > > > > On Aug 20, 4:42 pm, Bins  wrote:
>
> > > > > > I've a django powered blog, sayhttp://example.com. I desire to make 
> > > > > > a
> > > > > > sectionhttp://example.com/htmlpage/andrunasimplestatichtml page
> > > > > > at the url.
>
> > > > > > How to I do it?
>
> > > > > > I tried putting my file folder into my /django/website on webserver
> > > > > > but no gain.
>
> > > > > > I admit I know no more than 5-10% of django. Can some hint me what 
> > > > > > to
> > > > > > do?- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to run a static html page as a section of django website?

2009-08-21 Thread Heather

I think this is what you're looking for then...

in your httpd.conf or httpd-vhosts.conf or wherever you set up django
in apache:


   SetHandler None


On Aug 21, 3:12 pm, Bins  wrote:
> mod_python.
>
> On Aug 21, 6:37 pm, Heather  wrote:
>
>
>
> > So are you using mod_wsgi or mod_python?
>
> > On Aug 21, 9:24 am, Bins  wrote:
>
> > > Thanks Matthias, Carlos & Heather for your help.
>
> > > I tried direct_to_template in url.py in django as suggested by Carlos,
> > > but didn't work.
>
> > > What Matthias suggested, serving static files on the production
> > > server, is little out of my abilities as I ain't no django or python
> > > expert. My site was made by elder brother who is unable to help me as
> > > of now.
>
> > > Heather, my site indeed uses apache. and you are right, I want to have
> > > a page that doesn't go through django.
>
> > > What I can do is connect to my server through filezilla and edit the
> > > code though pspad text editor. If you guys can tell me in simplest of
> > > words
>
> > > On Aug 21, 5:46 am, Heather  wrote:
>
> > > > I think you are saying you want to have a page on your site that
> > > > doesn't go through Django - is that right?
> > > > I'm assuming you're using Apache and so you have to be using
> > > > mod_python or mod_wsgi - is this what you're doing?
> > > > Your answer would depend on which module you are using.
>
> > > > If you are using mod_wsgi go 
> > > > here:http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
>
> > > > If you are using mod_python go 
> > > > here:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/
> > > > and look particularly at serving media files.
>
> > > > Have fun :)
>
> > > > On Aug 20, 4:42 pm, Bins  wrote:
>
> > > > > I've a django powered blog, sayhttp://example.com. I desire to make a
> > > > > sectionhttp://example.com/htmlpage/andrunasimplestatic html page
> > > > > at the url.
>
> > > > > How to I do it?
>
> > > > > I tried putting my file folder into my /django/website on webserver
> > > > > but no gain.
>
> > > > > I admit I know no more than 5-10% of django. Can some hint me what to
> > > > > do?- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to run a static html page as a section of django website?

2009-08-21 Thread Bins

mod_python.

On Aug 21, 6:37 pm, Heather  wrote:
> So are you using mod_wsgi or mod_python?
>
> On Aug 21, 9:24 am, Bins  wrote:
>
>
>
> > Thanks Matthias, Carlos & Heather for your help.
>
> > I tried direct_to_template in url.py in django as suggested by Carlos,
> > but didn't work.
>
> > What Matthias suggested, serving static files on the production
> > server, is little out of my abilities as I ain't no django or python
> > expert. My site was made by elder brother who is unable to help me as
> > of now.
>
> > Heather, my site indeed uses apache. and you are right, I want to have
> > a page that doesn't go through django.
>
> > What I can do is connect to my server through filezilla and edit the
> > code though pspad text editor. If you guys can tell me in simplest of
> > words
>
> > On Aug 21, 5:46 am, Heather  wrote:
>
> > > I think you are saying you want to have a page on your site that
> > > doesn't go through Django - is that right?
> > > I'm assuming you're using Apache and so you have to be using
> > > mod_python or mod_wsgi - is this what you're doing?
> > > Your answer would depend on which module you are using.
>
> > > If you are using mod_wsgi go 
> > > here:http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
>
> > > If you are using mod_python go 
> > > here:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/
> > > and look particularly at serving media files.
>
> > > Have fun :)
>
> > > On Aug 20, 4:42 pm, Bins  wrote:
>
> > > > I've a django powered blog, sayhttp://example.com. I desire to make a
> > > > sectionhttp://example.com/htmlpage/andrunasimple static html page
> > > > at the url.
>
> > > > How to I do it?
>
> > > > I tried putting my file folder into my /django/website on webserver
> > > > but no gain.
>
> > > > I admit I know no more than 5-10% of django. Can some hint me what to
> > > > do?- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to run a static html page as a section of django website?

2009-08-21 Thread Bins

Thanks Matthias, Carlos & Heather for your help.

I tried direct_to_template in url.py in django as suggested by Carlos,
but didn't work.

What Matthias suggested, serving static files on the production
server, is little out of my abilities as I ain't no django or python
expert. My site was made by elder brother who is unable to help me as
of now.

Heather, my site indeed uses apache. and you are right, I want to have
a page that doesn't go through django.

What I can do is connect to my server through filezilla and edit the
code though pspad text editor. If you guys can tell me in simplest of
words



On Aug 21, 5:46 am, Heather  wrote:
> I think you are saying you want to have a page on your site that
> doesn't go through Django - is that right?
> I'm assuming you're using Apache and so you have to be using
> mod_python or mod_wsgi - is this what you're doing?
> Your answer would depend on which module you are using.
>
> If you are using mod_wsgi go 
> here:http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
>
> If you are using mod_python go 
> here:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/
> and look particularly at serving media files.
>
> Have fun :)
>
> On Aug 20, 4:42 pm, Bins  wrote:
>
>
>
> > I've a django powered blog, sayhttp://example.com. I desire to make a
> > sectionhttp://example.com/htmlpage/andrun a simple static html page
> > at the url.
>
> > How to I do it?
>
> > I tried putting my file folder into my /django/website on webserver
> > but no gain.
>
> > I admit I know no more than 5-10% of django. Can some hint me what to
> > do?- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to run a static html page as a section of django website?

2009-08-21 Thread Heather

So are you using mod_wsgi or mod_python?

On Aug 21, 9:24 am, Bins  wrote:
> Thanks Matthias, Carlos & Heather for your help.
>
> I tried direct_to_template in url.py in django as suggested by Carlos,
> but didn't work.
>
> What Matthias suggested, serving static files on the production
> server, is little out of my abilities as I ain't no django or python
> expert. My site was made by elder brother who is unable to help me as
> of now.
>
> Heather, my site indeed uses apache. and you are right, I want to have
> a page that doesn't go through django.
>
> What I can do is connect to my server through filezilla and edit the
> code though pspad text editor. If you guys can tell me in simplest of
> words
>
> On Aug 21, 5:46 am, Heather  wrote:
>
>
>
> > I think you are saying you want to have a page on your site that
> > doesn't go through Django - is that right?
> > I'm assuming you're using Apache and so you have to be using
> > mod_python or mod_wsgi - is this what you're doing?
> > Your answer would depend on which module you are using.
>
> > If you are using mod_wsgi go 
> > here:http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
>
> > If you are using mod_python go 
> > here:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/
> > and look particularly at serving media files.
>
> > Have fun :)
>
> > On Aug 20, 4:42 pm, Bins  wrote:
>
> > > I've a django powered blog, sayhttp://example.com. I desire to make a
> > > sectionhttp://example.com/htmlpage/andruna simple static html page
> > > at the url.
>
> > > How to I do it?
>
> > > I tried putting my file folder into my /django/website on webserver
> > > but no gain.
>
> > > I admit I know no more than 5-10% of django. Can some hint me what to
> > > do?- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to run a static html page as a section of django website?

2009-08-20 Thread Heather

I think you are saying you want to have a page on your site that
doesn't go through Django - is that right?
I'm assuming you're using Apache and so you have to be using
mod_python or mod_wsgi - is this what you're doing?
Your answer would depend on which module you are using.

If you are using mod_wsgi go here: 
http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/

If you are using mod_python go here: 
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/
and look particularly at serving media files.

Have fun :)



On Aug 20, 4:42 pm, Bins  wrote:
> I've a django powered blog, sayhttp://example.com. I desire to make a
> sectionhttp://example.com/htmlpage/and run a simple static html page
> at the url.
>
> How to I do it?
>
> I tried putting my file folder into my /django/website on webserver
> but no gain.
>
> I admit I know no more than 5-10% of django. Can some hint me what to
> do?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to run a static html page as a section of django website?

2009-08-20 Thread Carlos A. Carnero Delgado

Hi,

On Thu, Aug 20, 2009 at 4:42 PM, Bins wrote:
>
> I've a django powered blog, say http://example.com. I desire to make a
> section http://example.com/htmlpage/ and run a simple static html page
> at the url.
>
> How to I do it?

*maybe* direct_to_template will help? More @
http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-simple-direct-to-template

HTH,
Carlos.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to run a static html page as a section of django website?

2009-08-20 Thread Matthias Kestenholz

On Thu, Aug 20, 2009 at 10:42 PM, Bins wrote:
>
> I've a django powered blog, say http://example.com. I desire to make a
> section http://example.com/htmlpage/ and run a simple static html page
> at the url.
>
> How to I do it?
>
> I tried putting my file folder into my /django/website on webserver
> but no gain.
>
> I admit I know no more than 5-10% of django. Can some hint me what to
> do?

Follow the instructions here for your (local) development setup:

http://docs.djangoproject.com/en/dev/howto/static-files/


You should not use this method for serving static files on the
production server; take a look at the server software documentation to
find out how to do it there. (The method used on the production server
is the same as if you were not using Django at all.) It's hard to give
tipps when knowing nothing about the server environment you use in
production.


Matthias

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---