This is the repo for the Django to-do-list app Workshop in MenloHacks 2019 on Saturday March 9th. It gives the overview about how to set up a simple Django project. This workshop is beginners-friendly.
- Python
- Pip (Python Package Installer)
- Django (Open Source Web Application Framework)
- Git (Open Source Distributed Version Control System)
$ python3 --version
$ pip3 --version
macOS:
$ brew install python
Windows:
Download here
$ pip3 install Django
Check your Django Installation
Access Python by:$ python
or $ python3
. Then:
>>> import django
>>> print(django.get_version())
git clone
cd django-to-do-list
django-to-do-list
├───db.sqlite3
├───manage.py
├───todo_app (back-end)
│ settings.py
│ urls.py
│ wsgi.py
│ __init__.py
│ .....
├───todo_list (front-end)
│ settings.py
│ urls.py
│ wsgi.py
│ __init__.py
│ .....
└───README.md
python3 manage.py runserver
http://localhost:8000
python3 manage.py createsuperuser
Username
Password
Password (again)
http://localhost:8000/admin