myproject_django$ gunicorn_django
serves my site except for the static files. Any Idea why? I am running this from a virtual environment using django 1.3.
Project tree
myproject_django
├── core
│ ├── admin.py
│ ├── __init__.py
│ ├── models.py
│ ├── tests.py
│ ├── views.py
├── __init__.py
├── manage.py
├── settings.py
├── static
│ ├── css
│ │ ├── base.css
│ │ ├── layout.css
│ │ └── skeleton.css
│ └── media
│ ├── pek.ico
│ ├── pek.png
│ └── pek_symbol.png
├── templates
│ └── core
│ ├── 404.html
│ ├── 500.html
│ ├── home.html
│ └── install.html
├── urls.py
Potentially relevent parts of settings.py
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
MEDIA_ROOT = ''
MEDIA_URL = '/static/media'
STATIC_ROOT = os.path.join(PROJECT_PATH,'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(PROJECT_PATH, 'static'),
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'core',
'gunicorn',
'django.contrib.admin',
)