You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
๐โจ 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.
python--versionpython-mvenvvenv# create venv in project folder (Once) venv\Scripts\activatepythonmanage.pyrunserverpythonmanage.pystartapp<feature-appname>#### After changing model -> need to migratepythonmanage.pymakemigrationspythonmanage.pymigrate#### shell for ORM based DB access and queriespythonmanage.pyshell#### you can run these commands (varies as per project - posts project below)fromposts.modelsimportPostp=Post()
p.title="My first post"p.save()
Post.objects.all()
#### create admin username & pw ~ superuser pythonmanage.pycreatesuperuser#### for PRODUCTION -> make changes in settings.py & urls.py in project folderpythonmanage.pycollectstatic
About
๐โจ 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.