Permalink
Browse files

pinax-admin clone_project company_project

  • Loading branch information...
1 parent 3043c7a commit d0adedae1dd7965e74d2df68f72b72a667da01ad @brosner brosner committed Jan 23, 2010
@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+
+__about__ = """
+A starter project for company or project sites intended to provide static
+information and a blog.
+"""
No changes.
No changes.
@@ -0,0 +1,37 @@
+import os
+import sys
+
+from os.path import abspath, dirname, join
+from site import addsitedir
+
+# activate virtualenv
+VIRTUALENV_BASE = "/Users/brian/virtualenvs/pinax-dev"
+if not VIRTUALENV_BASE:
+ raise Exception("VIRTUALENV_BASE is not set correctly.")
+
+activate_this = join(VIRTUALENV_BASE, "bin/activate_this.py")
+execfile(activate_this, dict(__file__=activate_this))
+
+from django.core.handlers.modpython import ModPythonHandler
+
+
+
+class PinaxModPythonHandler(ModPythonHandler):
+ def __call__(self, req):
+ # mod_python fakes the environ, and thus doesn't process SetEnv.
+ # This fixes that. Django will call this again since there is no way
+ # of overriding __call__ to just process the request.
+ os.environ.update(req.subprocess_env)
+ from django.conf import settings
+
+ sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
+
+ sys.path.insert(0, join(settings.PINAX_ROOT, "apps"))
+ sys.path.insert(0, join(settings.PROJECT_ROOT, "apps"))
+
+ return super(PinaxModPythonHandler, self).__call__(req)
+
+
+def handler(req):
+ # mod_python hooks into this function.
+ return PinaxModPythonHandler()(req)
@@ -0,0 +1,16 @@
+import os
+import sys
+
+from os.path import abspath, dirname, join
+from site import addsitedir
+
+sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
+
+from django.conf import settings
+os.environ["DJANGO_SETTINGS_MODULE"] = "pinaxsite_project.settings"
+
+sys.path.insert(0, join(settings.PINAX_ROOT, "apps"))
+sys.path.insert(0, join(settings.PROJECT_ROOT, "apps"))
+
+from django.core.servers.fastcgi import runfastcgi
+runfastcgi(method="threaded", daemonize="false")
@@ -0,0 +1,20 @@
+import os
+import sys
+
+# redirect sys.stdout to sys.stderr for bad libraries like geopy that uses
+# print statements for optional import exceptions.
+sys.stdout = sys.stderr
+
+from os.path import abspath, dirname, join
+from site import addsitedir
+
+sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
+
+from django.conf import settings
+os.environ["DJANGO_SETTINGS_MODULE"] = "pinaxsite_project.settings"
+
+sys.path.insert(0, join(settings.PINAX_ROOT, "apps"))
+sys.path.insert(0, join(settings.PROJECT_ROOT, "apps"))
+
+from django.core.handlers.wsgi import WSGIHandler
+application = WSGIHandler()
View
Binary file not shown.
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+import sys
+
+from os.path import abspath, dirname, join
+
+try:
+ import pinax
+except ImportError:
+ sys.stderr.write("Error: Can't import Pinax. Make sure you have it installed or use pinax-boot.py to properly create a virtual environment.")
+ sys.exit(1)
+
+from django.conf import settings
+from django.core.management import setup_environ, execute_from_command_line
+
+try:
+ import settings as settings_mod # Assumed to be in the same directory.
+except ImportError:
+ sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
+ sys.exit(1)
+
+# setup the environment before we start accessing things in the settings.
+setup_environ(settings_mod)
+
+sys.path.insert(0, join(settings.PINAX_ROOT, "apps"))
+sys.path.insert(0, join(settings.PROJECT_ROOT, "apps"))
+
+if __name__ == "__main__":
+ execute_from_command_line()
@@ -0,0 +1,197 @@
+body {
+ text-align: left;
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
+ font-size: 16px;
+ line-height: 1em;
+ margin: 0;
+}
+
+.clear:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+
+#wrapper {
+ width: 980px;
+ margin: 30px auto;
+ position: relative;
+}
+#logo {
+ display: block;
+}
+#blog #logo {
+ height: 150px;
+}
+a {
+ text-decoration: none;
+ color: #157;
+}
+em {
+ font-weight: bold;
+ font-style: normal;
+}
+
+.grouping {
+ padding: 0 0 1em 0;
+ margin-bottom: 3em;
+}
+#blog .grouping {
+ padding: 0 0 1em 0;
+ margin-bottom: 3em;
+}
+.primary {
+ float: left;
+ width: 540px;
+ margin-left: 10px;
+}
+#blog .primary {
+ margin-top: 100px;
+ width: 650px;
+}
+.primary h2 {
+ font-size: 2em;
+ line-height: 1em;
+ margin: 0;
+ padding: 0;
+ font-weight: normal;
+}
+#blog .primary h2 {
+ margin-top: 50px;
+}
+#blog a.post-link {
+ color: #000;
+}
+#blog a.post-link:hover {
+ color: #666;
+}
+.primary p {
+ font-size: 1.25em;
+ line-height: 1.5em;
+ margin: 1em 0 0 0;
+ padding: 0;
+}
+#blog .primary p {
+ font-size: 1em;
+ line-height: 1.5em;
+ margin: 1em 0 0 0;
+ padding: 0;
+}
+#blog .primary li {
+ font-size: 1em;
+ line-height: 1.5em;
+ margin: 0.5em;
+}
+
+#blog .primary .teaser {
+ font-size: 1.1em;
+ margin: 30px 0;
+}
+#blog .primary .teaser p {
+}
+#blog .primary p.more {
+ margin: 0 2em;
+ padding: 0;
+ text-align: right;
+}
+.secondary {
+ float: left;
+ width: 380px;
+ margin-left: 40px;
+}
+#blog .secondary {
+ width: 280px;
+}
+.secondary h2 {
+ font-size: 1.5em;
+ line-height: 1em;
+ margin: .375em 0 0 0;
+ padding: 0;
+ font-weight: normal;
+}
+.secondary p {
+ font-size: .875em;
+ line-height: 24px;
+ margin: 24px 0 0 0;
+}
+.secondary a {
+}
+.secondary a:hover {
+}
+p.feed {
+ margin: 10px 0 30px;
+ line-height: 1.3em;
+}
+p.feed img {
+ float: left;
+ padding: 3px 10px 0 0;
+}
+
+.announcement {
+ margin: 10px 10px 40px;
+ padding: 0.5em 1em;
+ color: #CCC;
+ font-size: 14pt;
+ background: #333;
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+}
+
+.announcement a {
+ color: #CCC;
+}
+.announcement a:hover {
+ color: #FFF;
+}
+
+pre {
+ font-family : "Monaco", "Lucida Console", "Andale Mono", monospace;
+ font-size : 10pt;
+ padding : 5px 0;
+ color : #FFF;
+ background-color : #000;
+ overflow : auto;
+}
+
+#blog .post_footer h2 {
+ font-size: 14pt;
+ line-height: 18pt;
+ margin: 1em 0 0;
+}
+
+#blog .post_footer p {
+ margin: 0;
+ font-size: 10pt;
+ line-height: 14pt;
+}
+
+p.post_dateline .date {
+ font-size: 14pt;
+}
+
+.post_footer p.post_dateline .date {
+ font-size: 12pt;
+}
+
+p.post_dateline .author {
+}
+
+p.post_dateline a {
+}
+
+p.post_dateline a:hover {
+}
+
+.content a {
+ color: #000;
+ text-decoration: underline;
+}
+
+.content a:hover {
+ text-decoration: underline;
+}
+#posts a {
+ display: none;
+}
@@ -0,0 +1,70 @@
+.syntax .hll { background-color: #333333 }
+.syntax { color: #ffffff }
+.syntax .c { color: #008800; font-style: italic; background-color: #0f140f } /* Comment */
+.syntax .err { color: #ffffff } /* Error */
+.syntax .g { color: #ffffff } /* Generic */
+.syntax .k { color: #a44; font-weight: bold } /* Keyword */
+.syntax .l { color: #ffffff } /* Literal */
+.syntax .n { color: #ffffff } /* Name */
+.syntax .o { color: #ffffff } /* Operator */
+.syntax .x { color: #ffffff } /* Other */
+.syntax .p { color: #ffffff } /* Punctuation */
+.syntax .cm { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Multiline */
+.syntax .cp { color: #ff0007; font-weight: bold; font-style: italic; background-color: #0f140f } /* Comment.Preproc */
+.syntax .c1 { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Single */
+.syntax .cs { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Special */
+.syntax .gd { color: #ffffff } /* Generic.Deleted */
+.syntax .ge { color: #ffffff } /* Generic.Emph */
+.syntax .gr { color: #ffffff } /* Generic.Error */
+.syntax .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
+.syntax .gi { color: #ffffff } /* Generic.Inserted */
+.syntax .go { color: #444444; background-color: #222222 } /* Generic.Output */
+.syntax .gp { color: #ffffff } /* Generic.Prompt */
+.syntax .gs { color: #ffffff } /* Generic.Strong */
+.syntax .gu { color: #ffffff; font-weight: bold } /* Generic.Subheading */
+.syntax .gt { color: #ffffff } /* Generic.Traceback */
+.syntax .kc { color: #a44; font-weight: bold } /* Keyword.Constant */
+.syntax .kd { color: #a44; font-weight: bold } /* Keyword.Declaration */
+.syntax .kn { color: #a44; font-weight: bold } /* Keyword.Namespace */
+.syntax .kp { color: #a44 } /* Keyword.Pseudo */
+.syntax .kr { color: #a44; font-weight: bold } /* Keyword.Reserved */
+.syntax .kt { color: #cdcaa9; font-weight: bold } /* Keyword.Type */
+.syntax .ld { color: #ffffff } /* Literal.Date */
+.syntax .m { color: #0086f7; font-weight: bold } /* Literal.Number */
+.syntax .s { color: #4a4 } /* Literal.String */
+.syntax .na { color: #ff0086; font-weight: bold } /* Name.Attribute */
+.syntax .nb { color: #ffffff } /* Name.Builtin */
+.syntax .nc { color: #ffffff } /* Name.Class */
+.syntax .no { color: #0086d2 } /* Name.Constant */
+.syntax .nd { color: #ffffff } /* Name.Decorator */
+.syntax .ni { color: #ffffff } /* Name.Entity */
+.syntax .ne { color: #ffffff } /* Name.Exception */
+.syntax .nf { color: #ff0086; font-weight: bold } /* Name.Function */
+.syntax .nl { color: #ffffff } /* Name.Label */
+.syntax .nn { color: #ffffff } /* Name.Namespace */
+.syntax .nx { color: #ffffff } /* Name.Other */
+.syntax .py { color: #ffffff } /* Name.Property */
+.syntax .nt { color: #a44; font-weight: bold } /* Name.Tag */
+.syntax .nv { color: #a44 } /* Name.Variable */
+.syntax .ow { color: #ffffff } /* Operator.Word */
+.syntax .w { color: #888888 } /* Text.Whitespace */
+.syntax .mf { color: #0086f7; font-weight: bold } /* Literal.Number.Float */
+.syntax .mh { color: #0086f7; font-weight: bold } /* Literal.Number.Hex */
+.syntax .mi { color: #0086f7; font-weight: bold } /* Literal.Number.Integer */
+.syntax .mo { color: #0086f7; font-weight: bold } /* Literal.Number.Oct */
+.syntax .sb { color: #0086d2 } /* Literal.String.Backtick */
+.syntax .sc { color: #0086d2 } /* Literal.String.Char */
+.syntax .sd { color: #0086d2 } /* Literal.String.Doc */
+.syntax .s2 { color: #0086d2 } /* Literal.String.Double */
+.syntax .se { color: #0086d2 } /* Literal.String.Escape */
+.syntax .sh { color: #0086d2 } /* Literal.String.Heredoc */
+.syntax .si { color: #0086d2 } /* Literal.String.Interpol */
+.syntax .sx { color: #0086d2 } /* Literal.String.Other */
+.syntax .sr { color: #0086d2 } /* Literal.String.Regex */
+.syntax .s1 { color: #0086d2 } /* Literal.String.Single */
+.syntax .ss { color: #0086d2 } /* Literal.String.Symbol */
+.syntax .bp { color: #ffffff } /* Name.Builtin.Pseudo */
+.syntax .vc { color: #a44 } /* Name.Variable.Class */
+.syntax .vg { color: #a44 } /* Name.Variable.Global */
+.syntax .vi { color: #a44 } /* Name.Variable.Instance */
+.syntax .il { color: #0086f7; font-weight: bold } /* Literal.Number.Integer.Long */
@@ -0,0 +1,8 @@
+--find-links=http://pypi.pinaxproject.com
+--find-links=http://pypi2.pinaxproject.com
+
+django-atomformat==0.1.1dev
+creole==1.0.1
+
+biblion>=0.1.0-dev0
+django-staticfiles==0.2.0
Oops, something went wrong.

0 comments on commit d0adeda

Please sign in to comment.