Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

AHGL - After Hours Gaming League

This is the source for http://afterhoursgaming.tv/

Platform

This site is built upon the following basic platform:

  • python
  • django
  • postgres - relational database
  • redis - for caching
  • celery - for task queue
  • south - for database migrations

Setup

To setup an environment to test locally, you should first install Python (2.7), pip, and virtualenv as well as PostgreSQL (although you can use SQLite if necessary).

Pip is the python package management tool that will allow you to install all the other python libraries that are used quite easily. Virtualenv allows you to have segregated python installs that have different libraries.

Create a virtual env:

$ virtualenv --distribute ENV

Start that environment:

$ ENV/Scripts/activate

Now install the python libraries using pip:

$ pip install --requirement=ahgl/requirements/project.txt

You'll want to create a local_settings.py file to specify your settings based on your local setup:

$ cp ahgl/local_settings.py{.dist,}

Then edit it to verify/change any of the options.

If all of that worked, you should be able to initialize the database by running from the ahgl folder:

$ ./manage.py syncdb
$ ./manage.py migrate

Now that everything is setup, you can run the local service:

$ ./manage.py runserver

Now visit localhost and you should see a web page appear!

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.