Coder Social home page Coder Social logo

renta's Introduction

Real Estate Django Web App

A real estate listings website built with python django bootstrap.

A simple, reponsive website. Built with:

  • Python ๐Ÿ
  • Django ๐ŸŽธ
  • Bootstrap 4 ๐ŸŒˆ
  • Vanilla JS - ES6
  • JQuery

How to run this project (Ubuntu 20.04)

  1. Clone the project
git clone https://github.com/VenesaOkuna/Renta.git
  1. Make sure you are in Renta folder

  2. Install all dependencies

    pip install -r requirements.txt
  3. Install PostgreSQL in your Ubuntu 20.04

    1. Enable PostgreSQL Apt Repository

      sudo apt-get install wget ca-certificates
      
      wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
      
      # Now add the repository to your system.
      
      sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
    2. Install PostgreSQL on Ubuntu

      sudo apt-get update
      sudo apt-get install postgresql postgresql-contrib
    3. Connect to PostgreSQL

      sudo su - postgres
      psql

      Now you are logged in to PostgreSQL database server. To check login info use following command from the database command prompt.

      postgres-# \conninfo
    4. Create a database

      CREATE DATABASE renta;
    5. Create user

      CREATE USER pks WITH PASSWORD 'abc123!';
  4. Run Migrations

python manage.py makemigrations
python manage.py migrate
  1. Run Server
python manage.py runserver 

And you are good to go.

To run with SQLite only

Go inside the 'realestate' folder and open 'settings.py' file and replace

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'renta' ,
        'USER': 'pks',
        'PASSWORD': 'abc123!',
        'HOST':'localhost',
        
    }
}

To:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

This is the default configuration of Django database.

Acknowledgments

Many thanks to @bradtraversy for his awesome course.

References
  1. https://www.traversymedia.com/
  2. https://www.djangoproject.com/

renta's People

Contributors

venesaokuna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.