Giter VIP home page Giter VIP logo

django-template's Introduction

For information on how to use this project template, check out the wiki.

{{ project_name }}

Table of Contents

Requirements

  • Homebrew (not quite a "requirement" but recommended)

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  • Python 3

    brew install python
    
  • pip (should come bundled when installing Python 3 via Homebrew)

  • PostgreSQL 10.4

    brew install postgresql
    

Local Development

  1. Set up the Python virtual environment.

    python3 -m venv venv
    
  2. Run the make setup task. This will install all requirements, link local settings, initialize the local development database, and run all migrations.

    make setup
    
  3. Set up the Git hooks (optional).

    make setup-git-hooks
    
  4. Start the local development server and Sass.

    foreman start -f Procfile.dev
    

    Map "local.{{ project_name }}.com" to 127.0.0.0 using DNS. If you haven't yet registered a domain, add the following line to your /etc/hosts file.

    127.0.0.1 local.{{ project_name }}.com
    

    After you've done that, open your browser and navigate to "[local.{{ project_name }}.com](http://local.{{ project_name }}.com)". Your project is now running!

django-template's People

Contributors

dependabot[bot] avatar dlo avatar eolszewski 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-template's Issues

Outdated GA tag

The google analytics tag in templates/base.html uses the old analytics.js tag. Perhaps the newer gtag.js would be better.

error installing django-memcache < 1.5x

Probably just needs a version bump in the requirements file. seems > 1.5 fixed the problem.

error:

(api)> $ pip3 install -r requirements.txt
Collecting https://github.com/jmoiron/johnny-cache/archive/37e75019625979487f17b47050da7f0af3fea42c.zip (from -r requirements.txt (line 14))
  Downloading https://github.com/jmoiron/johnny-cache/archive/37e75019625979487f17b47050da7f0af3fea42c.zip (64kB)
    100% |████████████████████████████████| 65kB 467kB/s
Collecting django==1.8 (from -r requirements.txt (line 1))
  Using cached Django-1.8-py2.py3-none-any.whl
Collecting psycopg2==2.5.3 (from -r requirements.txt (line 2))
  Using cached psycopg2-2.5.3.tar.gz
Collecting py-bcrypt==0.4 (from -r requirements.txt (line 3))
  Using cached py-bcrypt-0.4.tar.gz
Collecting python-memcached==1.48 (from -r requirements.txt (line 4))
  Using cached python-memcached-1.48.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/private/var/folders/8b/t5vzcjk15txbf8vcwx41kc5w0000gn/T/pip-build-j_uuyzlj/python-memcached/setup.py", line 4, in <module>
        import memcache
      File "/private/var/folders/8b/t5vzcjk15txbf8vcwx41kc5w0000gn/T/pip-build-j_uuyzlj/python-memcached/memcache.py", line 393
        except socket.error, msg:
                           ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/8b/t5vzcjk15txbf8vcwx41kc5w0000gn/T/pip-build-j_uuyzlj/python-memcached

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.