Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
907b6662
Commit
907b6662
authored
Mar 23, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show django docs
parent
193352c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
Makefile
Makefile
+1
-0
compile
bin/compile
+3
-0
django
bin/steps/django
+10
-0
No files found.
Makefile
View file @
907b6662
docs
:
docs
:
mkdir
-p
site
mkdir
-p
site
shocco
-t
'Python Buildpack Compiler'
./bin/compile
>
site/index.html
shocco
-t
'Python Buildpack Compiler'
./bin/compile
>
site/index.html
shocco
-t
'Django Buildpack Compiler'
./bin/steps/django
>
site/django.html
site
:
docs
site
:
docs
cd
site
&&
git add
-A
&&
git commit
-m
'update'
&&
git push heroku master
cd
site
&&
git add
-A
&&
git commit
-m
'update'
&&
git push heroku master
...
...
bin/compile
View file @
907b6662
...
@@ -153,6 +153,9 @@ pip install --use-mirrors -r requirements.txt --src ./.heroku/src | indent
...
@@ -153,6 +153,9 @@ pip install --use-mirrors -r requirements.txt --src ./.heroku/src | indent
# Do additional application hackery if applications appears to be a Django app.
# Do additional application hackery if applications appears to be a Django app.
# Optionally, disable all Django-specific changes with `DISABLE_INJECTION` env.
# Optionally, disable all Django-specific changes with `DISABLE_INJECTION` env.
#
# See [`bin/steps/django`](django.html).
if
[
"
$NAME
"
=
"Python/Django"
]
&&
!
[
"
$DISABLE_INJECTION
"
]
;
then
if
[
"
$NAME
"
=
"Python/Django"
]
&&
!
[
"
$DISABLE_INJECTION
"
]
;
then
source
$BIN_DIR
/steps/django
source
$BIN_DIR
/steps/django
fi
fi
...
...
bin/steps/django
View file @
907b6662
#!/usr/bin/env bash
#!/usr/bin/env bash
# This script serves as the Django build step of the
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# compiler.
#
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# adapter between a Python application and Heroku's runtime.
#
# This script is invoked by [`bin/compile`](/).
echo
"-----> Injecting Django settings..."
echo
"-----> Injecting Django settings..."
SETTINGS_FILE
=
$(
ls
**
/settings.py |
head
-1
)
SETTINGS_FILE
=
$(
ls
**
/settings.py |
head
-1
)
...
...
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