If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

Change :
- Path with your Own Path

  1. Open Command Prompt (Start > Accessories > Command Prompt)

  2. Download and Install Firefox
    powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download-installer.cdn.mozilla.net/pub/firefox/releases/26.0/win32/en-US/Firefox%20Setup%20Stub%2026.0.exe', 'C:\Firefox Setup Stub 26.0.exe')"
    "C:\Firefox Setup Stub 26.0.exe"

  3. Download and Install 7 Zip for Extract Web2py Source
    powershell -Command "(New-Object Net.WebClient).DownloadFile('http://nchc.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7z920.msi', 'C:\7z920.msi')"
    C:\7z920.msi /quiet /passive

  4. Download and Install Python Windows binary
    powershell -Command "(New-Object Net.WebClient).DownloadFile('http://www.python.org/ftp/python/2.7.6/python-2.7.6.msi', 'C:\python-2.7.6.msi')"
    C:\python-2.7.6.msi /quiet /passive

  5. Download and Install Graphviz
    powershell -Command "(New-Object Net.WebClient).DownloadFile('http://www.graphviz.org/pub/graphviz/stable/windows/graphviz-2.36.msi', 'C:\graphviz-2.36.msi')"
    C:\graphviz-2.36.msi /quiet /passive

  6. Download and Install OpenSSL
    powershell -Command "(New-Object Net.WebClient).DownloadFile('http://slproweb.com/download/Win32OpenSSL_Light-1_0_1f.exe', 'C:\Win32OpenSSL_Light-1_0_1f.exe')"
    "C:\Win32OpenSSL_Light-1_0_1f.exe"

  7. Download Web2py Source Code
    powershell -Command "(New-Object Net.WebClient).DownloadFile('http://www.web2py.com/examples/static/web2py_src.zip', 'C:\web2py_src.zip')"

  8. Extract Downloaded Web2py Source Code
    "C:\Program Files\7-Zip\7z" x C:\web2py_src.zip -oC:\ -r

  9. Set Path Variables
    setx Path "%PATH%;C:\Python27\Scripts;C:\Python27\;C:\Program Files\Graphviz2.36\bin"

  10. Create Certificate
    cd "C:\OpenSSL-Win32\bin"
    openssl req -config openssl.cfg -new -out C:\web2py\server.csr -keyout C:\web2py\server.pem
    openssl rsa -in C:\web2py\server.pem -out C:\web2py\server.key
    openssl x509 -in C:\web2py\server.csr -out C:\web2py\server.crt -req -signkey C:\web2py\server.key -days 365

  11. Copy web2py parameters_8000.py into parameters_80.py and parameters_443.py
    copy C:\web2py\parameters_8000.py C:\web2py\parameters_80.py
    copy C:\web2py\parameters_8000.py C:\web2py\parameters_443.py

  12. Start Web2py
    python C:\web2py\web2py.py -c server.crt -k server.key --interfaces=0.0.0.0:80;0.0.0.0:443:server.key:server.crt -p 443

  13. Open your Browser and go to
    "C:\Program Files\Mozilla Firefox\firefox.exe" http://localhost/welcome/default/index
    "C:\Program Files\Mozilla Firefox\firefox.exe" https://localhost/welcome/default/index

 

if you want pygraphviz library

get the pygraphviz in here
http://www.lfd.uci.edu/~gohlke/pythonlibs/tpxjckqh/pygraphviz-1.2.win32-py2.7.exe
and then install it

Related slices

Comments (0)


Hosting graciously provided by:
Python Anywhere