Commit e911c482 authored by Thomas Leymonerie's avatar Thomas Leymonerie

slapos/software/django : Software/Instance modified

parent 4c8295fb
[instance] [instance]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = f1330409045e5c7abb716d9e1eb1352f md5sum = 8ddb59ae08be7413518f28781cd2fd58
...@@ -12,13 +12,37 @@ etc = ${:home}/etc ...@@ -12,13 +12,37 @@ etc = ${:home}/etc
var = ${:home}/var var = ${:home}/var
srv = ${:home}/srv srv = ${:home}/srv
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration
computer = ${slap-connection:computer-id}
partition = ${slap-connection:partition-id}
url = ${slap-connection:server-url}
key = ${slap-connection:key-file}
cert = ${slap-connection:cert-file}
[setup-script] [setup-script]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
rendered = ${directory:home}/setup-script rendered = ${directory:home}/setup-script
template = template =
inline:#!/bin/sh inline:#!/bin/sh
export PATH={{ buildout['bin-directory'] }}:$PATH export PATH={{ buildout['bin-directory'] }}:$PATH
export PYTHONSTARTUP={{ django_interpreter }}
export PYTHONPATH=`${setup-django:rendered}`:{{ buildout['bin-directory'] }}:$PYTHONPATH
[setup-django]
recipe = slapos.recipe.template:jinja2
rendered = ${directory:home}/setup-django.py
template =
inline:#!{{ django_interpreter }}
import sys
import os
path = []
for p in sys.path:
if not os.path.relpath(p, start='{{ buildout['eggs-directory'] }}').startswith(os.pardir):
path.append(p)
print(":".join(path))
[publish-connection-information] [publish-connection-information]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
setup = ${setup-script:rendered} setup-script = ${setup-script:rendered}
ipv6 = ${slap-configuration:ipv6-random}
...@@ -13,7 +13,7 @@ part = python3 ...@@ -13,7 +13,7 @@ part = python3
[django] [django]
recipe = zc.recipe.egg recipe = zc.recipe.egg
interpreter = python_with_django interpreter = python_django
eggs = eggs =
Django Django
...@@ -24,6 +24,7 @@ rendered = ${buildout:directory}/template.cfg ...@@ -24,6 +24,7 @@ rendered = ${buildout:directory}/template.cfg
template = ${:_profile_base_location_}/${:filename} template = ${:_profile_base_location_}/${:filename}
context = context =
section buildout buildout section buildout buildout
raw django_interpreter ${buildout:bin-directory}/${django:interpreter}
[versions] [versions]
Django = 3.2.12 Django = 3.2.12
......
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