Django site for real estate brokers
Project description
SmartEstate
About
Django app for real estate brokers. If you are a real estate broker, you can use this to power your website, and the backend will allow you to manage your listings, apartments, offers for sale, as well as potentials - renters, buyers, etc.
Roadmap
This is a legacy project from ca. 3 years ago, which I am recently revisiting. It is not stable, and not ready for production use, but I am working to release a stable version soon. Until the stable version 1.0 appears, things can and will break between releases without notice.
Installing/usage
Production
The latest stable image is available from Docker Hub under sainthilaire/smartestate:latest.
You can use it however you like. For example, the following docker-compose.yml will set up a very minimal staging environment, but please change the credentials to something more secure.
Also, for a real production environment, you will need SSL, but there are many solutions for that.
services:
db:
image: mysql:8.3
restart: always
environment:
MYSQL_DATABASE: smartestate
MYSQL_USER: smartestate
MYSQL_PASSWORD: insecure-please-change
MYSQL_ROOT_PASSWORD: insecure-please-change
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 10
web:
image: sainthilaire/smartestate:latest
restart: always
ports:
- "80:8000"
environment:
DEBUG: 0
SECRET_KEY: insecure-please-change
ALLOWED_HOSTS: your-web-host.com
CSRF_TRUSTED_ORIGINS: "https://*.your-web-host.com"
DATABASE_ENGINE: django.db.backends.mysql
DATABASE_HOST: db
DATABASE_NAME: smartestate
DATABASE_USER: smartestate
DATABASE_PASSWORD: insecure-please-change
depends_on:
db:
condition: service_healthy
volumes:
db_data:
Local/dev via Docker-Compose
Easiest and preferred method. Clone the repository, and run:
docker compose up --detach --build
Local/dev via Django
-
Install platform requirements (for the MySQL driver, see https://github.com/PyMySQL/mysqlclient)
-
Debian/Ubuntu
apt install python3-dev default-libmysqlclient-dev build-essential pkg-config -
Red Hat / CentOS
yum install python3-devel mysql-devel pkgconfig -
Other distros / macOS / Windows: See the docs for mysqlclient, you probably have to install similar libraries. Otherwise, if you don't need MySQL (ie. using SQLite locally), you can comment out
mysqlclientfrom the dependencies in pyproject.toml and it should work.
-
-
Build app from source code:
pip install .
- Alternative: Install Python package:
pip install --upgrade smartestate
cp .env.example .envand configure with appropriate values.python manage.py migratepython manage.py createsuperuserpython manage.py runserver- Unit tests:
python manage.py test
Set up the cookie group in the Django admin, and make it optional for the cookie banner to appear.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smartestate-0.3.0.tar.gz.
File metadata
- Download URL: smartestate-0.3.0.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e06848f7bb696b48bf3ae38588ab4771a814b19e658d0ee4738920e70fa1a22b
|
|
| MD5 |
6f7fe556f3289a1a3e01a5947581aab2
|
|
| BLAKE2b-256 |
83d88778e8725647383ece5228d095be929d1073655984b37ab1fce590d2bff9
|
File details
Details for the file smartestate-0.3.0-py3-none-any.whl.
File metadata
- Download URL: smartestate-0.3.0-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f02d85998610470ccdcdc2015ce7388ee1b003dbb1f99581bc781a952be5c76f
|
|
| MD5 |
4685417c7de09eecdea0716f598e9bf2
|
|
| BLAKE2b-256 |
05656e29c4e471aae84183505f28d816b3afc2822e9c1ca40bd8c7ae7f4e57ef
|