Project name

This commit is contained in:
Oleg Lavrovsky 2016-12-09 06:13:01 +01:00
parent 2200695306
commit 90d3dc568d
29 changed files with 33 additions and 33 deletions

View File

@ -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
View File

@ -69,7 +69,7 @@ Vagrant.configure(2) do |config|
# sudo apt-get update # sudo apt-get update
# sudo apt-get install -y apache2 # sudo apt-get install -y apache2
# SHELL # 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. # Enable agent forwarding over SSH connections.
config.ssh.forward_agent = true config.ssh.forward_agent = true

View File

@ -1 +1 @@
python manage.py compress --settings publichealthschweiz.settings.production python manage.py compress --settings publichealth.settings.production

View File

@ -164,7 +164,7 @@ html_static_path = ['_static']
#html_file_suffix = None #html_file_suffix = None
# Output file base name for HTML help builder. # Output file base name for HTML help builder.
htmlhelp_basename = 'publichealthschweizdoc' htmlhelp_basename = 'publichealthdoc'
# -- Options for LaTeX output -------------------------------------------------- # -- Options for LaTeX output --------------------------------------------------
@ -183,7 +183,7 @@ latex_elements = {
# Grouping the document tree into LaTeX files. List of tuples # Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]). # (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [ latex_documents = [
('index', 'publichealthschweiz.tex', u'Public Health Schweiz Documentation', ('index', 'publichealth.tex', u'Public Health Schweiz Documentation',
u'ChangeToMyName', 'manual'), u'ChangeToMyName', 'manual'),
] ]
@ -213,7 +213,7 @@ latex_documents = [
# One entry per manual page. List of tuples # One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
('index', 'publichealthschweiz', u'Public Health Schweiz Documentation', ('index', 'publichealth', u'Public Health Schweiz Documentation',
[u'ChangeToMyName'], 1) [u'ChangeToMyName'], 1)
] ]
@ -227,8 +227,8 @@ man_pages = [
# (source start file, target name, title, author, # (source start file, target name, title, author,
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', 'publichealthschweiz', u'Public Health Schweiz Documentation', ('index', 'publichealth', u'Public Health Schweiz Documentation',
u'ChangeToMyName', 'publichealthschweiz', 'One line description of project.', u'ChangeToMyName', 'publichealth', 'One line description of project.',
'Miscellaneous'), 'Miscellaneous'),
] ]

12
fabfile.py vendored
View File

@ -74,9 +74,9 @@ def pull_production_data():
_pull_data( _pull_data(
env_name='production', env_name='production',
remote_db_name='publichealthschweiz', remote_db_name='publichealth',
local_db_name='publichealthschweiz', local_db_name='publichealth',
remote_dump_path='/usr/local/django/publichealthschweiz/tmp/', remote_dump_path='/usr/local/django/publichealth/tmp/',
local_dump_path='/tmp/', local_dump_path='/tmp/',
) )
@ -88,8 +88,8 @@ def pull_staging_data():
_pull_data( _pull_data(
env_name='staging', env_name='staging',
remote_db_name='publichealthschweiz', remote_db_name='publichealth',
local_db_name='publichealthschweiz', local_db_name='publichealth',
remote_dump_path='/usr/local/django/publichealthschweiz/tmp/', remote_dump_path='/usr/local/django/publichealth/tmp/',
local_dump_path='/tmp/', local_dump_path='/tmp/',
) )

View File

@ -3,7 +3,7 @@ import os
import sys import sys
if __name__ == "__main__": 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 from django.core.management import execute_from_command_line

View File

@ -1,5 +1,5 @@
""" """
Django settings for publichealthschweiz project. Django settings for publichealth project.
Generated by 'django-admin startproject' using Django 1.8.2. Generated by 'django-admin startproject' using Django 1.8.2.
@ -24,8 +24,8 @@ BASE_DIR = os.path.dirname(PROJECT_DIR)
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'publichealthschweiz.home', 'publichealth.home',
'publichealthschweiz.search', 'publichealth.search',
'wagtail.contrib.wagtailsearchpromotions', 'wagtail.contrib.wagtailsearchpromotions',
'wagtail.wagtailforms', 'wagtail.wagtailforms',
@ -65,7 +65,7 @@ MIDDLEWARE_CLASSES = [
'wagtail.wagtailredirects.middleware.RedirectMiddleware', 'wagtail.wagtailredirects.middleware.RedirectMiddleware',
] ]
ROOT_URLCONF = 'publichealthschweiz.urls' ROOT_URLCONF = 'publichealth.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@ -85,7 +85,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'publichealthschweiz.wsgi.application' WSGI_APPLICATION = 'publichealth.wsgi.application'
# Database # Database
@ -94,7 +94,7 @@ WSGI_APPLICATION = 'publichealthschweiz.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'publichealthschweiz', 'NAME': 'publichealth',
} }
} }
@ -166,7 +166,7 @@ CACHES = {
'default': { 'default': {
'BACKEND': 'django_redis.cache.RedisCache', 'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': '127.0.0.1:6379', 'LOCATION': '127.0.0.1:6379',
'KEY_PREFIX': 'publichealthschweiz', 'KEY_PREFIX': 'publichealth',
'OPTIONS': { 'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient', 'CLIENT_CLASS': 'django_redis.client.DefaultClient',
} }
@ -179,7 +179,7 @@ CACHES = {
WAGTAILSEARCH_BACKENDS = { WAGTAILSEARCH_BACKENDS = {
'default': { 'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch', 'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'publichealthschweiz', 'INDEX': 'publichealth',
}, },
} }

View File

@ -34,7 +34,7 @@ for key, value in os.environ.items():
# Basic configuration # Basic configuration
APP_NAME = env.get('APP_NAME', 'publichealthschweiz') APP_NAME = env.get('APP_NAME', 'publichealth')
if 'SECRET_KEY' in env: if 'SECRET_KEY' in env:
SECRET_KEY = env['SECRET_KEY'] SECRET_KEY = env['SECRET_KEY']
@ -150,7 +150,7 @@ LOGGING = {
} }
}, },
'loggers': { 'loggers': {
'publichealthschweiz': { 'publichealth': {
'handlers': [], 'handlers': [],
'level': 'INFO', 'level': 'INFO',
'propagate': False, 'propagate': False,
@ -180,14 +180,14 @@ LOGGING = {
if 'LOG_DIR' in env: if 'LOG_DIR' in env:
# Public Health Schweiz log # Public Health Schweiz log
LOGGING['handlers']['publichealthschweiz_file'] = { LOGGING['handlers']['publichealth_file'] = {
'level': 'INFO', 'level': 'INFO',
'class': 'cloghandler.ConcurrentRotatingFileHandler', 'class': 'cloghandler.ConcurrentRotatingFileHandler',
'filename': os.path.join(env['LOG_DIR'], 'publichealthschweiz.log'), 'filename': os.path.join(env['LOG_DIR'], 'publichealth.log'),
'maxBytes': 5242880, # 5MB 'maxBytes': 5242880, # 5MB
'backupCount': 5 'backupCount': 5
} }
LOGGING['loggers']['wagtail']['handlers'].append('publichealthschweiz_file') LOGGING['loggers']['wagtail']['handlers'].append('publichealth_file')
# Wagtail log # Wagtail log
LOGGING['handlers']['wagtail_file'] = { LOGGING['handlers']['wagtail_file'] = {

View File

@ -6,7 +6,7 @@ from wagtail.wagtailadmin import urls as wagtailadmin_urls
from wagtail.wagtaildocs import urls as wagtaildocs_urls from wagtail.wagtaildocs import urls as wagtaildocs_urls
from wagtail.wagtailcore import urls as wagtail_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 = [ urlpatterns = [

View File

@ -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``. 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 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()) application = DjangoWhiteNoise(get_wsgi_application())

View File

@ -1,6 +1,6 @@
logging: 30 logging: 30
migrate_from_0_3_2: false migrate_from_0_3_2: false
project_name: publichealthschweiz project_name: publichealth
stellar_url: postgresql+psycopg2:///stellar_data stellar_url: postgresql+psycopg2:///stellar_data
tracked_databases: [publichealthschweiz] tracked_databases: [publichealth]
url: postgresql+psycopg2:///template1 url: postgresql+psycopg2:///template1