Skip to content

Commit 4387d6f

Browse files
committed
Merge pull request #2 from mjhea0/patch-1
Update settings.py
2 parents 4100eb3 + dfb81f6 commit 4387d6f

File tree

1 file changed

+2
-14
lines changed
  • django_ecommerce/django_ecommerce_project/django_ecommerce_project

1 file changed

+2
-14
lines changed

django_ecommerce/django_ecommerce_project/django_ecommerce_project/settings.py

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import os
22

3-
PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))#os.path.realpath(os.path.dirname(__file__))
3+
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
44
SITE_ROOT = os.path.dirname(PROJECT_ROOT)
5-
# TEMPLATE_DIRS = (os.path.join(SITE_ROOT, 'templates'),)
6-
# print TEMPLATE_DIRS
7-
# print "hola"
8-
# print "############################"
9-
# Django settings for django_ecommerce_project project.
5+
TEMPLATE_DIRS = (os.path.join(SITE_ROOT, 'templates'),)
106

117

128
DEBUG = True
@@ -116,14 +112,6 @@
116112
# Python dotted path to the WSGI application used by Django's runserver.
117113
WSGI_APPLICATION = 'django_ecommerce_project.wsgi.application'
118114

119-
TEMPLATE_DIRS = (
120-
os.path.join(SITE_ROOT, 'templates'),
121-
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
122-
# Always use forward slashes, even on Windows.
123-
# Don't forget to use absolute paths, not relative paths.
124-
125-
)
126-
127115
INSTALLED_APPS = (
128116
'django.contrib.auth',
129117
'django.contrib.contenttypes',

0 commit comments

Comments
 (0)