UzbPlaces is a simple Django app to integrate places in Uzbekistan. For each province, there are regions.
Detailed documentation is in the "docs" directory.
-
Add "uzbplaces" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'uzbplaces', ]
-
Add GEOPOSITION_GOOGLE_MAPS_API_KEY to your settings.py
-
Add following to settings.py
MODELTRANSLATION_LANGUAGES = ('en', 'ru', 'uz') MODELTRANSLATION_ADMIN_SCRIPTS = ( 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js', 'modeltranslation/js/tabbed_translation_fields.js', )
MODELTRANSLATION_ADMIN_STYLE = { 'screen': ('modeltranslation/css/tabbed_translation_fields.css',), }
-
Include the polls URLconf in your project urls.py like this::
url(r'^uzbplaces/', include('uzbplaces.urls')),
-
Run
python manage.py migrate
to create the polls models. -
Start the development server and visit http://127.0.0.1:8000/admin/ (you'll need the Admin app enabled).
-
Visit http://127.0.0.1:8000/uzbplaces/ to use.