Commits

Garth Johnson committed 0fdc8bd

Added old doc stuff

  • Participants
  • Parent commits 8251b6a

Comments (0)

Files changed (2)

 
 Please see [[https://bitbucket.org/oddotterco/django-boto/wiki/Wiki-Help|Wiki-Help]]
 
-Get the installer here: [[https://bitbucket.org/oddotterco/django-boto/wiki/Tools/soupup|SoupUp]]
+Get the installer here: [[https://bitbucket.org/oddotterco/django-boto/wiki/Tools/soupup|SoupUp]]
+
+= Old stuff =
+
+Everything below here is old documentation but worth keeping around until the dust settles and we have time to re-integrate it all.
+
+# You now have access to the soupmix project commands.  Try something
+# like the following:
+#
+#> source ~/django/python/bin/activate
+#> soupstart mix ~/django/zzztest
+#
+# This will create a fully ready Django site, complete with CMS, Blog
+# and much much more in ~/django/zzztest
+#
+# If the setup times out during the modules install, you can always just
+# re-run this command with the option 'quick', to pick up where
+# it died.
+#
+# To publish your site to AWS, create a free account at
+# http://aws.amazon.com and then execute the following commands in your
+# project directory:
+#
+#> python manage.py aws create
+#> python manage.py aws apache
+#
+# Just answer the questions and it should create a free-tier server instance
+# and upload your site!
+# Do NOT forget to add the 'WSGIPythonHome' parameter in your Apache
+# configuration like so:
+#
+# WSGIPythonHome /home/ubuntu/django/python
+#
+########################## Production Options ##########################
+# At some point you may want to use more pages and data elements than
+# SQLite can support.  When that happens (or if you expect that from
+# the beginning) just make sure you install something like MySQL and
+# chage your settings.py accordingly.
+# First, install MySQL by adding the 'mysql' option th this command's
+# parameters.  Next you may want to tighten security a bit better for
+# production boxes.  You can re-run it again later if you need to
+# change some of the settings.  Use this command to perform these actions:
+#
+#> sudo mysql_secure_installation
+#
+#
+# Also, you may need the MySQL library in your virtualenv, so (or make
+# sure that it is in your project requirements.txt file when you run revirt):
+#
+#> pip install MySQL-python
+#
+# And don't forget to create the database and user in MySQL.  Example:
+#
+#> mysql -u root -p
+#mysql> CREATE DATABASE django_db;
+#mysql> GRANT ALL ON django_db.* TO 'djangouser'@'localhost' IDENTIFIED BY 'mypassword';
+#mysql> quit
+
+
     mkdir  ~/django/cache
 fi
 
-# Activate your new Python environment.
-# You will also want to do this before you run your development server.
-source ~/django/python/bin/activate
-
+# Get the Project template file with embedded installer
+###TODO: if template ($2) is not specified - prompt for it with suggestion of the generic one
+TEMPLATE_ARCHIVE=output=${2-"https://bitbucket.org/oddotterco/django-soupmix/get/master.zip"}
+tar zxv < <(wget -q -O - $TEMPLATE_ARCHIVE)
 
 
-### STEPS
-# if template ($2) is not specified - prompt for it with suggestion
-
-pip install --upgrade --download-cache=~/django/cache --source=~/django/cache django
-django-admin.py startproject $1
-wget $2  | tar x  #https://bitbucket.org/oddotterco/django-soupmix/get/master.zip
-# download template.zip from the specified location ($2) into project ($1)
-# run installer script from template inside the project
-
 
 
 
 
+# Activate your new Python environment.
+# You will also want to do this before you run your development server.
+source ~/django/python/bin/activate
 
+# select and install django
+pip install --upgrade --download-cache=~/django/cache --source=~/django/cache django
 
+# create the base project structure
+django-admin.py startproject $1
 
 # Download a generic requirements file if there is not one in the current directory
 if [ ! -r "requirements.txt" ]
     pip install --upgrade --download-cache=~/django/cache --source=~/django/cache "distribute>=0.6.30"
     pip install --upgrade --download-cache=~/django/cache --source=~/django/cache "MySQL-python==1.2.3"
 fi
-
-# You now have access to the soupmix project commands.  Try something
-# like the following:
-#
-#> source ~/django/python/bin/activate
-#> soupstart mix ~/django/zzztest
-#
-# This will create a fully ready Django site, complete with CMS, Blog
-# and much much more in ~/django/zzztest
-#
-# If the setup times out during the modules install, you can always just
-# re-run this command with the option 'quick', to pick up where
-# it died.
-#
-# To publish your site to AWS, create a free account at
-# http://aws.amazon.com and then execute the following commands in your
-# project directory:
-#
-#> python manage.py aws create
-#> python manage.py aws apache
-#
-# Just answer the questions and it should create a free-tier server instance
-# and upload your site!
-# Do NOT forget to add the 'WSGIPythonHome' parameter in your Apache
-# configuration like so:
-#
-# WSGIPythonHome /home/ubuntu/django/python
-#
-########################## Production Options ##########################
-# At some point you may want to use more pages and data elements than
-# SQLite can support.  When that happens (or if you expect that from
-# the beginning) just make sure you install something like MySQL and
-# chage your settings.py accordingly.
-# First, install MySQL by adding the 'mysql' option th this command's
-# parameters.  Next you may want to tighten security a bit better for
-# production boxes.  You can re-run it again later if you need to
-# change some of the settings.  Use this command to perform these actions:
-#
-#> sudo mysql_secure_installation
-#
-#
-# Also, you may need the MySQL library in your virtualenv, so (or make
-# sure that it is in your project requirements.txt file when you run revirt):
-#
-#> pip install MySQL-python
-#
-# And don't forget to create the database and user in MySQL.  Example:
-#
-#> mysql -u root -p
-#mysql> CREATE DATABASE django_db;
-#mysql> GRANT ALL ON django_db.* TO 'djangouser'@'localhost' IDENTIFIED BY 'mypassword';
-#mysql> quit
-
-