Giter VIP home page Giter VIP logo

pycon's Introduction

PyCon US website by Eldarion

This repository stores the PyCon US website developed by Eldarion. This project is open source and the license can be found in LICENSE.

Installation

To get setup with pycon code you must have the follow installed:

  • Python 2.5+
  • virtualenv 1.4.7+
  • C compiler (for PIL)

Setting up environment

Create a virtual environment where pycon dependencies will live:

$ virtualenv --no-site-packages pycon
$ source pycon/bin/activate
(pycon)$

Install pycon project dependencies:

(pycon)$ pip install -r requirements/project.txt

If you are setting up a production environment use requirements/production.txt instead.

Setting up the database

This will vary for production and development. By default the project is set up to run on a SQLite database. If you are setting up a production database see the Configuration section below for where to place settings and get the database running. Now you can run:

(pycon)$ python manage.py syncdb
(pycon)$ python manage.py loaddata fixtures/initial_{wakawaka,boxes}.json

The wakawaka fixtures will require a user to exist before being ran. During syncdb it is worth it to make a superuser account which can then be used for making other users staff/superusers after they sign up.

Running a web server

In development you should run:

(pycon)$ python manage.py runserver

@@@ TODO: not sure what will be used for deployment yet. This project comes with a deploy/pinax.wsgi which can be used with mod_wsgi and showcase how to setup the WSGI environment if another mechanism is chosen.

Sending mail/notification

All mail and some notification are queued in the database to be sent later. In a future version of Pinax this will made much more configurable. It is best to setup a cron job to run these two commands every minute:

(pycon)$ python manage.py send_mail
(pycon)$ python manage.py emit_notices

And this one every 10โ€“20 minutes:

(pycon)$ python manage.py retry_deferred

More information can be found in Pinax deployment documentation.

Configuration

You can create a local_settings.py file alongside settings.py to override any setting that may be environment/instance specific. This file is ignored in .gitignore.

Issues

If you find an issue with this code base you are welcome to e-mail us at [email protected].

pycon's People

Contributors

alex avatar brosner avatar carljm avatar gsiegman avatar jezdez avatar jtauber avatar lukeman avatar mitsuhiko avatar paltman avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.