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
bea5b491
Commit
bea5b491
authored
Apr 03, 2012
by
Andrés Torres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for django 1.4
parent
b67a0404
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
13 deletions
+14
-13
detect
bin/detect
+9
-8
django
bin/steps/django
+5
-5
__init__.py
test/django-1.4-skeleton/haystack/haystack/__init__.py
+0
-0
settings.py
test/django-1.4-skeleton/haystack/haystack/settings.py
+0
-0
urls.py
test/django-1.4-skeleton/haystack/haystack/urls.py
+0
-0
wsgi.py
test/django-1.4-skeleton/haystack/haystack/wsgi.py
+0
-0
manage.py
test/django-1.4-skeleton/haystack/manage.py
+0
-0
No files found.
bin/detect
View file @
bea5b491
#!/usr/bin/env bash
#!/usr/bin/env bash
# This script serves as the
# This script serves as the
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# detector.
# detector.
#
#
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# adapter between a Python application and Heroku's runtime.
# adapter between a Python application and Heroku's runtime.
# ## Usage
# ## Usage
# Compiling an app into a slug is simple:
# Compiling an app into a slug is simple:
#
#
# $ bin/detect <build-dir> <cache-dir>
# $ bin/detect <build-dir> <cache-dir>
BUILD_DIR
=
$1
BUILD_DIR
=
$1
...
@@ -25,9 +25,10 @@ if [ ! -f $BUILD_DIR/requirements.txt ]; then
...
@@ -25,9 +25,10 @@ if [ ! -f $BUILD_DIR/requirements.txt ]; then
exit
0
exit
0
fi
fi
# `Python/Django` if `**/settings.py` is present and `django` exists in
# `Python/Django` if `**/settings.py` is present and `django` exists in
# `requirements.txt`.
# `requirements.txt`.
#
#
# Otherwise, `Python`.
# Otherwise, `Python`.
SETTINGS_FILE
=
$(
find
$BUILD_DIR
/.
-maxdepth
3
-type
f
-name
'settings.py'
|
head
-1
)
ls
$BUILD_DIR
/
**
/settings.py &> /dev/null
&&
(
grep
-Fiq
"django"
$BUILD_DIR
/requirements.txt
)
&&
echo
Python/Django
||
echo
Python
[
-n
"
$SETTINGS_FILE
"
]
&&
(
grep
-Fiq
"django"
$BUILD_DIR
/requirements.txt
)
&&
echo
Python/Django
||
echo
Python
\ No newline at end of file
\ No newline at end of file
bin/steps/django
View file @
bea5b491
#!/usr/bin/env bash
#!/usr/bin/env bash
# This script serves as the Django build step of the
# This script serves as the Django build step of the
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# compiler.
# compiler.
#
#
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# adapter between a Python application and Heroku's runtime.
# adapter between a Python application and Heroku's runtime.
#
#
# This script is invoked by [`bin/compile`](/).
# This script is invoked by [`bin/compile`](/).
...
@@ -21,7 +21,7 @@ fi
...
@@ -21,7 +21,7 @@ fi
echo
"-----> Injecting Django settings..."
echo
"-----> Injecting Django settings..."
SETTINGS_FILE
=
$(
find
.
-maxdepth
2
-type
f
-name
'settings.py'
|
head
-1
)
SETTINGS_FILE
=
$(
find
.
-maxdepth
3
-type
f
-name
'settings.py'
|
head
-1
)
PROJECT
=
$(
dirname
$SETTINGS_FILE
)
PROJECT
=
$(
dirname
$SETTINGS_FILE
)
echo
"Injecting code into
$SETTINGS_FILE
to read from DATABASE_URL"
| indent
echo
"Injecting code into
$SETTINGS_FILE
to read from DATABASE_URL"
| indent
...
...
test/django-1.4-skeleton/haystack/__init__.py
→
test/django-1.4-skeleton/haystack/
haystack/
__init__.py
View file @
bea5b491
File moved
test/django-1.4-skeleton/haystack/settings.py
→
test/django-1.4-skeleton/haystack/
haystack/
settings.py
View file @
bea5b491
File moved
test/django-1.4-skeleton/haystack/urls.py
→
test/django-1.4-skeleton/haystack/
haystack/
urls.py
View file @
bea5b491
File moved
test/django-1.4-skeleton/haystack/wsgi.py
→
test/django-1.4-skeleton/haystack/
haystack/
wsgi.py
View file @
bea5b491
File moved
test/django-1.4-skeleton/manage.py
→
test/django-1.4-skeleton/
haystack/
manage.py
View file @
bea5b491
File moved
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