# Path: udon/boot.py
# def get_app_config():
#     """Returns the application configuration, creating it if necessary."""
#     from django.utils.crypto import get_random_string
#     from google.appengine.ext import ndb
# 
#     class Config(ndb.Model):
#         """A simple key-value store for application configuration settings."""
#         secret_key = ndb.StringProperty()
# 
#     # Create a random SECRET_KEY hash
#     chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
#     secret_key = get_random_string(50, chars)
# 
#     key = ndb.Key(Config, 'config')
#     entity = key.get()
#     if not entity:
#         entity = Config(key=key)
#         entity.secret_key = str(secret_key)
#         entity.put()
#     return entity


from djangae.settings_base import *  # set up some AppEngine specific stuff
from djangae.utils import find_project_root
from django.core.urlresolvers import reverse_lazy
from google.appengine.api.app_identity.app_identity import get_default_gcs_bucket_name
from ..boot import get_app_config
import os
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
"""
"""
Django settings for udon project.

For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
PROJECT_DIR = find_project_root()

SITE_URL = "https://virtualart.chromeexperiments.com"
SHORT_URL = "g.co/VirtualArtSessions"

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!

# Path: udon/boot.py
# def get_app_config():
#     """Returns the application configuration, creating it if necessary."""
#     from django.utils.crypto import get_random_string
#     from google.appengine.ext import ndb
# 
#     class Config(ndb.Model):
#         """A simple key-value store for application configuration settings."""
#         secret_key = ndb.StringProperty()
# 
#     # Create a random SECRET_KEY hash
#     chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
#     secret_key = get_random_string(50, chars)
# 
#     key = ndb.Key(Config, 'config')
#     entity = key.get()
#     if not entity:
#         entity = Config(key=key)
#         entity.secret_key = str(secret_key)
#         entity.put()
#     return entity


# Path: udon/conf/base.py
from djangae.settings_base import *  # set up some AppEngine specific stuff
from djangae.utils import find_project_root
from django.core.urlresolvers import reverse_lazy
from google.appengine.api.app_identity.app_identity import get_default_gcs_bucket_name
from ..boot import get_app_config
import os

 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
"""
"""
Django settings for udon project.

For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
PROJECT_DIR = find_project_root()

SITE_URL = "https://virtualart.chromeexperiments.com"
SHORT_URL = "g.co/VirtualArtSessions"

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!

SECRET_KEY = get_app_config().secret_key