5 Django packages related to starting a new project

Cookiecutter/

Cookiecutter - Python

16.5k

A cross-platform command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, C projects.

Features

  • Cross-platform: Windows, Mac, and Linux are officially supported.
  • You don't have to know/write Python code to use Cookiecutter.
  • Works with Python 3.7, 3.8, 3.9.
  • Project templates can be in any programming language or markup format: Python, JavaScript, Ruby, CoffeeScript, RST, Markdown, CSS, HTML, you name it. You can use multiple languages in the same project template.
  • Simple command line usage
  • Cross-platform: Windows, Mac, and Linux are officially supported.
  • You don't have to know/write Python code to use Cookiecutter.
  • Works with Python 3.7, 3.8, 3.9.
  • Project templates can be in any programming language or markup format: Python, JavaScript, Ruby, CoffeeScript, RST, Markdown, CSS, HTML, you name it. You can use multiple languages in the same project template.
cookiecutter cookiecutter- python

 

Django-hackathon-starter

Django-hackathon-starter - Python

1.5k

A boilerplate for Django web applications

Features

  • User Registration
  • Sphinx Documentation
  • Django Nosetests
  • Integration with Django Rest Framework
  • Basic Authentication with username and password
  • OAuth 2.0 Authentication
    • Github
    • LinkedIn
    • Instagram
    • Facebook
    • Google+
    • Dropbox
    • Foursquare
  • OAuth 1.0a Authentication
    • Twitter
    • Tumblr
  • API Examples
    • Yelp API
    • Github API
    • Instagram API
    • Tumblr API
    • Twitter API
    • Twilio API
    • Meetup API
    • Steam API
    • Quandl Stock API
    • New York Times API
    • LinkedIn API
    • Facebook API
    • Google+ API
    • Dropbox API
    • Foursquare API

To get up and running, simply do the following:

$ git clone https://github.com/DrkSephy/django-hackathon-starter.git
$ cd django-hackathon-starter

# Install the requirements
$ pip install -r requirements.txt

# Install bower
$ npm install -g bower
$ bower install

# Perform database migrations
$ python manage.py makemigrations
$ python manage.py migrate
Django-hackathon-starter

 

 

A Django project skeleton that is modern and cutting edge.

Features

  • Ready Bootstrap-themed pages
  • User Registration/Sign up
  • Better Security with 12-Factor recommendations
  • Logging/Debugging Helpers
  • Works on Python 3 and Django 2
  • Formatted with Black

If you need to keep requirements.txt updated then run

pipenv lock --requirements > requirements/base.txt
echo "-r base.txt" > requirements/development.txt
pipenv lock --requirements --dev >> requirements/development.txt
bootstrap django python

 

Demo-allauth-bootstrap

Demo-allauth-bootstrap - Python

206

Django sample app with users including social auth via Django-AllAuth

  • Get your Facebook and/or Google app creds (see sections below for more info);
  • Clone or download the repo; then
  • Follow instructions below:
$ cd demo-allauth-bootstrap

## create and use a Python virtualenv:

$ python3 -m venv mypy          # doesn't have to be called "mypy"; it's just my convention.
$ . ./mypy/bin/active           # adjust this if you used a name other than "mypy"

## install all dependencies into this venv:

$ pip install -r requirements.txt

## run the handy configure script:

$ python ./configure.py

--------
Facebook
--------

Do you want to configure auth via Facebook?
You'll need the app secret and client. (y/n): y              # or enter 'n' to skip

Facebook App Secret? >                                       # Facebook secret here...

Facebook App ID (not client token)?                          # and app ID here.

------
Google
------

Do you want to configure auth via Google?
You'll need the app secret and client. (y/n): y              # or enter 'n' to skip

Google Secret? >                                             # Google secret here...

Google Client ID? >                                          # and Google client ID here.

----------
Next steps
----------

Run these commands:

    python manage.py makemigrations allauthdemo_auth
    python manage.py migrate
    python manage.py createsuperuser                         # optional; doesn't need real email address.

    # Facebook
    python manage.py set_auth_provider facebook --redacted-info-here--

    # Google
    python manage.py set_auth_provider google --redacted-info-here--

If you have other providers you can add them like:

    python manage.py set_auth_provider <name e.g. 'google'> <client id> <secret>

Finally:

    python manage.py runserver

 

 

Wemake-django-template

Wemake-django-template - Python

1.4k

Bleeding edge django template focused on code quality and security.

Features

caddy cookiecutter cookiecutter-template django docker gitlab-ci mypy pytest python python3