On Mon, Jun 9, 2008 at 10:58 PM, Andre Meyer <[EMAIL PROTECTED]> wrote:
> thanks a lot, Colin, i will contact the WebFaction guys for the apache
> setup. they are always very helpful ;-)
>
> HOWEVER: for testing purposes only, using only runserver and sqlite, how to
> preceed for making this work?
>
> http://localhost:8000/    --> static/index.html (NOT a template)
> http://localhost:8000myapp1    --> myapp1/index.html (a template)
> http://localhost:8000/myapp2    --> myapp2/index.html (a template)
> http://localhost:8000/admin    --> the admin interface
>
> how to get the first url work with runserver? i can only get it to render a
> template, but not server up an html file from the static directory.
>
> thanks again
> André
>

Don't have time to test this out, but did you try serving your root
url with django.views.static.serve ?  That should do what you're
looking for; you might have to type in the full path
(http://localhost:8000/index.html) as I'm not sure if the dev server
will automatically use index files like apache does.  Try using
something like the following in your urls.py:
(r'^$', 'django.views.static.serve', {'document_root': '/path/to/static'}),

HTH,
Colin

--~--~---------~--~----~------------~-------~--~----~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to