WebFaction
Community site: login faq

I'm certain that there's just a small mistake somewhere, but I've looked everywhere and can't find it.

I installed django on the server, and all of it's functions seem to be working well in the terminal-- syncdb runs, etc.

Apache also runs, and can i know the django_module_settings variable has been configured correctly. The problem is that I keep getting 404's.

Here is my django settings file, and below that, my apache configurations:

# Django settings for cozycuisine project.]

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
('Morgan', 'morganhartley@gmail.com')
# ('Your Name', 'your_email@example.com'),
)

MANAGERS = ADMINS

DATABASES = {
'default': {
    'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    'NAME': 'cozycuisine',                      # Or path to database file if using sqlite3.
    'USER': 'django',                      # Not used with sqlite3.
    'PASSWORD': 'm.m91!',                  # Not used with sqlite3.
    'HOST': 'localhost',                      # Set to empty string for localhost. Not used with sqlite3.
    'PORT': '3306',                      # Set to empty string for default. Not used with sqlite3.
}
}

####EMAIL SETTINGS

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'cozycuisine91@gmail.com'
EMAIL_HOST_PASSWORD = 'michaeljfox'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

TIME_ZONE = 'America/Chicago'

LANGUAGE_CODE = 'en-us'

SITE_ID = 1

USE_I18N = True

USE_L10N = True

MEDIA_ROOT = '/home/webapps/django/media/'

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

# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

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

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

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)

ROOT_URLCONF = 'cozycuisine.urls'

TEMPLATE_DIRS = (
"/Users/morgan/documents/programming/django/cozycuisine/templates",
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.humanize',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'cozcus',
'registration',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)

#Tells Django which database stores addition data on users
AUTH_PROFILE_MODULE = 'cozcus.UserProfile'

##number of days that the user has to activate their account.  This is used my the django registration module
ACCOUNT_ACTIVATION_DAYS = 7

# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error.
# See http://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.

LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True, }, } }

APACHE CONF

ServerRoot "/home/cozycuisine/webapps/django/apache2"

LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule wsgi_module modules/mod_wsgi.so

LogFormat "%{X-Forwarded-For}i %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined CustomLog /home/cozycuisine/logs/user/access_django.log combined ErrorLog /home/cozycuisine/logs/user/error_django.log KeepAlive Off Listen 38951 MaxSpareThreads 3 MinSpareThreads 1 ServerLimit 1 SetEnvIf X-Forwarded-SSL on HTTPS=1 ThreadsPerChild 5 WSGIDaemonProcess django processes=5 python- path=/home/cozycuisine/webapps/django:/home/cozycuisine/webapps/django/lib/python2.6 threads=1 WSGIPythonPath /home/cozycuisine/webapps/django:/home/cozycuisine/webapps/django/lib/python2.6 WSGIScriptAlias / /home/cozycuisine/webapps/django/myproject.wsgi

asked 19 Jul '11, 22:42

Morgan Hartley
111
accept rate: 0%


404 errors will be logged in the error log. This is located in /home/cozycuisine/logs/user/error_django.log as the directive states.

permanent link

answered 19 Jul '11, 22:54

johns
5.4k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×225

question asked: 19 Jul '11, 22:42

question was seen: 3,405 times

last updated: 19 Jul '11, 22:54

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM