Coder Social home page Coder Social logo

wildfish / wildfish-django-starter Goto Github PK

View Code? Open in Web Editor NEW
107.0 16.0 15.0 191 KB

Django cookiecutter starter project template.

Home Page: http://wildfish.com

License: BSD 3-Clause "New" or "Revised" License

Shell 4.53% HTML 13.92% Python 79.83% Dockerfile 1.73%
python django cookiecutter

wildfish-django-starter's Introduction

Wildfish Django Starter

Build Status

A Django project cookiecutter template to kick start development for new projects. Includes apps and settings we use in the majority of projects, along with an integrated version of our other cookiecutter-django-crud template which will also generate a model, CRUD views and tests.

Features

  • 2 tier layout
  • Python essentials: ipython, ipdb, flake8
  • Requirements file managed using pip-tools.
  • Settings using django-configurations
  • Testing bits: django-webtest, model-bakery
  • Redis cache (via django-redis-cache)
  • Sentry client, django-debug-toolbar
  • django-model-utils
  • Django CRUD views and templates using django-vanilla-views.
  • A Django ModelForm using bootstrap3.
  • Tests for all of the views using WebTest.
  • Model Bakery generated models for the tests.

Quickstart

Ensure you have cookiecutter installed:

pip install cookiecutter

Then use cookiecutter to generate your project from this template with:

cookiecutter [email protected]:wildfish/wildfish-django-starter.git

Then from your generated project:

npm install

# TODO to be replaces/updated in docs ticket.
pip install -r requirements.in

python manage.py migrate

Requirements using pip-compile

The generated project uses a requirements.in file to make it straightforward to keep pinned requirements up to date using the pip-compile command from pip-tools.

To generate a requirements.txt from your project simply use the pip-compile command.

Read more here, https://github.com/nvie/pip-tools#example-usage-for-pip-compile

wildfish-django-starter's People

Contributors

hnk avatar jamesoutterside avatar mgaitan avatar omegadroid avatar radiac avatar rolo avatar underyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wildfish-django-starter's Issues

Error python manage.py migrate

test:~/files/GitLab/new_geo/geometrika$ python manage.py migrate
Traceback (most recent call last):
  File "manage.py", line 9, in <module>
    from configurations.management import execute_from_command_line
  File "/usr/local/lib/python2.7/dist-packages/configurations/management.py", line 3, in <module>
    importer.install(check_options=True)
  File "/usr/local/lib/python2.7/dist-packages/configurations/importer.py", line 49, in install
    importer = ConfigurationImporter(check_options=check_options)
  File "/usr/local/lib/python2.7/dist-packages/configurations/importer.py", line 67, in __init__
    self.check_options()
  File "/usr/local/lib/python2.7/dist-packages/configurations/importer.py", line 85, in check_options
    parser = base.CommandParser(None,
AttributeError: 'module' object has no attribute 'CommandParser'

git clone returned non-zero exit status 128

I was following the quickstart and I get the error below.

Am I doing something wrong?

albe@vamp398:/srv/dkr/532dkrcollection/534-cookiecutters/534c-wfish-local$ cookiecutter [email protected]:wildfish/wildfish-django-starter.git
The authenticity of host 'github.com (140.82.114.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Traceback (most recent call last):
  File "/home/albe/.local/bin/cookiecutter", line 11, in <module>
    sys.exit(main())
  File "/home/albe/.local/lib/python3.5/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/albe/.local/lib/python3.5/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/albe/.local/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/albe/.local/lib/python3.5/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/albe/.local/lib/python3.5/site-packages/cookiecutter/cli.py", line 152, in main
    skip_if_file_exists=skip_if_file_exists,
  File "/home/albe/.local/lib/python3.5/site-packages/cookiecutter/main.py", line 74, in cookiecutter
    directory=directory,
  File "/home/albe/.local/lib/python3.5/site-packages/cookiecutter/repository.py", line 114, in determine_repo_dir
    no_input=no_input,
  File "/home/albe/.local/lib/python3.5/site-packages/cookiecutter/vcs.py", line 104, in clone
    stderr=subprocess.STDOUT,
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'clone', '[email protected]:wildfish/wildfish-django-starter.git']' returned non-zero exit status 128

Git Pull on Windows, checkout fails to create {{cookiecutter.model_name|lower}}_list.html

error: unable to create file {{cookiecutter.project_name}}/templates/{{cookiecutter.app_name}}/{{cookiecutter.model_name|lower}}_list.html (Invalid argument)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

Nothing after this: {{cookiecutter.project_name}}/templates/{{cookiecutter.app_name}} gets created.
Windows does not allow a pipe in a filename |.

{{cookiecutter.model_name|lower} is a no go in Windows.

the installation instruction miss few things

Hi,

I tried to follow your installation instructions and it seems that python manage.py migrate crash on loading configuration module.

$ python manage.py migrate
Traceback (most recent call last):
File "manage.py", line 9, in
from configurations.management import execute_from_command_line
ImportError: No module named 'configurations'

If you intend this skeleton to be used by more ppl you might want to address the installation steps so this error does not appear.

I will look up how the configurations module works for django and post steps I had to do in order to get your project template to a working state. It might be useful for some other ppl that tries to use your template for the first time.

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.