Commit 7fbd7854 authored by sim's avatar sim

Move django backend in gargantext.backend

parent c50654c6
from .celery_app import app as celery_app
from .celery_app import app as celery_app
......@@ -16,7 +16,7 @@ import datetime
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Quick-start development settings - unsuitable for production
......@@ -43,7 +43,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'rest_framework',
'djcelery',
'gargantext',
'gargantext.backend',
]
MIDDLEWARE = [
......@@ -56,7 +56,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'gargantext.urls'
ROOT_URLCONF = 'gargantext.backend.urls'
TEMPLATES = [
{
......@@ -74,7 +74,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'gargantext.wsgi.application'
WSGI_APPLICATION = 'gargantext.backend.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
......
......@@ -33,7 +33,7 @@ chmod-socket = 664
# user running uwsgi MUST be a member of www-data group
chown-socket = %U:www-data
# wsgi django module
module = gargantext.wsgi:application
module = gargantext.backend.wsgi:application
# about master: http://uwsgi-docs.readthedocs.io/en/latest/Management.html?highlight=master#reloading-the-server
master = True
# can do: uwsgi --stop /tmp/gargantext.pid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment