Skip to content

pythonghana/PythonGhana

Repository files navigation

This is the source code for the http://pythonghana.org/ website.

Running the site locally

Requirments

Installation

  • Follow the guide here on how to clone or fork a repo

  • Follow the guide here on how to create virtualenv

  • Create a virtualenv (example myvenv) and activate it (see Code below).

    source virtualenvwrapper.sh
    
    mkvirtualenv myvenv --python=/usr/bin/python3.5
    
    (myvenv) $ pip install -r requirements.txt
    
    (myvenv) $ python manage.py migrate
    
    (myvenv) $ python manage.py makemigrations
    
    (myvenv) $ python manage.py runserver
    
  • Copy the IP address provided once your server has completed building the site. (It will say something like >> Serving at 127.0.0.1....).

  • Open the address in the browser

  • Note: It is important that when you create your virtualenv, do not create it in the same folder as the code you downloaded.

Contributing

Read our Contributing Guide on how to contribute to the project.