Code Monkey home page Code Monkey logo

abtech.org's Introduction

AB Tech Website

The website for the Carnegie Mellon Activities Board Technical Committee

Django Captcha App from: https://github.com/2buntu/2buntu-blog

Issues

We all have them.

Development

Prerequisites

Setup

Clone this repo into your workspace. I strongly recommend using a virtual environment when developing this and any other Python project.

$ cd abtech.org
$ python3 -m venv .
$ source bin/activate
$ pip3 install -r requirements.txt

Running

$ ./manage.py runserver

Contribute

Just send a pull request!

Production

On a clean install of Debian:

Install Vim

apt-get install vim
update-alternatives --config editor
#Uncomment syntax on in /etc/vim/vimrc

Install git

sudo apt-get install git
git config --global user.name "Sam Abtek"
git config --global user.email [email protected]
git config --global color.ui auto

Add ssh-key https://help.github.com/articles/generating-ssh-keys/

Get repo

git clone [email protected]:ABTech/abtech.org.git

Install Python3 and Pip3

sudo apt-get install python3
sudo apt-get install python3-pip
sudo pip-3.2 install -r requirements.txt
sudo pip-3.2 install pathlib # Not necessary with python 3.4

Run dev server to check work so far

./manage.py runserver 0.0.0.0:8000

Configure smtp server on port 25

:)

Enable Apache mod_wsgi

sudo apt-get install libapache2-mod-wsgi-py3
make wsgi.py executable
chmod u+x abtech/wsgi.py

Create abtech/settings/secret.py with the necessary secret keys that are in example_secret.py

Edit abtech/settings/production.py and add your host as a string to ALLOWED_HOSTS

Edit existing apache config or add site file based on django-example.conf Site configuration will need to be enabled

cp django-example.conf /etc/apache2/sites-available/django.conf
sudo a2dissite default
sudo a2ensite django.conf

To reload code changes on the site live:

touch abtech/wsgi.py

abtech.org's People

Contributors

kicohen avatar ihartwig avatar christinelxu avatar timparenti avatar robsiemb avatar widdowson avatar agotsis avatar emnewman avatar nharper avatar bezi avatar

Watchers

James Cloos avatar Jake Weiss 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.