Changing place templates (Django)

0

I was trying to leave the templates folder (main) out of the 'core' folder because in fact I wanted to leave the 'templates' and 'static' folder out of the 'core'.

See my project at GitHub .

So I tried to do the following in settings.py:

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'semantic', 'templates'), ],
        ...
    }

STATIC_URL = '/static/'
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'semantic', 'staticfiles'),)
STATIC_ROOT = os.path.join(BASE_DIR, 'semantic', 'static')

But that way it loads the templates, but does not load the 'static'.

What do I do?

    
asked by anonymous 14.09.2016 / 21:39

1 answer

0

Run the command:

./manage.py collectstatic
    
20.10.2016 / 18:17