Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thecaffeinedev/Real-Estate-Django-Web-App
Real Estate Django Web App
https://github.com/thecaffeinedev/Real-Estate-Django-Web-App
django hacktoberfest python realestate
Last synced: 6 days ago
JSON representation
Real Estate Django Web App
- Host: GitHub
- URL: https://github.com/thecaffeinedev/Real-Estate-Django-Web-App
- Owner: thecaffeinedev
- Created: 2018-12-13T20:12:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-29T07:58:07.000Z (10 months ago)
- Last Synced: 2024-08-01T19:52:28.298Z (3 months ago)
- Topics: django, hacktoberfest, python, realestate
- Language: CSS
- Homepage:
- Size: 15 MB
- Stars: 242
- Watchers: 22
- Forks: 143
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
- JQueryIf you are new to Django, checkout the [Django 2.x Cheat Sheet](https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App/blob/master/django_cheat_sheet.md)
If you want to deploy this Web App In Ubuntu 18.04 Server, Please Follow this [Guide](https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App/blob/master/Django_Deployment_to_Ubuntu_18.04.md)
## How to run this project (Ubuntu 18.04)
1. **Clone the project**
```sh
git clone https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App.git
```2. **Make sure you are in *Real-Estate-Django-Web-App* folder**
1. Install all dependencies
```sh
pip install -r requirements.txt
```3. **Install PostgreSQL in your Ubuntu 18.04**
1. Enable PostgreSQL Apt Repository
```sh
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
```sh
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
```3. Connect to PostgreSQL
```sh
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.
```sh
postgres-# \conninfo
```4. Create a database
```sh
CREATE DATABASE real_estate;
```5. Create user
```sh
CREATE USER pks WITH PASSWORD 'abc123!';
```
4. **Run Migrations**```sh
python manage.py makemigrations
python manage.py migrate
```5. **Run Server**
```sh
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
```sh
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'real_estate' ,
'USER': 'pks',
'PASSWORD': 'abc123!',
'HOST':'localhost',
}
}
```To:
```sh
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}```
This is the default configuration of Django database.
**Backend**
For Database I have used Postgres Database Name: real_estate
Note: Please change those gmail credentials from real_estate folder you will get settings.py inside that file you will see username and password mentioned as place your Username and Password. Also do that same thing from Contacts folder views.py you will see YourEmail mentioned on line number 33.
### Screenshots
- **HOME**
![Home](https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App/blob/master/screenshots/s1.JPG)
- **Listings**
![Listings](https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App/blob/master/screenshots/s3list.JPG)
- **Registration**
![Registration](https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App/blob/master/screenshots/s4reg.JPG)
- **Admin Panel - 1**
![Admin](https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App/blob/master/screenshots/s5adm.JPG)
- **Admin Panel - 2**
![Admin](https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App/blob/master/screenshots/s6r.JPG)
- **About**
![About ](https://github.com/TheCaffeineDev/Real-Estate-Django-Web-App/blob/master/screenshots/s2about.JPG)
## Acknowledgments
Many thanks to [@bradtraversy](https://github.com/bradtraversy) for his awesome course.
##### References
1. https://www.traversymedia.com/
2. https://www.djangoproject.com/