Giter VIP home page Giter VIP logo

cookiecutter-django-rest-framework's Introduction

cookiecutter-django-rest-framework

A cookiecutter template for creating reusable Django REST Framework packages with the best practices quickly.

Features

  • Travis CI configuration
  • Tox configuration
  • Sane setup.py for easy PyPI registration/distribution
  • BSD licensed by default

Usage

$ pip install cookiecutter
$ cookiecutter gh:jpadilla/cookiecutter-django-rest-framework

You'll be prompted for some questions, answer them, then it will create a cookiecutter-django-rest-framework with your new package.

Example

Warning: After this point, change 'José Padilla', 'jpadilla', etc to your own information.

full_name (default is "Your full name here")? José Padilla
email (default is "[email protected]")? [email protected]
github_username (default is "yourname")? jpadilla
pypi_project_name (default is "dj-package")? drf-things
repo_name (default is "dj-package")? drf-things
app_name (default is "djpackage")? drfthings
project_short_description (default is "Your project description goes here")?
year (default is "2014")?
version (default is "0.1.0")?

Enter the project and take a look around:

$ cd drf-things/
$ ls

Create a GitHub repo and push it there:

$ git init
$ git add .
$ git commit -m "first commit"
$ git remote add origin [email protected]:jpadilla/drf-things.git
$ git push -u origin master

Register on PyPI

$ python setup.py register

New release on PyPI

$ python setup.py publish
You probably want to also tag the version now:
      git tag -a 0.1.0 -m 'version 0.1.0'
      git push --tags

cookiecutter-django-rest-framework's People

Contributors

jpadilla avatar maryokhin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.