Skip to content

Commit 688cb5d

Browse files
committed
Remove database comments from settings.py
1 parent 6a8408c commit 688cb5d

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

issue_tracker/settings.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""
22
Django settings for issue_tracker project.
3-
43
Generated by 'django-admin startproject' using Django 1.11.24.
54
"""
65

@@ -16,10 +15,8 @@
1615
print('DEVELOPMENT=FALSE')
1716

1817

19-
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
2018
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
2119

22-
# SECURITY WARNING: keep the secret key used in production secret!
2320
SECRET_KEY = os.environ.get('SECRET_KEY')
2421

2522
# DEBUG = development
@@ -82,19 +79,6 @@
8279
WSGI_APPLICATION = 'issue_tracker.wsgi.application'
8380

8481
# Database
85-
# if development:
86-
# print('DATABASE: SQLITE3')
87-
# DATABASES = {
88-
# 'default': {
89-
# 'ENGINE': 'django.db.backends.sqlite3',
90-
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
91-
# }
92-
# }
93-
# else:
94-
# print('DATABASE: POSTGRESQL')
95-
# DATABASES = {
96-
# 'default': dj_database_url.parse(os.environ.get('DATABASE_URL'))
97-
# }
9882

9983
if "DATABASE_URL" in os.environ and development == False:
10084
print('Database URL found. Using POSTGRESQL')
@@ -143,7 +127,6 @@
143127

144128

145129
# Static files (CSS, JavaScript, Images)
146-
# https://docs.djangoproject.com/en/1.11/howto/static-files/
147130

148131
AWS_S3_OBJECT_PARAMETERS = {
149132
'Expires': 'Thu, 31 Dec 2099 20:00:00 GMT',
@@ -154,6 +137,7 @@
154137
AWS_S3_REGION_NAME = 'eu-west-1'
155138
AWS_ACCESS_KEY = os.environ.get("AWS_ACCESS_KEY_ID")
156139
AWS_SECRET_ACCESS = os.environ.get("AWS_SECRET_ACCESS_KEY")
140+
157141
AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE_BUCKET_NAME
158142

159143
STATICFILES_LOCATION = 'static'
@@ -162,8 +146,6 @@
162146
STATIC_URL = '/static/'
163147
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'), )
164148

165-
# STATIC_ROOT = (os.path.join(BASE_DIR, 'staticfiles'))
166-
167149
MEDIAFILES_LOCATION = 'media'
168150
DEFAULT_FILE_STORAGE = 'custom_storages.MediaStorage'
169151

0 commit comments

Comments
 (0)