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
------------
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 hashes)