Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Leymonerie
slapos
Commits
c8626d81
Commit
c8626d81
authored
Feb 14, 2022
by
Thomas Leymonerie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos/software/django : Software/Instance modified
parent
bb1d6892
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
software/django/buildout.hash.cfg
software/django/buildout.hash.cfg
+1
-1
software/django/instance.cfg.in
software/django/instance.cfg.in
+25
-1
software/django/software.cfg
software/django/software.cfg
+2
-1
No files found.
software/django/buildout.hash.cfg
View file @
c8626d81
[instance]
filename = instance.cfg.in
md5sum =
f1330409045e5c7abb716d9e1eb1352f
md5sum =
8ddb59ae08be7413518f28781cd2fd58
software/django/instance.cfg.in
View file @
c8626d81
...
...
@@ -12,13 +12,37 @@ etc = ${:home}/etc
var = ${:home}/var
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]
recipe = slapos.recipe.template:jinja2
rendered = ${directory:home}/setup-script
template =
inline:#!/bin/sh
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]
recipe = slapos.cookbook:publish
setup = ${setup-script:rendered}
setup-script = ${setup-script:rendered}
ipv6 = ${slap-configuration:ipv6-random}
software/django/software.cfg
View file @
c8626d81
...
...
@@ -13,7 +13,7 @@ part = python3
[django]
recipe = zc.recipe.egg
interpreter = python_
with_
django
interpreter = python_django
eggs =
Django
...
...
@@ -24,6 +24,7 @@ rendered = ${buildout:directory}/template.cfg
template = ${:_profile_base_location_}/${:filename}
context =
section buildout buildout
raw django_interpreter ${buildout:bin-directory}/${django:interpreter}
[versions]
Django = 3.2.12
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment