Giter Site home page Giter Site logo

approval_polls's Introduction

This is a django app, so you'll already need a working django project to put it in. If you do not already have (and do not want to create) a django project to contain this, check out approval_frame instead. If you want to create your own, you may want to try reading at least the first chapter of this tutorial:

https://docs.djangoproject.com/en/1.6/intro/tutorial01/

Or here's the "quick" version:

  • Install python (written using 2.7, but python 3 might(?) work)

  • Install django (written using 1.6, try DEV if you're feeling gutsy)

  • Create a django project (I called mine approval_frame but use whatever)

    • django-admin.py startproject approval_frame
  • Setup your project's database (I used sqlite3 (included with django) for developing)

    • If you're fine with sqlite3, you don't have to change anything
    • Otherwise, edit the file 'settings.py' in the project subdirectory
    • Find the secton for DATABASES
    • Set the engine and name for whatever you're using; the comments are helpful
  • Check out the approval_polls app to the appropriate place

    • Creating a django project will create a directory with the name you choose, as well as a subdirectroy within it with that same name. Check approval_polls out into the outer directory, so that it's a sibling of the inner directory.
  • Tell django about approval polls (as you would for any django app)

    • Edit the file 'settings.py' in the project subdirectory
    • Find the section for INSTALLED_APPS, and add 'approval_polls' to the list
    • Edit the project's url.py file
    • Find urlpatterns and add 'url(r'^approval_polls/', include('approval_polls.urls', namespace="approval_polls")) to the patterns list.
    • Create the database tables by running:
      • python manage.py syncdb
  • Start your server

    • python manage.py runserver
  • See how it looks

    • In your favorite browser, open approval_polls/embedExample.html

approval_polls's People

Contributors

mudlock avatar

Watchers

Thomas Adriaan Hellinger avatar James Cloos 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.