• This repository has been archived on 24/Apr/2018
  • Stars
    star
    182
  • Rank 207,101 (Top 5 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Django template for using Flask for the frontend, Django for the backend.

Flango Starter Template

An utterly fantastic project starter template for Django 2.0, using Flask as a frontend.

How it works

  • frontend.py contains your Flask application, which is used for your frontend.
  • The django application is routed to /admin.

Features

  • Flask for the frontend, using the Django ORM.
  • Production-ready configuration for Static Files, Database Settings, Gunicorn, etc.
  • Enhancements to Django's static file serving functionality via WhiteNoise.
  • Latest Python 3.6 runtime environment.

How to Use

To use this project, follow these steps:

  1. Create your working environment.
  2. Install Django and Flask ($ pipenv install --no-hashes)
  3. Create a new project using this template

Creating Your Project

Using this template to create a new Django app is easy::

$ django-admin.py startproject --template=https://github.com/kennethreitz/flango/archive/master.zip --name=Procfile --name=Pipfile helloworld

(If this doesn't work on windows, replace django-admin.py with django-admin)

You can replace helloworld with your desired project name.

Deployment to Heroku

$ git init
$ git add -A
$ git commit -m "Initial commit"

$ heroku create
$ git push heroku master

$ heroku run python manage.py migrate

License: MIT

Further Reading

More Repositories

1

osx-gcc-installer

GCC Installer for OSX! Without Xcode!
Python
3,046
star
2

envoy

Python Subprocesses for Humansâ„¢.
Python
2,270
star
3

flask-sslify

Force SSL on your Flask app.
Python
505
star
4

elephant

A persistent, full-text searchable key-value store. Powered by Flask, ElasticSearch, S3, and good intentions.
Python
481
star
5

markdownplease.com

Give it a URL, it'll give you Markdown. Powered by Readability.
HTML
202
star
6

wsl-guide

The Hitchhiker's Guide to Bash on Ubuntu on Windows!
Python
189
star
7

dream-python

Individual dreams for Python and its community.
186
star
8

pipenvlib

A library for manipulating Pipenv projects.
Python
133
star
9

github-reflog

The GitHub Reflog™ — the weekly chronicle of awesome repos
88
star
10

talks

My conference talks
86
star
11

pysoundcloud

Scraping the Un–scrapable™
Python
63
star
12

typy.io

just typeâ„¢
Python
49
star
13

omnijson

Like AnyJSON, but better.
Python
43
star
14

python-for-humans

Talk from PyCodeConf.
Ruby
42
star
15

goldenarch

Serves crap. Fast.
Python
40
star
16

knative-for-humans

Knative for Humans (for Kubernetes) -- a work in progress
Batchfile
35
star
17

click-tools

Command-Line utilities for Click (extracted from Clint).
Python
30
star
18

records-migrate

A migration system for Records.
Python
29
star
19

now.httpbin.org

An API (for Humans) for converting timestamps.
Python
24
star
20

team

KR Org stuff.
21
star
21

super-sphere2

A minimal action game by Kenneth Reitz.
Lua
18
star
22

humble

Python version of seejohnrun/vain
Python
16
star
23

SlashWear

"Kenneth is the Computer Guru. The King of Programmers!!!!!!"
16
star
24

morepython.org

Python
14
star
25

unmastered-impulses

Infinite State's first album.
14
star
26

Flask-Caster

A simple Flask extension for automatically casting the type of query arguments.
Python
13
star
27

pipenv-docker-tests

A public repo for a docker image to speed up docker tests for Pipenv.
12
star
28

convore.json

Full backup of all public Convore content.
CSS
11
star
29

pipenv-buildpack

A minimal buildpack for Pipenv.
Shell
11
star
30

pypidownloads-service

a PyPI downloads information web service, using GraphQL (and Flask!)
Python
9
star
31

alphaglyph

Αμπθαημπθ: Ησεελ Μευυεστ ζοσ Yοφ αξδ Ι
Python
8
star
32

uuid4

CLI for uuid4
7
star
33

git-legit.org

The Official Websiteâ„¢ of Legit.
CSS
7
star
34

tommorrow-night-italics-vscode

Tomorrow Night Italics for VSCode
4
star