-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create django-app using pydanny/cookiecutter-django
This is mostly a clean install from cookiecutter, with modifications to merge the pre-existing gitignore and rename README.rst to README_DEV.rst to avoid conflicts.
- Loading branch information
Showing
92 changed files
with
3,343 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[run] | ||
include = influencetx/* | ||
omit = *migrations*, *tests* | ||
plugins = | ||
django_coverage_plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{py,rst,ini}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.py] | ||
line_length=120 | ||
known_first_party=influencetx | ||
multi_line_output=3 | ||
default_section=THIRDPARTY | ||
|
||
[*.{html,css,scss,json,yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[nginx.conf] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[MASTER] | ||
load-plugins=pylint_common, pylint_django | ||
|
||
[FORMAT] | ||
max-line-length=120 | ||
|
||
[MESSAGES CONTROL] | ||
disable=missing-docstring,invalid-name | ||
|
||
[DESIGN] | ||
max-parents=13 | ||
|
||
[TYPECHECK] | ||
generated-members=REQUEST,acl_users,aq_parent,"[a-zA-Z]+_set{1,2}",save,delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sudo: true | ||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq build-essential gettext python-dev zlib1g-dev libpq-dev xvfb | ||
- sudo apt-get install -qq libtiff4-dev libjpeg8-dev libfreetype6-dev liblcms1-dev libwebp-dev | ||
- sudo apt-get install -qq graphviz-dev python-setuptools python3-dev python-virtualenv python-pip | ||
- sudo apt-get install -qq firefox automake libtool libreadline6 libreadline6-dev libreadline-dev | ||
- sudo apt-get install -qq libsqlite3-dev libxml2 libxml2-dev libssl-dev libbz2-dev wget curl llvm | ||
language: python | ||
python: | ||
- "3.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
open-austin-devs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
influencetx | ||
=========== | ||
|
||
Texas campaign finance and voting records app. | ||
|
||
.. image:: https://img.shields.io/badge/built%20with-Cookiecutter%20Django-ff69b4.svg | ||
:target: https://github.com/pydanny/cookiecutter-django/ | ||
:alt: Built with Cookiecutter Django | ||
|
||
|
||
Settings | ||
-------- | ||
|
||
Moved to settings_. | ||
|
||
.. _settings: http://cookiecutter-django.readthedocs.io/en/latest/settings.html | ||
|
||
Basic Commands | ||
-------------- | ||
|
||
Setting Up Your Users | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
* To create a **normal user account**, just go to Sign Up and fill out the form. Once you submit it, you'll see a "Verify Your E-mail Address" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go. | ||
|
||
* To create an **superuser account**, use this command:: | ||
|
||
$ python manage.py createsuperuser | ||
|
||
For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users. | ||
|
||
Test coverage | ||
^^^^^^^^^^^^^ | ||
|
||
To run the tests, check your test coverage, and generate an HTML coverage report:: | ||
|
||
$ coverage run manage.py test | ||
$ coverage html | ||
$ open htmlcov/index.html | ||
|
||
Running tests with py.test | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
:: | ||
|
||
$ py.test | ||
|
||
Live reloading and Sass CSS compilation | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Moved to `Live reloading and SASS compilation`_. | ||
|
||
.. _`Live reloading and SASS compilation`: http://cookiecutter-django.readthedocs.io/en/latest/live-reloading-and-sass-compilation.html | ||
|
||
|
||
|
||
|
||
|
||
Sentry | ||
^^^^^^ | ||
|
||
Sentry is an error logging aggregator service. You can sign up for a free account at https://sentry.io/signup/?code=cookiecutter or download and host it yourself. | ||
The system is setup with reasonable defaults, including 404 logging and integration with the WSGI application. | ||
|
||
You must set the DSN url in production. | ||
|
||
|
||
Deployment | ||
---------- | ||
|
||
The following details how to deploy this application. | ||
|
||
|
||
|
||
|
Empty file.
Empty file.
Oops, something went wrong.