Merge branch 'master' into feature/3517/ssh_keys
This commit is contained in:
		
				commit
				
					
						a2f705f012
					
				
			
		
					 14 changed files with 170 additions and 109 deletions
				
			
		|  | @ -199,13 +199,11 @@ DATABASES = { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| AUTHENTICATION_BACKENDS = ( | ||||
|     'guardian.backends.ObjectPermissionBackend', | ||||
|     'django.contrib.auth.backends.ModelBackend', | ||||
| ) | ||||
| 
 | ||||
| 
 | ||||
| # Internationalization | ||||
| # https://docs.djangoproject.com/en/1.7/topics/i18n/ | ||||
| 
 | ||||
|  | @ -464,7 +462,6 @@ META_USE_SITES = True | |||
| PARLER_LANGUAGES = {1: ({'code': 'en-us'}, {'code': 'de'},)} | ||||
| AUTH_USER_MODEL = 'membership.CustomUser' | ||||
| 
 | ||||
| 
 | ||||
| # PAYMENT | ||||
| 
 | ||||
| STRIPE_DESCRIPTION_ON_PAYMENT = "Payment for ungleich GmbH services" | ||||
|  | @ -481,7 +478,6 @@ STRIPE_API_PUBLIC_KEY = env('STRIPE_API_PUBLIC_KEY') | |||
| ANONYMOUS_USER_NAME = 'anonymous@ungleich.ch' | ||||
| GUARDIAN_GET_INIT_ANONYMOUS_USER = 'membership.models.get_anonymous_user_instance' | ||||
| 
 | ||||
| 
 | ||||
| ############################################# | ||||
| # configurations for opennebula-integration # | ||||
| ############################################# | ||||
|  | @ -508,7 +504,6 @@ OPENNEBULA_PORT = env('OPENNEBULA_PORT') | |||
| # default value is /RPC2 | ||||
| OPENNEBULA_ENDPOINT = env('OPENNEBULA_ENDPOINT') | ||||
| 
 | ||||
| 
 | ||||
| # dcl email configurations | ||||
| DCL_TEXT = env('DCL_TEXT') | ||||
| DCL_SUPPORT_FROM_ADDRESS = env('DCL_SUPPORT_FROM_ADDRESS') | ||||
|  | @ -526,9 +521,31 @@ GOOGLE_ANALYTICS_PROPERTY_IDS = { | |||
|     'dynamicweb-staging.ungleich.ch': 'staging' | ||||
| } | ||||
| 
 | ||||
| ENABLE_DEBUG_LOGGING = bool_env('ENABLE_DEBUG_LOGGING') | ||||
| 
 | ||||
| if ENABLE_DEBUG_LOGGING: | ||||
|     LOGGING = { | ||||
|         'version': 1, | ||||
|         'disable_existing_loggers': False, | ||||
|         'handlers': { | ||||
|             'file': { | ||||
|                 'level': 'DEBUG', | ||||
|                 'class': 'logging.FileHandler', | ||||
|                 'filename': "{PROJECT_DIR}/debug.log".format(PROJECT_DIR=PROJECT_DIR), | ||||
|             }, | ||||
|         }, | ||||
|         'loggers': { | ||||
|             'django': { | ||||
|                 'handlers': ['file'], | ||||
|                 'level': 'DEBUG', | ||||
|                 'propagate': True, | ||||
|             }, | ||||
|         }, | ||||
|     } | ||||
| 
 | ||||
| DEBUG = bool_env('DEBUG') | ||||
| 
 | ||||
| if DEBUG: | ||||
|     from .local import * # flake8: noqa | ||||
|     from .local import *  # flake8: noqa | ||||
| else: | ||||
|     from .prod import * # flake8: noqa | ||||
|     from .prod import *  # flake8: noqa | ||||
|  |  | |||
|  | @ -1,8 +1,8 @@ | |||
| from django.conf.urls import patterns, include, url | ||||
| from django.conf.urls import include, url | ||||
| from django.contrib import admin | ||||
| # deprecated in version 1.8 | ||||
| from django.conf.urls.i18n import i18n_patterns | ||||
| from django.conf.urls.static import static | ||||
| from django.views import i18n, static as static_view | ||||
| 
 | ||||
| from django.conf import settings | ||||
| from hosting.views import RailsHostingView, DjangoHostingView, NodeJSHostingView | ||||
|  | @ -22,17 +22,17 @@ urlpatterns = [url(r'^index.html$', LandingView.as_view()), | |||
|                url(r'^nosystemd/', include('nosystemd.urls', namespace="nosystemd")), | ||||
|                url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')), | ||||
|                url(r'^jsi18n/(?P<packages>\S+?)/$', | ||||
|                    'django.views.i18n.javascript_catalog'), | ||||
|                    i18n.javascript_catalog), | ||||
|                ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | ||||
| 
 | ||||
| # note the django CMS URLs included via i18n_patterns | ||||
| urlpatterns += i18n_patterns('', | ||||
|                              url(r'^/?$', LandingView.as_view()), | ||||
| urlpatterns += i18n_patterns( | ||||
|                              url(r'^$', LandingView.as_view()), | ||||
|                              url(r'^admin/', include(admin.site.urls)), | ||||
|                              url(r'^datacenterlight', include('datacenterlight.urls', namespace="datacenterlight")), | ||||
|                              url(r'^datacenterlight/', include('datacenterlight.urls', namespace="datacenterlight")), | ||||
|                              url(r'^hosting/', RedirectView.as_view( | ||||
|                                  url=reverse_lazy('hosting:login')), name='redirect_hosting_login'), | ||||
|                              url(r'^alplora', include('alplora.urls', namespace="alplora")), | ||||
|                              url(r'^alplora/', include('alplora.urls', namespace="alplora")), | ||||
|                              url(r'^membership/', include(membership_urls)), | ||||
|                              url(r'^digitalglarus/', include('digitalglarus.urls', | ||||
|                                                              namespace="digitalglarus")), | ||||
|  | @ -43,11 +43,11 @@ urlpatterns += i18n_patterns('', | |||
|                              url(r'^blog/', include('ungleich.urls', namespace='ungleich')), | ||||
|                              url(r'^', include('cms.urls')) | ||||
|                              ) | ||||
| urlpatterns += patterns('', | ||||
| urlpatterns += [ | ||||
|                         url(r'^media/(?P<path>.*)$', | ||||
|                             'django.views.static.serve', { | ||||
|                             static_view.serve, { | ||||
|                                 'document_root': settings.MEDIA_ROOT, | ||||
|                             }), | ||||
|                         ) | ||||
|                         ] | ||||
| if settings.DEBUG: | ||||
|     urlpatterns += patterns('', url(r'^__debug__/', include(debug_toolbar.urls))) | ||||
|     urlpatterns += [url(r'^__debug__/', include(debug_toolbar.urls))] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue