Browse Source

added numpy to installer. Also updated random number to start at 1

Patrick Falls 12 years ago
parent
commit
5c5b39da35
2 changed files with 2 additions and 1 deletions
  1. 1 1
      django/hello/world/views.py
  2. 1 0
      installer.py

+ 1 - 1
django/hello/world/views.py

@@ -36,7 +36,7 @@ def db(request):
   #r = nprnd.randint
   # but wait!  there's more!  if we're calling a function over and over with the same parameters, 
   # we can use even more function magic.
-  rp = partial(nprnd.randint, 10000)
+  rp = partial(nprnd.randint, 1, 10000)
   # now we're ready to write our awesome query iterator thingy
   # first of all, we know the id's correspond to the random number we're picking, so we can create
   # dictionaries on the fly instead of serializing later

+ 1 - 0
installer.py

@@ -56,6 +56,7 @@ class Installer:
     self.__run_command("sudo python setup.py install", cwd="psycopg2-2.5")
     self.__run_command("git clone https://github.com/iiilx/django-psycopg2-pool.git")
     self.__run_command("sudo python setup.py install", cwd="django-psycopg2-pool")
+    self.__run_command("sudo pip install --upgrade numpy==1.7.1")
 
     #
     # nodejs