-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
49 lines (35 loc) · 1.17 KB
/
README.txt
File metadata and controls
49 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Django GIS Project
## Description
This project is a Django application to manage Culinary Spots data with GIS features using PostgreSQL + PostGIS.
The Admin interface includes filters, search functionality, and custom __str__ implementations for the models.
## How to Set Up the Project
1. Clone this repository:
git clone https://github.com/hefniraera/django-gis.git
cd django-gis
2. Create and activate a virtual environment (optional but recommended):
- On Linux/Mac:
```
python3 -m venv env
source env/bin/activate
```
- On Windows (PowerShell):
```
python -m venv env
.\env\Scripts\Activate.ps1
```
3. Install dependencies:
pip install -r requirements.txt
4. Create a `.env` file in the project root (next to `manage.py`) with the required environment variables, for example:
DB_NAME=your_database_name
DB_USER=your_database_user
DB_PASSWORD=your_database_password
DB_HOST=localhost
DB_PORT=5432
5. Run migrations to create database tables:
python manage.py migrate
6. Create a superuser (admin):
python manage.py createsuperuser
7. Run the development server:
python manage.py runserver
8. Access the Django admin interface at:
http://127.0.0.1:8000/admin/