Countries States Cities models for Django
Project description
.. role:: python(code) :language: python
######################################## django-countries-states-cities ########################################
Usage
- Installation ===============
The preferred installation method is directly from pypi:
.. code:: console
pip install -U django-countries-states-cities
.. _readme-quickstart:
-
Quickstart =============
-
In
settings.py
:
.. code:: python
INSTALLED_APPS = [
'modeltranslation',
'django.contrib.admin',
...
'countries_states_cities'
]
def gettext_noop(s):
return s
LANGUAGES = [ # supported languages
("en", gettext_noop("English")),
("ja", gettext_noop("Japanese")),
("ko", gettext_noop("Korean")),
]
- In
urls.py
:
.. code:: python
urlpatterns = [
...
path('csc/', include('countries_states_cities.urls')),
]
-
Run
python manage.py migrate
to create the countries_states_cities models. -
Configuration ================
Todo...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-countries-states-cities-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ca371908606974e8d4f2a5bf389f3c72dc7dc6bef1603653a8bfa2fc1ed9c9 |
|
MD5 | 43a7a3ae0ce4578f36d9f12e8f5bab8d |
|
BLAKE2b-256 | 1f3433162439d316fec26fbd330a2bf55db8c0799e60366bb3721076bf531335 |