def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' try: REQUIREMENTS = read_file('requirements.txt').splitlines() except: REQUIREMENTS = [ 'Django==1.6.10', 'celery==3.1.17,' ] setup( name='nerim-runner', version=get_version(), description='Project Facturation Telco', author="Philipe 'paHpa' Vivien", author_email='*****@*****.**', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, )
For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os ROOT_PROJECT = os.path.dirname(__file__) BASE_DIR = os.path.dirname(ROOT_PROJECT) DIRNAME = os.path.dirname(__file__) PROJECT_PATH = os.path.abspath(os.path.dirname(__name__)) from runner.version import get_version __version__ = get_version(3) SITE_ID = 1 #print("settings for site id %s"%SITE_ID) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '9a3!-fum*4g2f5&zyqoj0&9vk*ahqmk12yfu9nymsr(6+^$#ma' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = DEBUG ALLOWED_HOSTS = [ "127.0.0.1", "localhost",
For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os ROOT_PROJECT = os.path.dirname(__file__) BASE_DIR = os.path.dirname(ROOT_PROJECT) DIRNAME = os.path.dirname(__file__) PROJECT_PATH = os.path.abspath(os.path.dirname(__name__)) from runner.version import get_version __version__ = get_version(3) SITE_ID = 1 #print("settings for site id %s"%SITE_ID) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '9a3!-fum*4g2f5&zyqoj0&9vk*ahqmk12yfu9nymsr(6+^$#ma' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = DEBUG ALLOWED_HOSTS = ["127.0.0.1", "localhost", 'runner.nerim.net', 'pahpa'] SERVE_MEDIA = DEBUG DBMUGU = True