Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 24 lines (16 sloc) 0.666 kb
80ee5a9 BUST A MOVE
Jeff Balogh authored
1 #!/usr/bin/env python
80fdffd add a vendor lib
Jeff Balogh authored
2 import os
3 import sys
4
e5b058a @kumar303 More pythonic Playdoh layout: no top level __init__, no apps
kumar303 authored
5 # Edit this if necessary or override the variable in your environment.
60da9ed @andymckay Renamed project module to webpay
andymckay authored
6 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webpay.settings')
e5b058a @kumar303 More pythonic Playdoh layout: no top level __init__, no apps
kumar303 authored
7
df0f394 @lonnen always load funfactory from vendor library
lonnen authored
8 # Add a temporary path so that we can import the funfactory
9 tmp_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
10 'vendor', 'src', 'funfactory')
11 # Comment out to load funfactory from your site packages instead
12 sys.path.insert(0, tmp_path)
80fdffd add a vendor lib
Jeff Balogh authored
13
df0f394 @lonnen always load funfactory from vendor library
lonnen authored
14 from funfactory import manage
80fdffd add a vendor lib
Jeff Balogh authored
15
df0f394 @lonnen always load funfactory from vendor library
lonnen authored
16 # Let the path magic happen in setup_environ() !
17 sys.path.remove(tmp_path)
80fdffd add a vendor lib
Jeff Balogh authored
18
8bde790 @fwenzel Added local vendor library to facilitate upgrades of playdoh-lib. Iss…
fwenzel authored
19
e5b058a @kumar303 More pythonic Playdoh layout: no top level __init__, no apps
kumar303 authored
20 manage.setup_environ(__file__, more_pythonic=True)
88755f7 @fwenzel Added nuggets (for safe django forms). Closes #18.
fwenzel authored
21
80ee5a9 BUST A MOVE
Jeff Balogh authored
22 if __name__ == "__main__":
a63674e @kumar303 Moves all custom logic to playdohlib for easy upgrades (issue 29)
kumar303 authored
23 manage.main()
Something went wrong with that request. Please try again.