A simple Django application based on How to Implement CRUD Using Ajax and Json with added Google Maps functionality.
- Python 3.11+
- Django 4.2.27
- MySQL/MariaDBS
git clone https://github.com/scedar/django_boilerplate.git
cd django_boilerplatepython -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activatepip install -r requirements.txtCopy the example environment file and update it with your configuration:
cp .env.example .envEdit .env and set your values:
SECRET_KEY=your-secret-key-here
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
DB_NAME=django_boilerplate_db
DB_USER=root
DB_PASSWORD=your-database-password
DB_HOST=localhost
DB_PORT=3306
GEOPOSITION_GOOGLE_MAPS_API_KEY=your-google-maps-api-keyGet a Google Maps API key: https://developers.google.com/maps/documentation/javascript/get-api-key
Create the database:
mysql -u root -p -e "CREATE DATABASE django_boilerplate_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"Run migrations:
python manage.py makemigrations books
python manage.py migratepython manage.py runserverVisit http://localhost:8000 in your browser.
- How to Implement CRUD Using Ajax and Json
- django-geoposition-2 - Maintained fork
- Django Documentation
- Ochomo William - ochomoswill - Member of Scedar Technologies Co.