DEV Community

Dr. Azad Rasul
Dr. Azad Rasul

Posted on

5- Django: database setup

Open up PollProject/settings.py. By default, the configuration uses SQLite.

Inside PollProject/settings.py, set TIME_ZONE to your time zone. For example, in my case, it is: TIME_ZONE = 'Asia/Baghdad'

To create the tables in the database we run the following command:

py manage.py migrate
Enter fullscreen mode Exit fullscreen mode

If you like the content, please SUBSCRIBE to my channel for the future content

Top comments (0)