Commit 9b6b473d authored by Administrator's avatar Administrator

wsgi ok

parent 29eb8ea8
# django.ini file
[uwsgi]
# uwsgi --vacuum --socket monsite/mysite.sock --wsgi-file monsite/wsgi.py --chmod-socket=666 --home=/srv/alexandre.delanoe/env --chdir=/var/www/www/alexandre/monsite --env
env = DJANGO_SETTINGS_MODULE=gargantext_web.settings
#module = django.core.handlers.wsgi:WSGIHandler()
#plugins = python
# the base directory
chdir = /home/alexandre/projets/gargantext.py/gargantext_web
# Django's wsgi file
#module = wsgi
wsgi-file = /home/alexandre/projets/gargantext.py/gargantext_web/wsgi.py
# the virtualenv
home = /home/alexandre/projets/gargantext.py/env/
#pythonpath = /srv/alexandre.delanoe/env/lib/python3.4/dist-packages
#pythonpath = /srv/alexandre.delanoe/env/lib/python3.4/
# master
master = true
# maximum number of processes
processes = 10
# the socket (use the full path to be safe)
socket = /tmp/gargantext.sock
# with appropriate permissions - *may* be needed
chmod-socket = 666
# clear environment on exit
vacuum = true
pidfile = /tmp/gargantext.pid
# respawn processes taking more than 20 seconds
harakiri = 20
# limit the project to 128 MB
#limit-as = 128
# respawn processes after serving 5000 requests
max-requests = 5000
# background the process & log
#daemonize = /var/log/uwsgi/gargantext.log
......@@ -11,6 +11,9 @@ https://docs.djangoproject.com/en/1.6/ref/settings/
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
PROJECT_PATH = os.path.join(BASE_DIR, os.pardir)
PROJECT_PATH = os.path.abspath(PROJECT_PATH)
# Quick-start development settings - unsuitable for production
......@@ -30,7 +33,6 @@ TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes
# Don't forget to use absolute paths, not relative paths.
#'/var/www/gargantext/templates',
'/home/alexandre/projets/gargantext.py/gargantext_web/templates',
#import os.path
......@@ -41,8 +43,9 @@ TEMPLATE_DIRS = (
)
#ALLOWED_HOSTS = ['*',]
ALLOWED_HOSTS = ['localhost', 'www.polemic.be', 'polemic.be']
ALLOWED_HOSTS = []
# Application definition
......
./manage.py graph_models documents | dot -Tpdf > d.pdf
......@@ -3,7 +3,7 @@ import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gargantext_web.settings")
from django.core.management import execute_from_command_line
......
Cython==0.20.2
Django==1.6.6
Jinja2==2.7.3
MarkupSafe==0.23
Pillow==2.5.3
Pygments==1.6
South==1.0
certifi==14.05.14
decorator==3.4.0
django-extensions==1.4.0
django-grappelli==2.5.3
django-hstore==1.3.1
django-nested-inlines==0.1
graphviz==0.4
ipython==2.2.0
lxml==3.3.6
matplotlib==1.4.0
networkx==1.9
nltk==3.0a4
nose==1.3.4
numpy==1.8.2
pandas==0.14.1
pexpect-u==2.5.1
psycopg2==2.5.4
pydot2==1.0.33
pyparsing==2.0.2
python-dateutil==2.2
pytz==2014.7
pyzmq==14.3.1
readline==6.2.4.1
scikit-learn==0.15.1
scipy==0.14.0
six==1.7.3
sympy==0.7.5
tornado==4.0.1
......@@ -8,7 +8,7 @@ https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gargantext_web.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
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