Salut,
Da, normal, dar trebuie sa ai grija la urmatorul aspect ca pe linux calea este cu "/", iar in Windows ea este cu "\"
Asadar, daca rulezi aplicatia pe linux, in settings.py trebuie sa adaugi urmatoarele linii (la inceput):
Cod:
import os
CALE_APLICATIE = os.path.abspath(os.path.dirname(__file__).decode('utf-8'))
iar daca e pe Windows:
Cod:
import os
CALE_APLICATIE = os.path.abspath(os.path.dirname(__file__).decode('utf-8')).replace('\\', '/')
iar pe urma le poti apela asa:
Cod:
TEMPLATE_DIRS = (
os.path.join(CALE_APLICATIE, 'templates'),
)