Git Product home page Git Product logo

osqa's Introduction

This is a fork of the read-only SVN clone of OSQA for improvements and bug fixes. For details of the improvements, see the following posts on OSQA meta:

This fork also significantly improves performance by addressing a template parsing overhead problem. I also strongly recommend using pgpool2 for production environments:

I'm happy to accept pull requests and if there's demand, I'd consider making this a maintained, legitimate fork of OSQA. Development/maintenance appears to have slowed significantly.

Quick Start

Assuming an existing Python and PostgreSQL installation (Mac OS/brew in my case).

You'll need to install the following:

pip install Django==1.3.7
pip install Markdown==2.4.1
pip install html5lib
pip install django-endless-pagination
pip install psycopg2

And create the database for OSQA:

createuser -P osqa
psql template1
CREATE DATABASE osqa OWNER osqa;

Copy settings_local.py.dist to settings_local.py. Update the database settings:

DATABASES = {
    'default': {
        'ENGINE': 'postgresql_psycopg2',
        'NAME': 'osqa',
        'USER': 'osqa',
        'PASSWORD': 'osqa',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

And the application URL:

APP_URL = 'http://localhost'

Create the schema and start a development server:

python manage.py syncdb
python manage.py runserver

Finally, access OSQA for the first time and register an account. That account will be granted administrator privileges.

osqa's People

Contributors

cdman avatar danielthomas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

osqa's Issues

Look at pjax, endless pagination

PJAX looks slick and template refactoring to include it wouldn't be difficult. I want to look at Endless Pagination first though - infinite question display being the goal.

Add interesting tab to question pages

Include only questions with tags from the interesting tags list. There's no tag linking for relationships, so that's something that might be useful too.

Missing django module in master?

When I try to start a development server from the current master (7d7be63) with python manage.py runserver I get the following error: "Error: No module named endless_pagination". I assume that this is because the line "endless_pagination" in settings.py. However I can't find such a directory or file in the repository (not in on the - now closed - endless-pagination-pjax branch).

What am I missing?

Style improvements

  • Remove maximum width restriction from question text and stats pages
  • Add magnifying glass icon instead of 'search' text
  • Try out gradients to buttons
  • Fix sort tabs, they're ugly. Also insufficient vertical spacing
  • Comment flyout is a little off, look at that
  • Fix pager style, boxes are ugly

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.