SeokRae / python_airbnb-clone

Django Project Airbnb
https://seokr.tistory.com/728
0 stars 0 forks source link
django python python-airbnb

Airbnb API

Python, Django, AWS, HTML, CSS, Vanilla JS, Tailwind CSS, Gulp

Git Description

  1. git init
  2. git remote add origin https://github.com/SeokRae/python_airbnb-clone.git

Project Setting

  1. db.sqlite3 삭제
  2. pipenv install
  3. pipenv shell
  4. python manage.py makemigrations
  5. python manage.py migrate
  6. python manage.py createsuperuser | python manage.py seed_superuser
  7. django_seed/__init__.py/Seed/faker
    • 35 line: cls.fakers[code].seed(random.randint(1, 10000)) > cls.fakers[code].seed_instance(random.randint(1, 10000))
  8. python manage.py seed_users --number 30
  9. python manage.py seed_photos
  10. python manage.py seed_amenities
  11. python manage.py seed_facilities
  12. python manage.py seed_houseRules
  13. python manage.py seed_roomType
  14. python manage.py seed_rooms --number 100
  15. python manage.py seed_reservations
  16. python manage.py seed_reservations --number 20

Program Actions