-
Notifications
You must be signed in to change notification settings - Fork 1
/
fabric_settings.py.sample
39 lines (25 loc) · 1.01 KB
/
fabric_settings.py.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""Settings for ``fabfile.py``.
Replace these settings with your Webfaction username and your desired project
name. Usually both will be the same unless you are deploying multiple Django
apps on the same Webfaction account.
"""
import os
ENV_USER = 'username'
ENV_HOSTS = ['{0}.webfactional.com'.format(ENV_USER), ]
PROJECT_NAME = 'projectname'
VENV_NAME = PROJECT_NAME
GIT_REPO_NAME = '{0}.git'.format(PROJECT_NAME)
DJANGO_APP_NAME = '{0}_django'.format(PROJECT_NAME)
MEDIA_APP_NAME = '{0}_media'.format(PROJECT_NAME)
STATIC_APP_NAME = '{0}_static'.format(PROJECT_NAME)
DB_USER = '{0}_{1}'.format(ENV_USER, PROJECT_NAME)
DB_NAME = DB_USER
DB_PASSWORD = 'XXXXXX'
EMAIL_DEFAULT_FROM_EMAIL = '[email protected]'
EMAIL_INBOX = '{0}_{1}'.format(ENV_USER, PROJECT_NAME)
EMAIL_PASSWORD = 'XXXXXX'
ADMIN_NAME = 'Your Name'
ADMIN_EMAIL = '[email protected]'
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
DJANGO_PROJECT_ROOT = os.path.realpath(os.path.join(
PROJECT_ROOT, 'website', 'webapps', 'django', 'myproject'))