Giter Club home page Giter Club logo

django-packagemaker's Introduction

Django Packagemaker

django-packagemaker is aimed at making it much easier to quickly scaffold a python package for a django reusable app. It tries to find a balance between respecting individual choices and being opinionated enough to be useful.

To this end it is more than just a paster template of Django's startapp output. It creates things like an admin.py file, docs with sphinx-quickstart pre-run etc.

Getting started

Install django-packagemaker with pip:

$ pip install git+git://github.com/ptone/django-packagemaker.git#egg=django_paster

[NOTE: For now, this project itself is not yet on PyPi until more stable]

This will also install the dependencies for using the paster command

Note if you are using virtualenv (and you should be) that due to some limitation of paste script, the paster packages must be installed in the same virtualenv as django-packagemaker. If you are using pip's cache (and you should be) this isn't too bad a speed hit on your virtualenv buildout.

That means if you have paste script already installed in your system site-packages, you are likely to run into some troubles.

After installation, you can run:

$ paster create -t app_package coolapp

This will prompt you for several pieces of information about your package, hit return to accept the defaults. If you have git configured, it will attempt to read your git config for your name and email. The result will be a directory with this layout:

coolapp
coolapp/coolapp
coolapp/coolapp/__init__.py
coolapp/coolapp/admin.py
coolapp/coolapp/forms.py
coolapp/coolapp/models.py
coolapp/coolapp/templates
coolapp/coolapp/templates/coolapp
coolapp/coolapp/tests.py
coolapp/coolapp/urls.py
coolapp/coolapp/views.py
coolapp/docs
coolapp/docs/_build
coolapp/docs/_static
coolapp/docs/_templates
coolapp/docs/conf.py
coolapp/docs/index.rst
coolapp/docs/make.bat
coolapp/docs/Makefile
coolapp/LICENSE.txt
coolapp/MANIFEST.in
coolapp/README.rst
coolapp/setup.py

If you just want to then include this in your local development virtualenv, you need only:

$ pip install -e /path/to/coolapp

This will install the app, but allows you to continue to make changes to it in its own src location.

If you install the excellent hub git extension, you can then easily git create from inside your app, and you now have a github repo for your project.

django-packagemaker's People

Contributors

bezidejni avatar ptone 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.