Public | Automated Build

Last pushed: 2 years ago
Short Description
A test django cms and rest api for DI's datahub
Full Description

di data-hub django proof of concept

How to start

The code already contains a database with some sample data. It's superuser is demo, password demo.

1) First of all (recommended but not mandatory) create a new virtualenv space
to isolate django config from the rest of the system
$ mkvirtualenv name_of_my_new_virtualenv

2) Install dependencies through pip
$ pip install -r requirements.txt

3) cd into apps and run the app, using the desired address
$ ./ runserver

4) Go to any of this URLs to check the API # gets you list of current spotlightss

5) You can also check/modify the data in the admin panel:

6) Incase you make changes to the models please run ./ makemigrations
and ./ migrate for them to persist

  • To run with docker run docker run -t -i -p 8080:8080 --name di-django -d epicallan/di-django


  • create view for base URL
  • Use nginx as reverse proxy server
Docker Pull Command
Source Repository