On Jul 5, 11:33 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> You want to have the 'django_src' directory linked onto your Python
> path, not the 'django' directory -- the Python path should contain the
> *parent* directories of any modules you want Python to be able to
> find.

According to http://www.djangoproject.com/documentation/install/,
these are the two commands for setting up the development version of
django:
svn co http://code.djangoproject.com/svn/django/trunk/ django_src
ln -s `pwd`/django_src/django SITE-PACKAGES-DIR/django

In my case, my `pwd` would be /home/john-scott/workspace, so this is
where django_src is created and then the subdirectory `pwd`/django_src/
django would be symlinked to /usr/lib/python2.4/site-packages/django.
Am I misunderstanding something? I'm getting sleepy, so anything is
possible ;)


> Media files to be served directly need to be in a location under the
> web server's document root, but templates can be in any location
> that's readable by the user the web server is running as, and it's
> generally a good idea to have as few Django-related files in the
> document root as possible.
>
> Remember that there are a number of different template loaders
> available for Django which can look in different places automatically
> -- the "app directories" one, for example, automatically looks inside
> any installed application's directory for templates.

I guess I was confused by the fact that the settings.py file contains
these comments:
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"

...so I assumed it was 'ok' to store all static media files in a
similar directory (i.e. '/home/john-scott/workspace/mysite/media'). At
this point I realize I'm not at all clear on how the settings in
settings.py (i.e. MEDIA_ROOT, MEDIA_URL, ADMIN_MEDIA_PREFIX) are
supposed to interact with the Apache config. back to the docs...


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