======================================
File: urls.py
======================================
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^admin/', include('django.contrib.admin.urls')),
(r'^$', 'thumbslap.views.index'),
(r'^settings/', 'thumbslap.people.views.settings'),
(r'^register/', 'thumbslap.people.views.register'),
(r'^login/', 'thumbslap.views.login'),
(r'^logout/', 'thumbslap.people.views.logout'),
(r'^people/', include('thumbslap.people.urls')),
(r'^friends/', 'thumbslap.people.views.friends'),
)
======================================
File: settings.py
======================================
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'xxxx'
DATABASE_USER = 'xxxx'
DATABASE_PASSWORD = 'xxxx'
DATABASE_HOST = 'xxxx'
DATABASE_PORT = ''
DATABASE_OPTIONS = {'read_default_file': '/etc/my.cnf',}
TIME_ZONE = 'Europe/London'
LANGUAGE_CODE = 'en-gb'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = '/home/mysite/static'
MAX_PHOTO_UPLOAD_SIZE = 500000
MAX_PHOTO_WIDTH = 500000
MAX_PHOTO_WIDTH = 500000
MEDIA_URL = 'http://static.mysite.com/'
ADMIN_MEDIA_PREFIX = '/media/'
SECRET_KEY = 'xxxx'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
)
AUTH_PROFILE_MODULE = "people.userprofile"
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.request',
'mysite.context_processors.static_url',
'mysite.context_processors.user_profile',
'django.core.context_processors.request',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
)
ROOT_URLCONF = 'mysite.urls'
TEMPLATE_DIRS = (
'/home/mysite/templates',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.humanize',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'mysite.people',
)
On Feb 16, 9:53 pm, Bret W <[EMAIL PROTECTED]> wrote:
> Could you post your urls.py and settings files?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---