skip to navigation
skip to content

Not Logged In

django-chess 0.1.3

Package Documentation

django-chess
------------
1. django-admin.py startproject project
2. Configure your database in your settings file:
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': 'project.db',
        }
    }

3. Install the package to your python site-packages folder or just use it as a module in your project.
4. Add 'chess' to INSTALLED_APPS in your settings file.
5. Add 'django.contrib.admin' to INSTALLED_APPS in your settings file.
6. In settings.py remember to configure LOGIN_URL, LOGIN_URL = '/login'
7. python manage.py syncdb --settings=project.settings
8. In your projects urls add the following code:
    from django.contrib import admin
    admin.autodiscover()

    from chess import urls as chess_urls

    urlpatterns = patterns('',
        ...
        url(r'^chess/', include(chess_urls)),
        url(r'^admin/', include(admin.site.urls)),
        ...
    )

9. python manage.py runserver --settings=project.settings
10. http://127.0.0.1:8000/chess/login, login first
11. In another terminal, python manage.py runserver 0.0.0.0:8001 --settings=project.settings
12. http://127.0.0.1:8001/chess/login, login with second user
13. Login with the 2 separate users per open browser.
14. Once logged in you'll see a chess board in both browsers.
15. On the right you'll see the username of available users you van play chess against.
16. In browser1 click on the user, then switch to browser2, an invite will show on the footer.
17. Accept it. The person who accepts the invitation may move first.
18. Drag the white piece into position and you'll see in browser1 the piece moved. After this you can move the selected black piece in browser1, then switch browsers again.
19. Alter between moves and browsers while playing.
20. Django 1.5.1 compatible
 
File Type Py Version Uploaded on Size
django-chess-0.1.3.tar.bz2 (md5) Source 2013-09-12 93KB
  • Downloads (All Versions):
  • 18 downloads in the last day
  • 222 downloads in the last week
  • 531 downloads in the last month