Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python HTML CSS JavaScript Shell
Branch: master

Merge pull request #22 from smajda/smajda/django18

Django 1.8 and Ansible playbook
latest commit 417b05acf8
@lgw4 lgw4 authored
Failed to load latest commit information.
ansible
docs
pythonkc_site
.gitignore
AUTHORS Switched to "official" debian/jessie64 box.
README.markdown Merge pull request #22 from smajda/smajda/django18
Vagrantfile
provision.sh Initial ansible playbook.

README.markdown

PYTHONKC.COM WEBSITE

Join the chat at https://gitter.im/pythonkc/pythonkc.com

Files for the PythonKC.com website.

Development Quickstart Option 1 (vagrant)

First, copy pythonkc_site/.env.example to pythonkc_site/.env and add your own meetup api key and a unique django secret key (.env will be ignored by git)

Then you have to install some vagrant plugins and build your vagrant box:

vagrant plugin install vagrant-hostmanager
vagrant plugin install vagrant-hostsupdater
vagrant up

vagrant up will run provision.sh which runs ansible on the VM.

We've done this so you don't have to install ansible on your local machine.

If you'd prefer you can always ssh in and run/re-run the provisioner manually (the output is a little nicer this way):

vagrant ssh
cd ~/vagrant/ansible
ansible-playbook vagrant.yml

To run the Django development server:

vagrant ssh
django-admin runserver 192.168.100.101:8000

Now go to http://192.168.100.101:8000 in your browser. You can edit the files on your local machine and the server should reload automatically.

For now, this is a Python 2 project. If you want to start using Python 3 and help us fix our problems, set Ansible's python_version variable to 3 and it will build the virtualenv using Python 3:

ansible-playbook vagrant.yml -e python_version=3

Development Quickstart Option 2 (virtualenv)

mkvirtualenv pythonkc
git clone git@github.com:pythonkc/pythonkc.com.git
cd pythonkc.com/pythonkc_site
pip install -r requirements/project.txt
python manage.py runserver

Profit! $$$

More Detailed Instructions

See: docs/local_development

Something went wrong with that request. Please try again.