Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
Add project_template
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Apr 15, 2016
1 parent e5b0cd3 commit 3536c6d
Show file tree
Hide file tree
Showing 8 changed files with 568 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include README.rst
include LICENSE
recursive-include mezzanine_api/project_template *.template *.html
recursive-include mezzanine_api/static *.js *.css *.png
recursive-include mezzanine_api/templates *.html
recursive-exclude * __pycache__
Expand Down
Empty file.
14 changes: 14 additions & 0 deletions mezzanine_api/project_template/manage.py
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.
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,
# }
Loading

0 comments on commit 3536c6d

Please sign in to comment.