Skip to content

Commit

Permalink
Merge pull request #355 from KoalixSwitzerland/#327-dockerfile-is-not…
Browse files Browse the repository at this point in the history
…-correctly-configured

#327 dockerfile is not correctly configured
  • Loading branch information
scaphilo authored Apr 7, 2024
2 parents 2cf9382 + 3a58f37 commit 4846aa8
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 63 deletions.
4 changes: 1 addition & 3 deletions koalixcrm/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# -*- coding: utf-8 -*-

KOALIXCRM_VERSION = "1.13.0"
KOALIXCRM_VERSION = "1.14.0"
3 changes: 1 addition & 2 deletions projectsettings/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from django.utils.translation import gettext_lazy as _
from grappelli.dashboard import modules, Dashboard
from grappelli.dashboard.utils import get_admin_site_name
from koalixcrm.version import KOALIXCRM_VERSION


Expand All @@ -19,7 +18,7 @@ class CustomIndexDashboard(Dashboard):

def init_with_context(self, context):
self.children.append(modules.Group(
_('koalixcrm Version' + KOALIXCRM_VERSION),
_('koalixcrm Version ' + KOALIXCRM_VERSION),
column=1,
collapsible=True,
children=[
Expand Down
4 changes: 2 additions & 2 deletions projectsettings/settings/base_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

MEDIA_URL = "/media/"
MEDIA_ROOT = os.path.join(BASE_DIR)
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

PROJECT_ROOT = BASE_DIR

# Settings specific for koalixcrm
PDF_OUTPUT_ROOT = os.path.join(STATIC_ROOT, 'pdf')

# Settings specific for filebrowser
FILEBROWSER_DIRECTORY = 'media/uploads/'
FILEBROWSER_DIRECTORY = 'uploads/'
FILEBROWSER_EXTENSIONS = {
'XML': ['.xml'],
'XSL': ['.xsl'],
Expand Down
29 changes: 0 additions & 29 deletions projectsettings/settings/production_docker_postgres_settings.py

This file was deleted.

17 changes: 10 additions & 7 deletions projectsettings/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
"""
WSGI config for test_koalixcrm project.
WSGI config for koalixcrm project.
It exposes the WSGI callable as a module-level variable named ``application``.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named `application`. Django's `runserver` and `runfcgi` commands discover
this application via the `WSGI_APPLICATION` setting.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
Usually this will be called "koalixcrm.wsgi".
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_koalixcrm.settings")
# The settings module that Django uses. By convention, it is usually in the form "myproject.settings.production"
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"koalixcrm.projectsettings.settings.production_docker_postgres_settings")

application = get_wsgi_application()
application = get_wsgi_application()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-r requirements/prod_requirements.txt
-r requirements/development_requirements.txt
6 changes: 3 additions & 3 deletions requirements/development_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Django==3.2.20
Django==3.2.25
django-filebrowser==3.14.3
lxml==5.1.0
olefile==0.46
Pillow==7.1.2
psycopg2-binary==2.8.4
Pillow==10.3.0
psycopg2-binary==2.9.9
pytz==2022.4
django-grappelli==2.15.7
djangorestframework==3.14.0
Expand Down
14 changes: 0 additions & 14 deletions requirements/prod_requirements.txt

This file was deleted.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
'django-filebrowser==3.14.3',
'lxml==5.1.0',
'olefile==0.46',
"Pillow==10.2.0",
'psycopg2-binary==2.8.4',
"Pillow==10.3.0",
'psycopg2-binary==2.9.9',
'pytz==2022.4',
'django-grappelli==2.15.7',
'djangorestframework==3.14.0',
Expand Down

0 comments on commit 4846aa8

Please sign in to comment.