Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Add django.contrib.staticfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Jun 9, 2011
1 parent 0b2aa9e commit 249facb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions django_startproject/project_template/myproject/conf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,21 @@
# Project URLS and media settings
#==============================================================================

ROOT_URLCONF = 'myproject.conf.urls'

LOGIN_URL = '/accounts/login/'
LOGOUT_URL = '/accounts/logout/'
LOGIN_REDIRECT_URL = '/'

MEDIA_URL = '/uploads/'
STATIC_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/static/admin/'

STATIC_ROOT = os.path.join(VAR_ROOT, 'static')
#MEDIA_ROOT = os.path.join(VAR_ROOT, 'uploads')

ROOT_URLCONF = 'myproject.conf.urls'

LOGIN_URL = '/accounts/login/'
LOGOUT_URL = '/accounts/logout/'
LOGIN_REDIRECT_URL = '/'
STATICFILES_DIRS = (
os.path.join(PROJECT_DIR, PROJECT_MODULE_NAME, 'static'),
)

#==============================================================================
# Templates
Expand All @@ -67,7 +70,7 @@
)

TEMPLATE_CONTEXT_PROCESSORS += (
'staticfiles.context_processors.static_url',
# 'Custom context processors here',
)

INSTALLED_APPS = (
Expand All @@ -78,5 +81,6 @@
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.humanize',
'django.contrib.staticfiles',
'south',
)

0 comments on commit 249facb

Please sign in to comment.