Hi Mike,
Thank you for the answer. You're right about the directory
structuring, and quoting the BDFL's "Better Explicit than Implicit".
For future reference(and list archive), the solution is this:
Remove (STATIC_ROOT,) from this line:
STATICFILES_DIRS = (STATIC_ROOT,)
The root directory for
On 25/10/2013 6:14am, Thomas Murphy wrote:
Hi all,
with structure
|myproject
|---static
|---picture.jpg
|--myproject
---settings.py
This could be improved in the sense that Django projects usually consist
of one or more apps - like this ...
|myproject
|---static
| (empty unt
Hi all,
with structure
|myproject
|---static
|---picture.jpg
|--myproject
---settings.py
settings.py
import os
MYPROJECT_PATH = os.getcwd()
DEBUG = True
***
STATIC_ROOT = os.path.join(MYPROJECT_PATH, 'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = (STATIC_ROOT,)
in Django 1.
3 matches
Mail list logo