Giter Club home page Giter Club logo

swautocheckin's Introduction

SW Auto-Checkin

Automatically checkin to southwest flights 24 hours prior to flight time and get an A Group boarding pass.

Setup

Create a virtualenv

virtualenv venv
source venv/bin/activate

Install requirements

pip install -r requirements.txt

Install redis

brew install redis

Start redis

# You can also configure launchd to start redis on login
redis-server /usr/local/etc/redis.conf 

Sync DB

./manage.py migrate 

Add local host to sites

python manage.py shell

# add a new site to sites - the ID of this should match the SITES value in settings
from django.contrib.sites.models import Site
new_site = Site.objects.create(domain='localhost:8000', name='localhost')

Gmail is used to send emails when things go wrong. To make this work you must add your gmail username and password to your path

export GMAIL_PASSWORD='my_pass'
export GMAIL_USER='[email protected]'

Running

Run the Django server

./manage.py runserver

Start Celery

celery -A swautocheckin.tasks worker --loglevel=info

Running with Foreman

Alternatively, you can start both the server and Celery using foreman

foreman start -p 8000

swautocheckin's People

Contributors

dvdhpkns avatar

Stargazers

 avatar  avatar

Watchers

 avatar

swautocheckin's Issues

requirements.txt broken

Downloading/unpacking wsgiref (from -r requirements.txt (line 14))
Downloading wsgiref-0.1.2.zip
Running setup.py (path:/tmp/pip-build-664mx38c/wsgiref/setup.py) egg_info for package wsgiref
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip-build-664mx38c/wsgiref/setup.py", line 5, in
import ez_setup
File "/tmp/pip-build-664mx38c/wsgiref/ez_setup/init.py", line 170
print "Setuptools version",version,"or greater has been installed."
^
SyntaxError: Missing parentheses in call to 'print'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip-build-664mx38c/wsgiref/setup.py", line 5, in

import ez_setup

File "/tmp/pip-build-664mx38c/wsgiref/ez_setup/init.py", line 170

print "Setuptools version",version,"or greater has been installed."

                        ^

SyntaxError: Missing parentheses in call to 'print'

Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-664mx38c/wsgiref
Storing debug log for failure in /home/ubuntu/.pip/pip.log

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.