Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 1.78 KB

README.md

File metadata and controls

79 lines (63 loc) · 1.78 KB

🔧 MenloHacks Workshop 🔨

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.

Installation

  • Python
  • Pip (Python Package Installer)
  • Django (Open Source Web Application Framework)
  • Git (Open Source Distributed Version Control System)

Step 1 - Check Python Installation

$ python3 --version

Step 2 - Check pip Installation

$ pip3 --version

If pip not installed

macOS:
$ brew install python

Windows:
Download here

Step 3 - Django Installation

$ pip3 install Django

Check your Django Installation

Access Python by:$ python or $ python3. Then:
>>> import django
>>> print(django.get_version())

Step 4 - Git Clone This Repo

git clone

Step 5 - Access to the Folder

cd django-to-do-list

Folder hierarchy

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

Step 6 - Usage

python3 manage.py runserver

Go to

http://localhost:8000

Step 7 - Create a Superuser

python3 manage.py createsuperuser

Enter your

  • Username
  • Password
  • Password (again)

Step 8 - Check the Admin URL

Go to

http://localhost:8000/admin

Credits