Rent or Book Room online with Finder
[Live Demo](https://mashuk5809.pythonanywhere.com)open requirements.txt file to see requirements
open terminal and type
git clone https://github.com/MahmudulHassan5809/Room-Booking-Finder-Dajngo.git
python manage.py makemigrations
python manage.py migrate
open terminal and type
python manage.py collectstatic
To create superuser open terminal and type
python manage.py createsuperuser
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'xxxxxxxxxx'
EMAIL_PORT = 587
python manage.py runserver
Then go to http://127.0.0.1:8000 in your browser
If You Want To use celery To Auto change the Listing Status Then Uncomment the code in models.py in listings folder.Please Setup Celery and RabbitMQ
#ListingBooking Class
def save(self, *args, **kwargs):
create_task = False
if self.pk is None:
create_task = True
super(ListingBooking, self).save(*args, **kwargs)
if create_task and self.end_time:
print('okskksksk')
set_booked_as_inactive.apply_async(
args=[self.listing.id, self.id], eta=self.end_time)
Mahmudul Hassan
Email: [email protected]