This repository has been archived by the owner on Sep 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
568 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
|
||
from mezzanine.utils.conf import real_project_name | ||
|
||
settings_module = "%s.settings" % real_project_name("{{ project_name }}") | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
execute_from_command_line(sys.argv) |
Empty file.
52 changes: 52 additions & 0 deletions
52
mezzanine_api/project_template/project_name/local_settings.py.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# This file is exec'd from settings.py, so it has access to and can | ||
# modify all the variables in settings.py. | ||
|
||
# If this file is changed in development, the development server will | ||
# have to be manually restarted because changes will not be noticed | ||
# immediately. | ||
|
||
DEBUG = True | ||
|
||
# Make these unique, and don't share it with anybody. | ||
SECRET_KEY = "{{ secret_key }}" | ||
NEVERCACHE_KEY = "{{ nevercache_key }}" | ||
|
||
DATABASES = { | ||
"default": { | ||
# Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle". | ||
"ENGINE": "django.db.backends.sqlite3", | ||
# DB name or path to database file if using sqlite3. | ||
"NAME": "dev.db", | ||
# Not used with sqlite3. | ||
"USER": "", | ||
# Not used with sqlite3. | ||
"PASSWORD": "", | ||
# Set to empty string for localhost. Not used with sqlite3. | ||
"HOST": "", | ||
# Set to empty string for default. Not used with sqlite3. | ||
"PORT": "", | ||
} | ||
} | ||
|
||
################### | ||
# DEPLOY SETTINGS # | ||
################### | ||
|
||
# Domains for public site | ||
# ALLOWED_HOSTS = [""] | ||
|
||
# These settings are used by the default fabfile.py provided. | ||
# Check fabfile.py for defaults. | ||
|
||
# FABRIC = { | ||
# "DEPLOY_TOOL": "rsync", # Deploy with "git", "hg", or "rsync" | ||
# "SSH_USER": "", # VPS SSH username | ||
# "HOSTS": [""], # The IP address of your VPS | ||
# "DOMAINS": ALLOWED_HOSTS, # Edit domains in ALLOWED_HOSTS | ||
# "REQUIREMENTS_PATH": "requirements.txt", # Project's pip requirements | ||
# "LOCALE": "en_US.UTF-8", # Should end with ".UTF-8" | ||
# "DB_PASS": "", # Live database password | ||
# "ADMIN_PASS": "", # Live admin user password | ||
# "SECRET_KEY": SECRET_KEY, | ||
# "NEVERCACHE_KEY": NEVERCACHE_KEY, | ||
# } |
Oops, something went wrong.