Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-chess-0.1.3.tar.bz2 (95.3 kB view details)

Uploaded Source

File details

Details for the file django-chess-0.1.3.tar.bz2.

File metadata

  • Download URL: django-chess-0.1.3.tar.bz2
  • Upload date:
  • Size: 95.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-chess-0.1.3.tar.bz2
Algorithm Hash digest
SHA256 d8a8910030d681adb7434fad4a5f3869e78f3be9b13e8235d4c61b10b436af5c
MD5 47bbac4825fd959a7942968fc36894ea
BLAKE2b-256 f111747dd03f66edafce5bc3c013a289b4bfe29702765eeed90469389a38dab8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page