ahlev-django-location

location app using django framework


License
BSD-3-Clause
Install
pip install ahlev-django-location==0.0.1

Documentation

DJANGO LOCATION APPLICATION

pypi pypi

This application is to show a location in google map.

prerequisites

The instructions below assume that you have a django project already set up; and a python virtual environment already installed and activated.

styles

All ahlev-django applications are using styles from mdbootstrap.com, so please make sure you install ahlev-django-css-js first.

install from this repository

clone

git clone https://github.com/ohahlev/ahlev-django-location.git

go to directory ahlev-django-location

cd ahlev-django-location

create installer package

make package

install package

Let's say ahlev-django-location directory is in the same level as the project directory.

cd into project directory

cd ../my_project_dir

install ahlev-django-location from the project directory

pip install ../ahlev-django-location/dist/ahlev-django-location-0.0.1.tar.gz

install from pypi

go to the project directory and install from pypi

ahlev-django-location

project configuration

update settings.py as the following

INSTALLED_APPS = [
    'location', # add this line
    ...
]

add these lines to the end of settings.py

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, "static")
]
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
MEDIA_URL = '/medias/'

screenshots

frontend: partial location

backend: location management

backend: list all locations

backend: edit a location