Ignore:
Timestamp:
11/01/12 10:36:17 (8 years ago)
Author:
mnagni
Message:

relocated the wsgi.py
updated the configuration
added a dependency (existing but missing from the requirements.txt) from psycop2

File:
1 moved

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/resources/wsgi.py

    r8042 r8057  
    1 ''' 
    2 Created on 22 Dec 2011 
     1import sys 
     2import site 
     3import os 
    34 
    4 @author: mnagni 
    5 ''' 
    6 import os 
    7 os.environ['DJANGO_SETTINGS_MODULE'] = 'MolesManager.settings' 
     5#this is the path to the virtualenv python site-package dir 
     6vepath = 'VEPATH_PAR' 
     7#this is the path to dir parent to the django project  
     8projectPath = 'PATH_TO_DJANGO_PROJECT' 
    89 
    9 # This application object is used by the development server 
    10 # as well as any WSGI server configured to use this file. 
    11 from django.core.handlers.wsgi import WSGIHandler 
    12 application = WSGIHandler() 
     10#this is the project's name 
     11projectName = 'PROJECT_NAME_PAR' 
     12 
     13 
     14# add the site-packages of our virtualenv as a site dir 
     15site.addsitedir(vepath) 
     16 
     17# add the app's directory to the PYTHONPATH 
     18sys.path.append(projectPath) 
     19sys.path.append(projectPath + '/' + projectName) 
     20 
     21os.environ['DJANGO_SETTINGS_MODULE'] = 'PROJECT_NAME_PAR.settings' 
     22 
     23import django.core.handlers.wsgi 
     24application = django.core.handlers.wsgi.WSGIHandler() 
     25 
Note: See TracChangeset for help on using the changeset viewer.