Playing with Django
Python CSS HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Treasuregram
.gitignore
.gitlab-ci.yml
.travis.yml
README.md
screenshot.png

README.md

Build Status build status

Treasure Gram

Screenshot

A project to play with Django.

This project was created with Python 3.4 and Django 1.10.0.

Install

Clone the repo and install all dependencies:

cd treasure-gram/Treasuregram
pip install -r requirements.txt

Run the migrations:

python3 manage.py makemigrations
python3 manage.py migrate

Run the tests

python3 manage.py test

Start the server:

python3 manage.py runserver

And go to http://localhost:8000/

Concepts covered

  • Database migrations
  • Static files
  • Routes and settings
  • Passing contexts
  • Templating language
  • Template inheritance
  • Form-Model mapping and sending data to the server
  • Image uploading
  • Registering admin with models
  • One to many relationship User-Treasures
  • User pages
  • User authentication
  • AJAX communicating with views
  • Tests with unittest
  • Continuous Integration for Travis and gitlab-ci