i'll give you the settings file too- here you go!  bear in mind i've
been changing things within so likely has changed from last time.
Thanks for all this.

////////////////////
URLS.PY
from django.conf.urls.defaults import *
from django.conf import settings

STATIC_LOC="/django/django_projects/janeraven/static/"

urlpatterns = patterns('myproject.products.views',
    (r'^products/', 'index'),
    (r'^$', 'index'),
    (r'^(?P<product_id>\d+)/$', 'detail'),
        (r'^static/(.*)$', 'django.views.static.serve', {'document_root': 
STATIC_LOC}),
        # Uncomment this for admin:
    (r'^admin/', include('django.contrib.admin.urls')),
)

/////////////////////////////
SETTINGS.PY
# Django settings for myproject project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '[EMAIL PROTECTED]'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'mysql'           # 'postgresql', 'mysql', 'sqlite3'
or 'ado_mssql'.
DATABASE_NAME = 'myproject'             # Or path to database file if
using sqlite3.
DATABASE_USER = 'xxx'             # Not used with sqlite3.
DATABASE_PASSWORD = 'xxx'         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost.
Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not
used with sqlite3.

# Local time zone for this installation. All choices can be found here:
# 
http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
TIME_ZONE = 'Europe/Belfast'

# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = "/Users/whitebook/django/django_projects/myproject/static/"

# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com";
MEDIA_URL = "http://localhost:8000/static/";

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/";, "/media/".
ADMIN_MEDIA_PREFIX = "/media/"

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'xxx'

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

ROOT_URLCONF = 'myproject.urls'

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates".
    # Always use forward slashes, even on Windows.
        "/Users/whitebook/django/django_projects/myproject/templates/"
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
'django.contrib.admin',
        'myproject.products'
)
///////////////////

On 11/09/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
>
> On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote:
> >
> > Removed the path bit, navigating to http://localhostL:8000/static
> > gets me:
> >
> > ViewDoesNotExist at /static/
> > Could not import janeraven.products.views.django.views.static. Error
> > was: No module named django.views.static
>
> Ahh, I think I know your problem. Can you post your entire urls.py?
>
> Jay P.
>
> >
>

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

Reply via email to