Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.03 KB

File metadata and controls

40 lines (27 loc) · 1.03 KB

Unboxing Django

Getting Django up and running requires a few unboxing steps.

Open a terminal in the computation_hist main directory. In PyCharm, click on "Terminal" on the bottom left side. Once, there, apply all database migrations.

python manage.py migrate

Next, we populate the database with our metadata:

python manage.py populate_from_metadata

You are now ready to run the development server:

python manage.py runserver

You can now access either the website itself at http://127.0.0.1:8000/.

Documentation

Django has excellent documentation. Please read the overview before getting started.

(Optional) Create a super user to access the admin interface

python manage.py createsuperuser

Creating a super user gives you access to Django's extensive admin interface at http://127.0.0.1:8000/admin/. This is not required but useful.