mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 19:14:03 +03:00
When developing on Windows, only install psycopg2 in test/prod.
This commit is contained in:
parent
a7c2cf8f56
commit
c98934d7d5
|
@ -2,6 +2,10 @@
|
|||
All enhancements and patches to cookiecutter-django will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [2015-10-19]
|
||||
### Changed
|
||||
- On Windows, don't install psycopg2 locally. Still install it in test/prod which are assumed to be Unix. (@audreyr)
|
||||
|
||||
## [2015-10-15]
|
||||
### Changed
|
||||
- Made `post_gen_hook` function to change secret keys in files more generic (@pydanny)
|
||||
|
|
|
@ -24,8 +24,13 @@ Pillow==3.0.0
|
|||
# Well-built with regular release cycles!
|
||||
django-allauth==0.23.0
|
||||
|
||||
# For the persistence stores
|
||||
{% if cookiecutter.windows == 'y' -%}
|
||||
# On Windows, you must download/install psycopg2 manually
|
||||
# from http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg
|
||||
{% else %}
|
||||
# Python-PostgreSQL Database Adapter
|
||||
psycopg2==2.6.1
|
||||
{%- endif %}
|
||||
|
||||
# Unicode slugification
|
||||
unicode-slugify==0.1.3
|
||||
|
|
|
@ -2,6 +2,13 @@
|
|||
# production that isn't in development.
|
||||
-r base.txt
|
||||
|
||||
{% if cookiecutter.windows == 'y' -%}
|
||||
# Python-PostgreSQL Database Adapter
|
||||
# If using Win for dev, this assumes Unix in prod
|
||||
# ------------------------------------------------
|
||||
psycopg2==2.6.1
|
||||
{%- endif %}
|
||||
|
||||
# WSGI Handler
|
||||
# ------------------------------------------------
|
||||
gevent==1.0.2
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
# Test dependencies go here.
|
||||
-r base.txt
|
||||
|
||||
{% if cookiecutter.windows == 'y' -%}
|
||||
# Python-PostgreSQL Database Adapter
|
||||
# If using Win for dev, this assumes Unix in test/prod
|
||||
psycopg2==2.6.1
|
||||
{%- endif %}
|
||||
|
||||
coverage==4.0
|
||||
flake8==2.4.1
|
||||
django-test-plus==1.0.9
|
||||
|
|
Loading…
Reference in New Issue
Block a user