Skip to content

Real estate website to sell or rent property using Django framework.

License

Notifications You must be signed in to change notification settings

farshadz1997/django-real-estate-project

Repository files navigation

Real Estate Webstie

Home Property is a real estate website for listing properties to sell or rent.

Installation

Run with Docker
  • First create .env file and set these parameters inside it:
DEBUG=1
EMAIL_HOST=<Your_host>
EMAIL_PORT=<PORT>
DEFAULT_FROM_EMAIL=<SENDER_NAME>
EMAIL_HOST_USER=<YOUR_EMAI>
EMAIL_HOST_PASSWORD=<EMAIL_PASSWORD_OR_APP_PASSWORD>
  • Build image from Dockerfile with this command:
docker build .
  • In the repository's directory open the terminal and run:
docker-compose up
Run manually on Windows
  • Use the package manager pip to install packages.
pip install -r requirements.txt
  • Have the RabbitMQ server installed and started on your Windows
  • Replace this snippet in home_property_project/setting.py for your database:
DATABASES = {
   "default": {
       "ENGINE": "django.db.backends.sqlite3",
       "NAME": BASE_DIR / "db.sqlite3",
   }
}
  • Comment out CELERY_BROKER_URL and CELERY_RESULT_BACKEND in settings file.
  • To run Celery on Windows run this command in another Terminal in the repository directory:
celery -A home_property_project worker -l info --pool=solo
  • This project uses Gmail SMTP service to request a forgotten password and you need to change it in settings of project to use it. create a new superuser or use just mine with the following information:
  • Username: admin
  • Password: HomeProperty1234
  • Start the server with this command:
python manage.py runserver

Features

  • Properties
    • Up to 6 photos per property.
    • Users can add, edit, and delete owned properties.
    • Categorised properties.
    • Search properties by name, type, and category.
  • Send emails through Celery.
  • Contact section.
  • User dashboard.
    • Change password, email, and profile picture.
  • Blogs which controlled by admins.
    • Comments in blogs.
    • Search in blogs.

Photos

Home page

Home page

Properties

Properties page

Blogs page

Blogs page

User dashboard

image