> You haven't really provided enough details for me, at least, to know
> what you're doing here.

Thanks very much for taking the time to look at this, the whole thing
has been very frustrating...

Part of the problem may come from the fact I'm hosting this on
WebFaction, and in their control panel the django installation is
rooted at /django. I'm guessing (though few of my guesses have panned
out so far) that that setup sends information which screws up the use
of ^django/ in the urls.

You're right it is probably an HTTP redirect going on, as it happens
in the browser address bar.

Here's my setup so far (it's simple since I haven't been able to get
past this stage):

My project urls:
urlpatterns = patterns('',
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^InnerWorks/', include('InnerWorks.classsched.urls')),

)

'classsched' app urls:
urlpatterns = patterns('InnerWorks.classsched.views',
    (r'^$', 'index'),
    (r'^teachers', 'teachers'),
)

classsched index and teachers views:
def index(request):
    courseTypes = CourseType.objects.all()
    return render_to_response('classsched/index.html',
{'courses':courseTypes,},)

def teachers(request):
    teachers = Teacher.objects.all()
    return render_to_response('classsched/teachers.html', {'teachers':
teachers,})

You can see the page yourself here: 
http://taojian.webfactional.com/django/InnerWorks/

That's the index view and it comes up fine. Right now the only actual
template code on the whole page (besides filling in blocks) is the
"Teacher Biographies" link at the bottom right, under "Community".
That link is output like so:
<a href="/django{% url InnerWorks.classsched.views.teachers
%}">Teacher Biographies</a>, which produces
http://taojian.webfactional.com/django/InnerWorks/teachers/. If you
click on the link, or enter the url directly into the address bar, you
get the disappearing segment trick.

Obviously, this is not the way it should be. I am, indeed, ignorant of
the ins and outs of server setups, and so far 'learning django' has
actually been 'learning the basics of web hosting configuration'. It's
necessary, but I'm anxious to get past that to django itself. Any help
you could provide would be greatly appreciated.

Yrs,
Eric



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