Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 28 lines (20 sloc) 0.749 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.
6 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')
7
88ae6dd @Osmose Allow funfactory to be overridden by a locally development version
Osmose authored
8 try:
9 # For local development in a virtualenv:
10 from funfactory import manage
11 except ImportError:
12 # Production:
13 # Add a temporary path so that we can import the funfactory
14 tmp_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
15 'vendor', 'src', 'funfactory')
16 sys.path.append(tmp_path)
80fdffd add a vendor lib
Jeff Balogh authored
17
88ae6dd @Osmose Allow funfactory to be overridden by a locally development version
Osmose authored
18 from funfactory import manage
80fdffd add a vendor lib
Jeff Balogh authored
19
88ae6dd @Osmose Allow funfactory to be overridden by a locally development version
Osmose authored
20 # Let the path magic happen in setup_environ() !
21 sys.path.remove(tmp_path)
80fdffd add a vendor lib
Jeff Balogh authored
22
8bde790 @fwenzel Added local vendor library to facilitate upgrades of playdoh-lib. Iss…
fwenzel authored
23
e5b058a @kumar303 More pythonic Playdoh layout: no top level __init__, no apps
kumar303 authored
24 manage.setup_environ(__file__, more_pythonic=True)
88755f7 @fwenzel Added nuggets (for safe django forms). Closes #18.
fwenzel authored
25
80ee5a9 BUST A MOVE
Jeff Balogh authored
26 if __name__ == "__main__":
a63674e @kumar303 Moves all custom logic to playdohlib for easy upgrades (issue 29)
kumar303 authored
27 manage.main()
Something went wrong with that request. Please try again.