GitXplorerGitXplorer
j

wordconfuse

public
17 stars
4 forks
1 issues

Commits

List of commits on branch master.
Unverified
05e198c958a18f2558aa0585b9f9d5da0d8f39d8

fixed some centering issues

jjarv committed 13 years ago
Unverified
202c088b2a0946433b0d12a2d902b19d350a9a31

fixtures updated

jjarv committed 13 years ago
Unverified
4f2df423a9063efe43a9d8f82be31f48447ffc54

fixed some typos in the wordlist

jjarv committed 13 years ago
Unverified
2854e57b6a99ebb2a08f8837598083c165ef784e

design changes

jjarv committed 13 years ago
Unverified
bc363c60fdde60567cb7a73edb8ea0871a7b4132

increase font size different colors, i give up

jjarv committed 13 years ago
Unverified
c5aca7ec8becf22a93e8e527f712d47b0971335e

removed text shadow

jjarv committed 13 years ago

README

The README file for this repository.

Wordconfusion A tutorial project for DJango 1.3 and JQuery

This is a Django app that can be cloned into a Django 1.3 project.

To start from scratch:

  1. Make sure Django 1.3 is installed
  2. django-admin.py startproject
  3. cd
  4. git clone git@github.com:jarv/wordconfuse.git

After you make your local changes to settings.py and urls.py (see below) do the following to launch the local webserver:

$ python manage.py syncdb $ python manage.py collectstatic $ python manage.py runserver

Syncdb will take awhile to run since it is creating a large table with all the words for the game.

For more info see the detailed tutorial @ http://jarv.org

Django Setup notes

Database:

You will need to let Django know about your database,
if you are running a local instance the simplest thing
to do is use sqlite.

Staticfiles:

You will need to let Django know where you want to put
static files.  Make sure STATIC_ROOT and STATIC_URL are
set in settings.py


URLs:

Here is the setup for URL patterns:


from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView

...

urlpatterns += patterns('wordconfuse.views',
    (r'^$', TemplateView.as_view(template_name="index.html")),
    url(r'^get_words$', 'get_words', name='get_words'),
    url(r'^gameover$', 'gameover', name='gameover'),
    url(r'^new_hs$', 'new_hs', name='new_hs'),
    url(r'^hs$', 'hs', name='hs'),
    )
urlpatterns += staticfiles_urlpatterns()