Please note: After downloading this repo please add a change in mysite/mysite/settings.py
please hash the line mentioned below:
# DATABASES['default'] = dj_database_url.config()
{we will be using terminal for most of the operations.}
$: virtualenv -p python3 {env-name}
$:sudo apt-get install python-pip
$: . ./{env-name}/bin/activate
$:pip install django
$:pip install dj-database-url
$: pip freeze > requirements.txt
$: django-admin startproject mysite
TIME_ZONE = 'Asia/Kolkata'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']
$: python manage.py migrate
Here we going to call the app as blog
$: python manage.py startapp {application-name}
$: python manage.py runserver
These are the very basics of setting up a Django module. Hope you enjoy the workshop on how to create a small webpage using Django.