Giter VIP home page Giter VIP logo

python-code-test's Introduction

Ostmodern Python Code Test

The goal of this exercise is to test that you know your way around the command line and Django tools. Whilst there is some simple HTML to write, you won't be expected to style the page.

The idea is to do some prototype work on a site that allows users to add their comments & reactions to an episode of a television program. They'll be able to upload an image, or write a tweet, which will be stored locally in the application. Each episode will have a stream of reactions, showing a list of items with their details.

A Django project has been created and some initial data models have been created.

Getting started

  • You'll need to install VirtualBox and Vagrant on your development machine
  • Get the code from https://github.com/ostmodern/python-code-test
  • Do all your work in your own develop branch
  • Once you have downloaded the code the following commands will get the site up and running
vagrant up
vagrant ssh
fab migrate
fab web

Tasks

  • Update the models so that Episodes can have PhotoReactions or TweetReactions
  • Add some sample data using the Django admin interface and save it as fixtures
  • Make it possible for an admin to moderate the site by deleting photos/tweets (and un­deleting them) using the Django admin interace
  • Make a page that displays the reactions for a particular episode in chronological order at /episodes/:id/
  • The stream should only display items that are not deleted
  • Make a fabric command that clears the database and loads your sample data
  • Create a release branch in your repo and send us the link

python-code-test's People

Contributors

tonybajan avatar

Watchers

James Cloos 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.