jod35 / swautocheckin

Django app to automatically check users into Southwest flights

Home Page:https://swautocheckin.dvdhpkns.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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='username@gmail.com'

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

About

Django app to automatically check users into Southwest flights

https://swautocheckin.dvdhpkns.com


Languages

Language:Python 75.6%Language:HTML 13.6%Language:CSS 9.8%Language:JavaScript 0.9%