Skip to content

Source code for application used in the subject TDT4237 at NTNU for the Spring of 2019

Notifications You must be signed in to change notification settings

svein007/tdt4237-2019

 
 

Repository files navigation

sec

Get started

It's recommended to have a look at: https://www.djangoproject.com/start/

Basic tutorial that walks trough what the different files does. https://docs.djangoproject.com/en/2.0/intro/tutorial01/

Create a virtualenv https://docs.python-guide.org/dev/virtualenvs/

Local setup

Setup with Docker

Install Docker and Docker Compose if you haven't already done so.

Clone the project to your machine.

Run docker-compose up inside the main folder.

Installation with examples for ubuntu. Windows and OSX is mostly the same

Fork the project and clone it to your machine.

Setup and activation of virtualenv (env that prevents python packages from being installed globaly on the machine)

pip install virtualenv

virtualenv -p python3 env

source env/bin/activate

Install python requirements

pip install -r requirements.txt

Migrate database

python sec/manage.py migrate

Create superuser

Create a local admin user by entering the following command:

python sec/manage.py createsuperuser

Only username and password is required

Start the app

python sec/manage.py runserver

Add initial data

Add initial data go to the url the app is running on localy after runserver and add /admin to the url.

Add some categories and you should be all set.

or by entering

python sec/manage.py loaddata seed.json

About

Source code for application used in the subject TDT4237 at NTNU for the Spring of 2019

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 50.8%
  • Python 47.2%
  • Other 2.0%