Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from settings import *
- DEBUG = True
- # Template debug
- TEMPLATES[0]['OPTIONS']['debug'] = True
- PROJECT_URL = "http://localhost:8000"
- # Run localhost with custom IP
- # PROJECT_URL = "http://192.168.1.157:7000"
- PREPEND_WWW = False
- DATABASES['default']['USER'] = 'root'
- DATABASES['default']['PASSWORD'] = 'Ramborambo999'
- DATABASES['default']['HOST'] = '127.0.0.1'
- INSTALLED_APPS = (
- 'django_extensions',
- # 'template_debug',
- ) + INSTALLED_APPS
- # + ('debug_toolbar',)
- EMAIL_HOST = 'mailtrap.io'
- EMAIL_HOST_USER = '24978d0a449f63cdb'
- EMAIL_HOST_PASSWORD = 'ff6b98d28924e6'
- EMAIL_PORT = '2525'
- if not EMAIL:
- EMAIL = {}
- # Template directories
- MYPAGES_TEMPLATE_DIR = os.path.join(APPLICATION_ROOT, 'mypages_templates')
- DEFAULT_MYPAGE_TEMPLATE = os.path.join(APPLICATION_ROOT, 'templates/default_template.html')
- DEFAULT_BLOGPAGE_TEMPLATE = os.path.join(APPLICATION_ROOT, 'templates/blogpages/default_template.html')
- TEMPLATES[0]['DIRS'] = [
- MYPAGES_TEMPLATE_DIR,
- os.path.join(APPLICATION_ROOT, 'templates'),
- ]
- # MEDIA
- MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
- # URL that handles the media served from MEDIA_ROOT. Make sure to use a
- # trailing slash.
- # Examples: "http://example.com/media/", "http://media.example.com/"
- MEDIA_URL = '%s/static/' % PROJECT_URL
- # Absolute path to the directory static files should be collected to.
- # Don't put anything in this directory yourself; store your static files
- # in apps' "static/" subdirectories and in STATICFILES_DIRS.
- # Example: "/var/www/example.com/static/"
- STATIC_ROOT = os.path.join(BASE_DIR, 'static')
- 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(APPLICATION_ROOT, 'assets'),
- os.path.join(BASE_DIR, 'uploads'),
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement