Live Website: http://dmayuresh99.pythonanywhere.com/
- python -m venv myvenv
-
Myvenv\Scripts\activate
- (myvenv)> python -m pip install --upgrade pip
- requirements.txt - Django~=2.2.4
- pip install -r requirements.txt
- django-admin.exe 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 runserver
- python manage.py startapp blog (blog is appname)
- settings.py - 'blog.apps.BlogConfig',
- add classes and functions in the apps models.py
- python manage.py makemigrations blog
- python manage.py migrate blog
- admin.site.register(Post)
- python manage.py runserver
- python manage.py createsuperuser (give password)
- python manage.py runserver
- http://127.0.0.1:8000/admin/.
- pip freeze > requirements.txt
Username - mayuresh password - 123
Backend: Python Django 2.2
UI: HTML5, CSS, Bootstrap4