https://github.com/timtech4u/django2-polls
An implementation of the Polls App using Django 2.0
https://github.com/timtech4u/django2-polls
Last synced: 12 months ago
JSON representation
An implementation of the Polls App using Django 2.0
- Host: GitHub
- URL: https://github.com/timtech4u/django2-polls
- Owner: Timtech4u
- Created: 2017-12-02T22:32:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T08:09:56.000Z (over 8 years ago)
- Last Synced: 2025-02-28T02:04:06.985Z (over 1 year ago)
- Language: Python
- Size: 288 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
=====
Polls
=====
An implementation of the Polls App using Django 2.0
`pip install django==2.0`
Updated Features
----------------
1. Simplified URL routing syntax was implemented, using:
`` instead of `(?P[0-9]{4})`
Visit: https://docs.djangoproject.com/en/2.0/releases/2.0/#simplified-url-routing-syntax
2. Select2 implementation:

The Select2 input looks similar to the default input but comes with a search feature that loads the options asynchronously. This is faster and more user-friendly if the related model has many instances.
Visit: https://docs.djangoproject.com/en/2.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.autocomplete_fields
4. Mobile-friendly contrib.admin
Read the full Django2.0 Release Note here: https://docs.djangoproject.com/en/2.0/releases/2.0
# Some more Updates (WIP):
- on_delete is a required argument in Django 2.0. In older versions it defaults to CASCADE.
- `django.core.urlresolvers` module is removed in favor of its new location, `django.urls`.