Skip to content

Commit

Permalink
Añadido soporte para el entorno de producción mediante wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
iago-suarez committed Aug 28, 2015
1 parent 2d85ba6 commit d125fd8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ this line to `ancoweb/bin/activate`:
## Installation

Install the necessary packages, here's an example for ubuntu 14.04:

$ sudo apt-add-repository ppa:mc3man/trusty-media
$ sudo apt-get update
$ sudo apt-get install -y ffmpeg phantomjs python3-pip firefox xvfb

Make python 3.4 default python version:

> echo -e "python='/usr/bin/python3.4' \nalias pip='/usr/bin/pip3' \nalias sudo='sudo '" > ~/.bash_aliases
> echo -e "alias python='/usr/bin/python3.4' \nalias pip='/usr/bin/pip3' \nalias sudo='sudo '" > ~/.bash_aliases
Now restart the terminal and the pip commands should work smoothly. Install all dependencies:

Expand All @@ -71,3 +72,9 @@ Take a look at the docs for a detailed instructions guide.

[0]: https://www.python.org/
[1]: https://www.djangoproject.com/

### Issue Tracking

After registering you can track a new issue or see the current issues in: <a href="http://iago-suarez.myjetbrains.com/">Jetbrains YouTrack page</a>


4 changes: 4 additions & 0 deletions src/ancoweb/settings_production.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__author__ = 'iago'

DEBUG = TEMPLATE_DEBUG = False
RECOGNITIONSYS_BIN = '/home/django/RecognitionSystem/recognitionsystem'
2 changes: 1 addition & 1 deletion src/ancoweb/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ancoweb.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ancoweb.settings_production")

from django.core.wsgi import get_wsgi_application

Expand Down

0 comments on commit d125fd8

Please sign in to comment.