Giter VIP home page Giter VIP logo

gazjango's Introduction

This is the source for the Daily Gazette's website.

Here's how you can set it up for dev access.

If you don't work for the Gazette, you're welcome to check out the code (obviously), but you won't have access to the database files and whatnot.

Make sure you have Python (2.5, 2.6, or 2.7), Django, MySQL, MySQLdb, and the PIL installed.

Clone the repository. The commands below assume you're in the gazjango directory (ie the one with manage.py).

Get settings_secret.py from sccs.swarthmore.edu:~aquinton/settings_secret.py (this has API keys and such).

Link the imagekit and registration libraries somewhere into your $PYTHONPATH, like with ln -s ../django-registration/registration .; ln -s ../django-imagekit/imagekit ..

Set up a MySQL database for the project (mysqladmin -u root create gazette).

Create a settings.py file with at least these contents:

from settings_dev import *

DATABASES = {
    'default': {
        'ENGINE':   'django.db.backends.mysql',
        'NAME':     'gazette',
        'USER':     'root',
        'PASSWORD': '',
    }
}

Get a DB backup from sccs.swarthmore.edu:~aquinton/db-backups. It'll be something like gazjango_2010-08-22_07-00.sql.bz2.

Put the DB file into your local repository: bzcat gazjango_2010-08-22_07-00.sql.bz2 | ./manage.py dbshell

Get all of the uploaded media files off the website: ./sync_uploads.sh

Update stuff for the community feed: python ./update.py

Compile the CSS templates into real stylesheets: ./compile_css

Now you should be able to do ./manage.py runserver, ./manage.py shell, etc.

gazjango's People

Contributors

djsutherland avatar dougw-zz avatar dg-administrator 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.