Jujunol / django-template

The aim of this project is to take off a lot of the initial building of a react app with django and materialize.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Template

Brief

The aim of this project is to take off a lot of the initial building of a react app with django and materialize.

This Django Template comes prepackaged with:

  • Django
  • Materialize-Css
  • Webpack
  • React
  • Scss transpiliation system
  • Jinja2 templating system

Additionally, there is also:

  • A modified env system to change settings based on your environment
  • The ability to read from an .env file (refer to .env.example)
  • Useful common css helpers built on-top of materialize

Variations

We keep different variations/prepackages on different branches

  • API comes with a backend API system for working with JSON. Please note that does not contain a token auth system.

Installation (Linux & Mac)

Downloading a clone of the repo

  1. git clone https://github.com/Jujunol/django-template
  2. cd django-template
  3. rm -rf .git && git init (or for powershell rm -r -force .git ; git init)
  4. cp .env.example .env

Setting up the virtualenv (optional but recommended)

  1. python -m virtualenv venv
  2. venv/bin/activate

Setting up Django

  1. pip install -r requirements.txt
  2. python manage.py migrate
  3. python manage.py runserver

Setting up NPM + Webpack

  1. npm i
  2. npm start this will start our webpack and livereload servers

Testing our setup

Open your browser and go to http://localhost:8000

About

The aim of this project is to take off a lot of the initial building of a react app with django and materialize.


Languages

Language:Python 37.1%Language:CSS 24.1%Language:JavaScript 20.2%Language:HTML 18.6%