integration of submissions from @luzfcb and @syst3ml00t

This commit is contained in:
Daniel Greenfeld 2013-11-12 07:58:28 -08:00
parent ce591e3d55
commit 5290aed9a1
8 changed files with 82 additions and 15 deletions

View File

@ -25,12 +25,6 @@ Constraints
* PostgreSQL everywhere
* Environment variables for configuration (This won't work with Apache/mod_wsgi).
Caution: Bleeding Edge Requirements
------------------------------------
The cookiecutter-django project is bleeding edge in that it uses the Django 1.6c1 release candidate.
Consider yourself warned.
Usage
------

26
{{cookiecutter.repo_name}}/.gitignore vendored Normal file
View File

@ -0,0 +1,26 @@
# Basics
*.py[cod]
*.pyc
__pycache__
# Logs
*.log
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
nosetests.xml
# Translations
*.mo
*.pot
# Pycharm
.idea
# Vim
*~
*.swp
*.swo

View File

@ -35,6 +35,16 @@ DJANGO_SESSION_COOKIE_SECURE SESSION_COOKIE_SECURE n/a
* TODO: Add vendor-added settings in another table
Developer Installation
-----------------------
For getting this running on your local machine:
1. Set up a virtualenv.
2. Install all the supporting libraries into your virtualenv::
pip install -r requirements/local.txt
Deployment
------------

View File

@ -1,5 +1,5 @@
# Bleeding edge Django
https://github.com/django/django/archive/1.6c1.tar.gz
django==1.6
# Configuration
django-configurations==0.5.1
@ -14,9 +14,7 @@ django-floppyforms==1.1
# Models
South==0.8.2
# hack so django-model-utils doesn't override Django 1.6b4 install
git+git://github.com/pydanny/django-model-utils@d71bf2db7581d91dcc8e0a66fd4859eb8969d256
django-model-utils==1.5.0
# images
Pillow==2.1.0
@ -30,7 +28,7 @@ psycopg2==2.5
# Unicode slugification
unicode-slugify==0.1.1
django-autoslug==1.7.1
django-autoslug==1.7.1
# Useful things
django-avatar==2.0

View File

@ -6,5 +6,4 @@ Sphinx
# django-debug-toolbar that works with Django 1.5+
git+git://github.com/django-debug-toolbar/django-debug-toolbar@7e4ecfd04cfe61b51e1fd6fdf0ce1c800a3ebb3b
django-debug-toolbar==0.11.0

View File

@ -1 +1,33 @@
/*! project specific CSS goes here. */
/* bootstrap alert CSS, translated to the django-standard levels of
** debug, info, success, warning, error */
.alert-debug {
color: black;
background-color: white;
border-color: #d6e9c6;
}
.alert-info {
color: #3a87ad;
background-color: #d9edf7;
border-color: #bce8f1;
}
.alert-success {
color: #468847;
background-color: #dff0d8;
border-color: #d6e9c6;
}
.alert-warning {
color: black;
background-color: orange;
border-color: #d6e9c6;
}
.alert-error {
color: #b94a48;
background-color: #f2dede;
border-color: #eed3d7;
}

View File

@ -52,12 +52,14 @@
<h2>{% trans "Add E-mail Address" %}</h2>
<form method="post" action="" class="add_email">
<form method="post" action="." class="add_email">
{% csrf_token %}
{{ form|crispy }}
<button class="btn" name="action_add" type="submit">{% trans "Add E-mail" %}</button>
</form>
</div>
</div>
</div>
{% endblock %}

View File

@ -52,6 +52,12 @@
</div>
<div class="container">
{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %}alert-{{ message.tags }}"{% endif %}>{{ message }}</div>
{% endfor %}
{% endif %}
{% block content %}
<p>Use this document as a way to quick start any new project.</p>