npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-django-oscar-app

v0.4.1

Published

Quick build app for django-oscar

Downloads

23

Readme

generator-django-oscar-app

NPM version Build Status Dependency Status Coverage percentage NPM Downloads

Quick build app for django-oscar

Installation

First, install Yeoman and generator-django-oscar-app using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-django-oscar-app

Then generate your new project:

yo django-oscar-app

Getting started

screenshot

create django-oscar app via generator

$ yo django-oscar-app

create new virtualenv, we are using virtualenv + virtualenvwrapper here

$ mkvirtualenv django-oscar-hooks
New python executable in /Users/{HOME}/.virtualenvs/django-oscar-hooks/bin/python2.7
Also creating executable in /Users/{HOME}/.virtualenvs/django-oscar-hooks/bin/python
Please make sure you remove any previous custom paths from your /Users/{HOME}/.pydistutils.cfg file.
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /Users/{HOME}/.virtualenvs/django-oscar-hooks/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/{HOME}/.virtualenvs/django-oscar-hooks/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/{HOME}/.virtualenvs/django-oscar-hooks/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/{HOME}/.virtualenvs/django-oscar-hooks/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/{HOME}/.virtualenvs/django-oscar-hooks/bin/get_env_details
(django-oscar-hooks)

install pip packages, create database tables and load dummy data.

(django-oscar-hooks)$ make sandbox

run your django-oscar-hooks app

(django-oscar-hooks)$ sh run.sh

run test

(django-oscar-hooks)$ make test
./runtests.py
=============================================== test session starts ===============================================
platform darwin -- Python 2.7.10, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
django settings: tests.settings (from environment variable)
rootdir: /Users/cage/Documents/yo-generators/123/django-oscar-licenses, inifile:
plugins: cov-2.2.0, django-2.9.1, xdist-1.13.1
gw0 [2] / gw1 [2] / gw2 [2] / gw3 [2] / gw4 [2] / gw5 [2] / gw6 [2] / gw7 [2]
scheduling tests via LoadScheduling
..
============================================ 2 passed in 2.51 seconds =============================================

visit http://localhost:8000/

Default Admin: for testing only

build sphinx docs

(django-oscar-hooks)$ make build_docs

// html page with generated at docs/_build/html/
// pdf file with generated at docs/_build/pdf/

django-oscar-app yeoman generator will use VL-Gothic-Regular.ttf & VL-PGothic-Regular.ttf fonts for rst2pdf packages default. Please download VLGothic-20091202.zip and install it. If you want to customize pdf fonts as you needs. You need to make your own .style for rst2pdf and modify conf.py

docs/conf.py

copy and replace your need. ex: tw.style

# L320
...
# A comma-separated list of custom stylesheets. Example:
# pdf_stylesheets = ['kerning','a4', 'custom']
pdf_stylesheets = ['kerning','a4', '<your-dot-style-file-name>']

# A list of folders to search for stylesheets. Example:
pdf_style_path = ['.', '_styles', 'docs']

# Create a compressed PDF
# Use True/False or 1/0
# Example: compressed=True
#pdf_compressed = False

# A colon-separated list of folders to search for fonts. Example:
# pdf_font_path = ['/Users/' + os.environ.get('USER') + '/Library/Fonts']
pdf_font_path = ['<custom-fonts-you-installed>']

# Language to be used for hyphenation support
# pdf_language = "zh_TW"
pdf_language = "<your-language>"

Change Logs

0.4.1

  • fixed sandbox TemplateDoesNotExist error

0.4.0

  • add Sphinx docs skeleton generated
    • html
    • pdf
  • fixed .gitignore egg info pattern

0.3.0

  • add unit/dashboard test auto generated
  • modified tests/_site/urls to add package dashboard url

0.2.5

  • fixed code generated test tests/_site/urls.py missing
  • fixed make sandbox fail caused requirements modify @0.2.4

0.2.4

  • fixed tests/config.py string quotation marks incomplete
  • requirements.testing add mock, model-mommy, six packages
  • requirements.sandbox remove django-oscar, django packages. add pycountry package version

0.2.3

  • fixed sandbox i18n does not work

0.2.2

  • auto create project folder
  • add license generator

0.2.0

  • add payment package type

License

BSD-3-Clause © Kai-Chu Chung