Code Monkey home page Code Monkey logo

pyconference's Introduction

PyConference

based on

Development Environment Setup

You will need the following:

Start by creating a python virtual environment:

$ npm install
$ mkvirtualenv pycon --python=/usr/local/bin/python3
(pycon) $

The (pycon) prefix indicates that a virtual environment called "pycon" is being used. Next, check that you have the correct version of Python:

(pycon) $ python --version
Python 3.4.3
(pycon) $ pip --version
pip 7.1.1 from /Users/..../site-packages (python 3.4)

Install the project requirements:

(pycon) $ pip install --upgrade -r requirements.txt

Create the database:

(pycon) $ python manage.py migrate

check pycon/settings/localsettings.py

Run the project:

(pycon) $ python manage.py runserver

Less Styles Compilation

Gulp is used to watch and autorun less compilation:

$ gulp

Translation Files

Translation files are stored in /locale. To create these files, you must have gettext installed.

$ django-admin makemessages -l fr

To update translation files from the code for all languages:

$ django-admin makemessages -a

To edit translation files, open the .po file for the correct language and edit the msgstr lines.

After creating or updating translation files, you must compile them into .mo files:

$ django-admin compilemessages

Deploying

Setup

Ensure the following is in your ~/.ssh/config:

Host pycon-ca
    HostName 72.51.30.16
    User deploy

Install less:

$ sudo -i npm install -g less

Obtain a copy of private.yml and put it in deploy/vars.

Deploying to Stage or Prod

Go to the deploy directory and run:

$ ansible-playbook -i inventory/prod site.yml

Building the Static Cache on the Server

$ cd /data/web/2015.pycon.ca/pyconca/
$ . ../activate
$ python manage.py staticsitegen

How to create the schedule

$ Add the date for the conference
$ Add the room

$ Add the slot $ Add the talks $ Set the talks inside the slot $ Set the slot room

pyconference's People

Contributors

quaspas avatar myles avatar pdmccormick avatar frdeso avatar onebit0fme avatar

Watchers

James Cloos avatar Christian Barra avatar

pyconference's Issues

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.