About Archive Tag Cloud Translations RSS

You are writing a comment about Intro to Unintrusive JavaScript with Django, here is a quick summary:

The steps of the novice web developer are fraught with peril. They begin with HTML, then move onto CSS. They learn a web framework or two, and they finally start to wrangle with JavaScript. This tutorial aims to help the developer who has taken their first steps with Django, and wants to begin experimenting with adding JavaScript and Ajax to their webapps.


You are responding to this comment written by corsair moran on April 22nd 2009, 23:40.

Excellent introduction to ajax with django. There is one thing I am confused about: -

Your directory structure looks like

ajax_tut

ajax_tut/media

ajax_tut/notes

ajax_tut/notes/templates

ajax_tut/notes/templates/notes

Your settings.py has

ROOT_PATH = os.path.dirname(__file__)
MEDIA_ROOT = os.path.join(ROOT_PATH, 'media')
TEMPLATE_DIRS = (os.path.join(ROOT_PATH, 'templates'),)

This makes it seem like MEDIA_ROOT and TEMPLATE_DIRS are at the same directory depth level.

Is something wrong here?

Regards.


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")