Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
blog
dj02_django_blog
media
static
templates
users
.editorconfig
.eslintrc
.gitignore
Dockerfile
Pipfile
Pipfile.lock
Procfile
README.md
db.sqlite3
docker-compose.yml
manage.py
package-lock.json
package.json
requirements.txt
secret_key.json
secret_keySAMPL.json

README.md

Second assignment with Django

This is the final assignement of the first semester. Goal of People can sign up with their discord or github account. People can then write posts, follow people and comment under other users posts.

Steps to get the project up and running.

  • Add your own security key to secret_key.json file.

####NB! You should have docker pre-installed on your machine. First navigate to the root folder of the cloned folder.

Build initial image from a Dockerfile

docker build .

Make migrations inside the container

docker-compose run web python /code/manage.py migrate

Make superuser for the admin inside the container

docker-compose run web python /code/manage.py createsuperuser

Last step

docker-compose up -d --build

Type in docker ps and you should see two containers running: 1 for django 2 for postreSQL

Django should now be 🏃 on http://127.0.0.1:8000/


Database (Updated )

Database is now running on postreSQL and is configured via Docker.

Tech stack

Please feel free to contribute 🙏

Initial project was provided by @rrebase.