Skip to content

sbadame/polling

Repository files navigation

How to install this project:

  1. Clone this project from github into your favorite directory.

  2. cd into "polling" (the newly cloned folder)

  3. in your shell run: virtualenv -p /usr/bin/python2.7 venv --distribute

  4. in your shell run: source venv/bin/activate

  5. in your shell run: pip install -r requirements.txt

  6. Create a file named local_settings.py fill in the DATABASES field for your django install.

    #Here is a sample local_settings.py
    #No need for imports or anything, our own settings.py will bring it all in for you.
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql',
            'NAME': 'name',
            'USER': 'user',
            'PASSWORD': 'password',
            'HOST': '',
            'PORT': '',
        }
    }
  7. Phew, you're good to go! Run: ./manage.py runserver 0.0.0.0:XXXX to confirm

Working with virtualenv

  • Before you start working on this project you should always run: source venv/bin/activate to active your virtualenv to have the correct libraries listed in requirements.txt
  • To stop working with env and get your normal prompt back just simply run: deactivate from any directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published