๐โจ TravelTales is a community-driven travel blog platform built with Django ๐, where users can share stories ๐, photos ๐ธ, and experiences ๐ from cities around the globe like Tokyo ๐ฏ๐ต, Mumbai ๐ฎ๐ณ, Sydney ๐ฆ๐บ, and more.
UserGuide.mp4
APIs-Interactions.mp4
python --version
python -m venv venv # create venv in project folder (Once)
venv\Scripts\activate
python manage.py runserver
python manage.py startapp <feature-appname>
#### After changing model -> need to migrate
python manage.py makemigrations
python manage.py migrate
#### shell for ORM based DB access and queries
python manage.py shell
#### you can run these commands (varies as per project - posts project below)
from posts.models import Post
p = Post()
p.title = "My first post"
p.save()
Post.objects.all()
#### create admin username & pw ~ superuser
python manage.py createsuperuser
#### for PRODUCTION -> make changes in settings.py & urls.py in project folder
python manage.py collectstatic