Commit 828c92a8 authored by Daniel W Bond's avatar Daniel W Bond

wrote comments, docs, and settings for the secret settings file

parent cf7e630a
......@@ -88,9 +88,9 @@ You'll need to create a mysql database 'bookshare' with username 'bookshare' and
make sure to run `$ pip migrate website && pip migrate bids && pip migrate easy_thumbnails`.
### Keys
### Secret Settings
Django uses a key to
Copy the secret.py.template to secret.py. Follow the comment instructions provided in each file.
### Elasticsearch Configuration
......@@ -114,6 +114,11 @@ You have two options to choose from to locally serve your project.
For server deployment, not for most local work
# Starting up the test server
Now that your environment is configured, you cant test out the Django test server to make
sure everything works locally. Simply run the command ``$ python manage.py runserver``
## To-do
### Beta
......
SECRET_KEY =
# secret settings
# copy to secret.py
DB_NAME =
DB_USER =
DB_PASSWORD =
DB_HOST =
# used for django's cryptographic signing, 50 characters long
# you can generate one here http://www.miniwebtoo.com/django-secret-key-generator/
PIWIK_SITE_ID =
PIWIK_URL =
SECRET_KEY = ''
# These configurations are partially set by default for a local development environment. Remember to use a strong passphrase for deployment. Use the username and password you configured creating the database when following the README. Change the database, name, host, or port as necessary for deployment.
DB_NAME = 'bookshare'
DB_USER = ''
DB_PASSWORD = ''
DB_HOST = 'localhost'
# often left blank
DB_PORT = ''
PIWIK_SITE_ID = ''
PIWIK_URL = ''
# Django settings for bookshare project.
import secret
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
......@@ -13,6 +12,10 @@ ADMINS = (
MANAGERS = ADMINS
import secret
# Make this unique, and don't share it with anybody.
SECRET_KEY = secret.SECRET_KEY
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
......@@ -20,7 +23,7 @@ DATABASES = {
'USER': secret.DB_USER,
'PASSWORD': secret.DB_PASSWORD,
'HOST': secret.DB_HOST,
'PORT': '',
'PORT': secret.DB_PORT,
}
}
......@@ -76,9 +79,6 @@ STATICFILES_FINDERS = (
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
# Make this unique, and don't share it with anybody.
SECRET_KEY = secret.SECRET_KEY
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment