Project name
This commit is contained in:
parent
2200695306
commit
90d3dc568d
29 changed files with 33 additions and 33 deletions
2
Procfile
2
Procfile
|
@ -1 +1 @@
|
|||
web: uwsgi --http :$PORT --module publichealthschweiz.wsgi --master --offload-threads 1
|
||||
web: uwsgi --http :$PORT --module publichealth.wsgi --master --offload-threads 1
|
||||
|
|
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -69,7 +69,7 @@ Vagrant.configure(2) do |config|
|
|||
# sudo apt-get update
|
||||
# sudo apt-get install -y apache2
|
||||
# SHELL
|
||||
config.vm.provision :shell, :path => "vagrant/provision.sh", :args => "publichealthschweiz"
|
||||
config.vm.provision :shell, :path => "vagrant/provision.sh", :args => "publichealth"
|
||||
|
||||
# Enable agent forwarding over SSH connections.
|
||||
config.ssh.forward_agent = true
|
||||
|
|
|
@ -1 +1 @@
|
|||
python manage.py compress --settings publichealthschweiz.settings.production
|
||||
python manage.py compress --settings publichealth.settings.production
|
||||
|
|
10
docs/conf.py
10
docs/conf.py
|
@ -164,7 +164,7 @@ html_static_path = ['_static']
|
|||
#html_file_suffix = None
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'publichealthschweizdoc'
|
||||
htmlhelp_basename = 'publichealthdoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output --------------------------------------------------
|
||||
|
@ -183,7 +183,7 @@ latex_elements = {
|
|||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||
latex_documents = [
|
||||
('index', 'publichealthschweiz.tex', u'Public Health Schweiz Documentation',
|
||||
('index', 'publichealth.tex', u'Public Health Schweiz Documentation',
|
||||
u'ChangeToMyName', 'manual'),
|
||||
]
|
||||
|
||||
|
@ -213,7 +213,7 @@ latex_documents = [
|
|||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'publichealthschweiz', u'Public Health Schweiz Documentation',
|
||||
('index', 'publichealth', u'Public Health Schweiz Documentation',
|
||||
[u'ChangeToMyName'], 1)
|
||||
]
|
||||
|
||||
|
@ -227,8 +227,8 @@ man_pages = [
|
|||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
('index', 'publichealthschweiz', u'Public Health Schweiz Documentation',
|
||||
u'ChangeToMyName', 'publichealthschweiz', 'One line description of project.',
|
||||
('index', 'publichealth', u'Public Health Schweiz Documentation',
|
||||
u'ChangeToMyName', 'publichealth', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
|
|
12
fabfile.py
vendored
12
fabfile.py
vendored
|
@ -74,9 +74,9 @@ def pull_production_data():
|
|||
|
||||
_pull_data(
|
||||
env_name='production',
|
||||
remote_db_name='publichealthschweiz',
|
||||
local_db_name='publichealthschweiz',
|
||||
remote_dump_path='/usr/local/django/publichealthschweiz/tmp/',
|
||||
remote_db_name='publichealth',
|
||||
local_db_name='publichealth',
|
||||
remote_dump_path='/usr/local/django/publichealth/tmp/',
|
||||
local_dump_path='/tmp/',
|
||||
)
|
||||
|
||||
|
@ -88,8 +88,8 @@ def pull_staging_data():
|
|||
|
||||
_pull_data(
|
||||
env_name='staging',
|
||||
remote_db_name='publichealthschweiz',
|
||||
local_db_name='publichealthschweiz',
|
||||
remote_dump_path='/usr/local/django/publichealthschweiz/tmp/',
|
||||
remote_db_name='publichealth',
|
||||
local_db_name='publichealth',
|
||||
remote_dump_path='/usr/local/django/publichealth/tmp/',
|
||||
local_dump_path='/tmp/',
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ import os
|
|||
import sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "publichealthschweiz.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "publichealth.settings")
|
||||
|
||||
from django.core.management import execute_from_command_line
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
Django settings for publichealthschweiz project.
|
||||
Django settings for publichealth project.
|
||||
|
||||
Generated by 'django-admin startproject' using Django 1.8.2.
|
||||
|
||||
|
@ -24,8 +24,8 @@ BASE_DIR = os.path.dirname(PROJECT_DIR)
|
|||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'publichealthschweiz.home',
|
||||
'publichealthschweiz.search',
|
||||
'publichealth.home',
|
||||
'publichealth.search',
|
||||
|
||||
'wagtail.contrib.wagtailsearchpromotions',
|
||||
'wagtail.wagtailforms',
|
||||
|
@ -65,7 +65,7 @@ MIDDLEWARE_CLASSES = [
|
|||
'wagtail.wagtailredirects.middleware.RedirectMiddleware',
|
||||
]
|
||||
|
||||
ROOT_URLCONF = 'publichealthschweiz.urls'
|
||||
ROOT_URLCONF = 'publichealth.urls'
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
|
@ -85,7 +85,7 @@ TEMPLATES = [
|
|||
},
|
||||
]
|
||||
|
||||
WSGI_APPLICATION = 'publichealthschweiz.wsgi.application'
|
||||
WSGI_APPLICATION = 'publichealth.wsgi.application'
|
||||
|
||||
|
||||
# Database
|
||||
|
@ -94,7 +94,7 @@ WSGI_APPLICATION = 'publichealthschweiz.wsgi.application'
|
|||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'publichealthschweiz',
|
||||
'NAME': 'publichealth',
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ CACHES = {
|
|||
'default': {
|
||||
'BACKEND': 'django_redis.cache.RedisCache',
|
||||
'LOCATION': '127.0.0.1:6379',
|
||||
'KEY_PREFIX': 'publichealthschweiz',
|
||||
'KEY_PREFIX': 'publichealth',
|
||||
'OPTIONS': {
|
||||
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ CACHES = {
|
|||
WAGTAILSEARCH_BACKENDS = {
|
||||
'default': {
|
||||
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
|
||||
'INDEX': 'publichealthschweiz',
|
||||
'INDEX': 'publichealth',
|
||||
},
|
||||
}
|
||||
|
|
@ -34,7 +34,7 @@ for key, value in os.environ.items():
|
|||
|
||||
# Basic configuration
|
||||
|
||||
APP_NAME = env.get('APP_NAME', 'publichealthschweiz')
|
||||
APP_NAME = env.get('APP_NAME', 'publichealth')
|
||||
|
||||
if 'SECRET_KEY' in env:
|
||||
SECRET_KEY = env['SECRET_KEY']
|
||||
|
@ -150,7 +150,7 @@ LOGGING = {
|
|||
}
|
||||
},
|
||||
'loggers': {
|
||||
'publichealthschweiz': {
|
||||
'publichealth': {
|
||||
'handlers': [],
|
||||
'level': 'INFO',
|
||||
'propagate': False,
|
||||
|
@ -180,14 +180,14 @@ LOGGING = {
|
|||
|
||||
if 'LOG_DIR' in env:
|
||||
# Public Health Schweiz log
|
||||
LOGGING['handlers']['publichealthschweiz_file'] = {
|
||||
LOGGING['handlers']['publichealth_file'] = {
|
||||
'level': 'INFO',
|
||||
'class': 'cloghandler.ConcurrentRotatingFileHandler',
|
||||
'filename': os.path.join(env['LOG_DIR'], 'publichealthschweiz.log'),
|
||||
'filename': os.path.join(env['LOG_DIR'], 'publichealth.log'),
|
||||
'maxBytes': 5242880, # 5MB
|
||||
'backupCount': 5
|
||||
}
|
||||
LOGGING['loggers']['wagtail']['handlers'].append('publichealthschweiz_file')
|
||||
LOGGING['loggers']['wagtail']['handlers'].append('publichealth_file')
|
||||
|
||||
# Wagtail log
|
||||
LOGGING['handlers']['wagtail_file'] = {
|
|
@ -6,7 +6,7 @@ from wagtail.wagtailadmin import urls as wagtailadmin_urls
|
|||
from wagtail.wagtaildocs import urls as wagtaildocs_urls
|
||||
from wagtail.wagtailcore import urls as wagtail_urls
|
||||
|
||||
from publichealthschweiz.search import views as search_views
|
||||
from publichealth.search import views as search_views
|
||||
|
||||
|
||||
urlpatterns = [
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
WSGI config for publichealthschweiz project.
|
||||
WSGI config for publichealth project.
|
||||
|
||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||
|
||||
|
@ -14,6 +14,6 @@ from whitenoise.django import DjangoWhiteNoise
|
|||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "publichealthschweiz.settings.production")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "publichealth.settings.production")
|
||||
|
||||
application = DjangoWhiteNoise(get_wsgi_application())
|
|
@ -1,6 +1,6 @@
|
|||
logging: 30
|
||||
migrate_from_0_3_2: false
|
||||
project_name: publichealthschweiz
|
||||
project_name: publichealth
|
||||
stellar_url: postgresql+psycopg2:///stellar_data
|
||||
tracked_databases: [publichealthschweiz]
|
||||
tracked_databases: [publichealth]
|
||||
url: postgresql+psycopg2:///template1
|
||||
|
|
Loading…
Reference in a new issue