Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Django settings for careergrowr project.
- For more information on this file, see
- https://docs.djangoproject.com/en/1.7/topics/settings/
- For the full list of settings and their values, see
- https://docs.djangoproject.com/en/1.7/ref/settings/
- """
- # -*- coding: utf-8 -*-
- from django.utils.translation import ugettext_lazy as _
- import os, sys
- # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
- import os
- BASE_DIR = os.path.dirname(os.path.dirname(__file__))
- PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
- # Import Project Modules
- modules = os.path.join(PROJECT_ROOT, './modules/')
- sys.path.append(modules)
- # Import Application libraries
- lib = os.path.join(PROJECT_ROOT, './lib/')
- sys.path.append(lib)
- KEYWORDS = "online cv, online resume, cv, resume, professional resume, cv template, resume template, how to write a cv, how to write a resume, professional resume template"
- KEYWORDS_SHORT = "online resume, online cv, professional resume, resume template"
- DESCRIPTION = "Build a professional cv / resume with competence test, to improve your hiring chances "
- PAGE_TITLE = "Build a professional online CV / RESUME"
- ADMINS = (
- ('Ales Maticic', 'gospodarprstanov@gmail.com'),
- )
- PROJECT_NAME = 'CarrerGrowr'
- PROJECT_URL = 'http://www.careergrowr.com'
- # Quick-start development settings - unsuitable for production
- # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
- # SECURITY WARNING: keep the secret key used in production secret!
- SECRET_KEY = 'y*%jc+d3hm70^#4(t1z!*z_8d&3ala2cw@napte*@hq8#aqf(_'
- # SECURITY WARNING: don't run with debug turned on in production!
- DEBUG = True
- TEMPLATE_DEBUG = True
- ALLOWED_HOSTS = []
- # Application definition
- INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'django.contrib.flatpages',
- 'django_countries',
- 'ckeditor',
- 'mailer',
- 'taggit',
- 'easy_thumbnails',
- 'wkhtmltopdf',
- 'rest_framework',
- 'quiz',
- 'multichoice',
- 'true_false',
- 'essay',
- 'modules.accounts',
- 'modules.frontend',
- 'modules.news',
- 'modules.company',
- 'modules.jobapplication',
- )
- MIDDLEWARE_CLASSES = (
- 'modules.accounts.SetLastVisitMiddleware.SetLastVisitMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- )
- ROOT_URLCONF = 'careergrowr.urls'
- WSGI_APPLICATION = 'careergrowr.wsgi.application'
- import django.conf.global_settings as DEFAULT_SETTINGS
- TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
- "frontend.context_processors.common_context",
- )
- # Database
- # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'careergrowr', # Or path to database file if using sqlite3.
- 'USER': 'root', # Not used with sqlite3.
- 'PASSWORD': 'admin', # Not used with sqlite3.
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
- 'OPTIONS': {
- 'init_command': 'SET storage_engine=INNODB',
- }
- }
- }
- SITE_ID = 1
- # Internationalization
- # https://docs.djangoproject.com/en/1.7/topics/i18n/
- LANGUAGE_CODE = 'en-us'
- TIME_ZONE = 'Europe/Ljubljana'
- USE_I18N = True
- USE_L10N = True
- USE_TZ = True
- TEMPLATE_DIRS = (
- os.path.join(PROJECT_ROOT, './templates/'),
- )
- AUTH_USER_MODEL = "accounts.EmailUser"
- LOGIN_URL = '/login/'
- LOGOUT_URL = '/'
- APPEND_SLASH = True
- PREPEND_WWW = True
- # email configuration
- #EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
- EMAIL_BACKEND = "mailer.backend.DbBackend"
- EMAIL_USE_TLS = True
- EMAIL_HOST = 'smtp.challengefuture.org'
- #EMAIL_HOST_USER = 'happy@growr.net'
- #DEFAULT_FROM_EMAIL = 'happy@growr.net'
- #EMAIL_HOST_PASSWORD = '0G5Bge75GFtB4kF2'
- EMAIL_HOST_USER = 'challengefuture@growr.net'
- DEFAULT_FROM_EMAIL = 'challengefuture@growr.net'
- EMAIL_HOST_PASSWORD = '5C0pFsDN4kn3j5db'
- EMAIL_PORT = 587
- SERVER_EMAIL = 'webmaster@growr.net'
- THUMBNAIL_ALIASES = {
- '': {
- 'avatar_small_square': {'size': (150, 150), 'crop': True},
- 'avatar_big': {'size': (255, 0), 'crop': False},
- 'thumbnail_small': {'size': (90, 90), 'crop': True},
- 'thumbnail_big': {'size': (100, 0), 'crop': False},
- 'thumbnail_blog': {'size': (100, 100), 'crop': True},
- 'blog_big': {'size': (764, 0), 'crop': False},
- 'blog_small': {'size': (764, 300), 'crop': True},
- },
- }
- MEDIA_ROOT = os.path.join(PROJECT_ROOT, './media/')
- #STATIC_ROOT = os.path.join(PROJECT_ROOT, './static/')
- MEDIA_URL = '/media/'
- STATIC_URL = '/static/'
- # Additional locations of static files
- STATICFILES_DIRS = (
- # Put strings here, like "/home/html/static" or "C:/www/django/static".
- # Always use forward slashes, even on Windows.
- # Don't forget to use absolute paths, not relative paths.
- os.path.join(PROJECT_ROOT, './static/'),
- )
- FILE_CHARSET = 'utf-8'
- CKEDITOR_UPLOAD_PATH = os.path.join(PROJECT_ROOT, './media/ck_uploads/')
- CKEDITOR_CONFIGS = {
- 'awesome_ckeditor': {
- 'toolbar': 'Basic',
- },
- 'default': {
- 'toolbar': [
- ['Bold', 'Italic', 'Underline','-','NumberedList','BulletedList','-','Outdent','Indent','Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo','Link','Unlink','Anchor','TextColor','BGColor', 'Source', ],
- ],
- 'height': 300,
- 'width': '100%',
- 'htmlEncodeOutput': False,
- 'entities': False,
- 'disableNativeSpellChecker': False,
- },
- }
- # uncomment for production
- """REST_FRAMEWORK = {
- 'DEFAULT_PERMISSION_CLASSES': [
- 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
- ]
- }"""
- #WKHTMLTOPDF_CMD_OPTIONS = {
- # 'quiet': True,
- #}
- REST_FRAMEWORK = {
- 'DEFAULT_PERMISSION_CLASSES': [
- 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
- ]
- }
- try:
- from local_settings import *
- except Exception, e:
- import sys
- print >> sys.stderr, e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement