-
Notifications
You must be signed in to change notification settings - Fork 219
Installation
Aaron Riedener edited this page Sep 26, 2017
·
49 revisions
Download from https://www.python.org/downloads/ Install python with the defaults
Run command C:\Users\YourUser\AppData\Local\Programs\Python\Python36-32\Scripts\pip.exe install koalix-crm
Run command C:\Users\YourUser\AppData\Local\Programs\Python\Python36-32\Scripts\django-admin.exe startproject test_koalixcrm
sudo bash
apt-get install fop virtualenv python3.5
exit
mkdir ~/test_koalixcrm_env
virtualenv --no-site-package --python=/usr/bin/python3.5 ~/test_koalixcrm_env
source /test_koalixcrm_env/bin/activate
pip install koalix-crm
cd ~
django-admin startproject test_koalixcrm
Open the file called settings.py
nano ~/test_koalixcrm/test_koalixcrm/settings.py
Search in the file the variable defintion "INSTALLED_APPS"
Add following lines to the at the end of INSTALLED_APPS:
'koalixcrm.apps.crm',
'koalixcrm.apps.accounting',
'koalixcrm.apps.djangoUserExtension',
'koalixcrm.apps.subscriptions',
'filebrowser'
Open the file called settings.py
nano /var/www/koalixcrm/test_koalixcrm/test_koalixcrm/settings.py
Create a new variable defintion "KOALIXCRM_PLUGIN"
KOALIXCRM_PLUGINS = (
'koalixcrm.subscriptions',
)
Open the file called settings.py
nano /var/www/koalixcrm/test_koalixcrm/test_koalixcrm/settings.py
At the very end of the seetings.py file add the following lines:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
MEDIA_URL = "/media/"
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 = 'uploads/'
Open the file called urls.py
nano urls.py
Completely rewrite the file with following content
from django.conf.urls.static import *
from django.contrib.staticfiles.urls import static
from django.contrib import admin
from filebrowser.sites import FileBrowserSite
from django.core.files.storage import DefaultStorage
site = FileBrowserSite(name="filebrowser", storage=DefaultStorage())
customsite = FileBrowserSite(name='custom_filebrowser', storage=DefaultStorage())
customsite.directory = "uploads/"
admin.autodiscover()
urlpatterns = [
url(r'^admin/filebrowser/', customsite.urls),
url(r'^admin/', admin.site.urls),
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
cd ~/test_koalixcrm
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver 127.0.0.1:8000
What you want to do next is of cause the test the software. Visit your http://127.0.0.1:8000/admin, log in and start testing.