First, create your Python environment and install the required libraries with the following command:
pip install -r requirements.txt
Then prepare your database using the following commands:
Python manager.py makemigrations
Python manager.py migrates
And also create an admin user using the following command:
Python manager.py createsuperuser
Now we start the program:
python manager.py runserver
The site starts on port 8000
.
Now add the cities and provinces by Django admin (localhost:8000/admin)
.
on the main page of the site, you can register or login (if logged in). If you are logged in, you can see your logout or profile section. On the main page, see the list of all the houses added by users. In the profile section, you can change the personal information you have registered. In the sidebar section of the profile, you can see the apartment sections, houses that you are the manager of. In the add apartment section, add the house and enter the information of that house. from this action, The desired house is displayed in my apartments. You can also provide the above information in Change apartments section. In offers, you can see the offers sent to a shared house by other users. Can you accept that if one of them is accepted, the other offers for that house will be removed from the list, then the intended user will be registered as a tenant. In the rented apartments section, you can see the houses that are rented. In the list on the main page, if the user chooses a house that is not for him, he can make an offer.