mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-29 04:54:02 +03:00
integration of submissions from @luzfcb and @syst3ml00t
This commit is contained in:
parent
ce591e3d55
commit
5290aed9a1
|
@ -25,12 +25,6 @@ Constraints
|
||||||
* PostgreSQL everywhere
|
* PostgreSQL everywhere
|
||||||
* Environment variables for configuration (This won't work with Apache/mod_wsgi).
|
* 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
|
Usage
|
||||||
------
|
------
|
||||||
|
|
26
{{cookiecutter.repo_name}}/.gitignore
vendored
Normal file
26
{{cookiecutter.repo_name}}/.gitignore
vendored
Normal 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
|
|
@ -35,6 +35,16 @@ DJANGO_SESSION_COOKIE_SECURE SESSION_COOKIE_SECURE n/a
|
||||||
|
|
||||||
* TODO: Add vendor-added settings in another table
|
* 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
|
Deployment
|
||||||
------------
|
------------
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Bleeding edge Django
|
# Bleeding edge Django
|
||||||
https://github.com/django/django/archive/1.6c1.tar.gz
|
django==1.6
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
django-configurations==0.5.1
|
django-configurations==0.5.1
|
||||||
|
@ -14,9 +14,7 @@ django-floppyforms==1.1
|
||||||
|
|
||||||
# Models
|
# Models
|
||||||
South==0.8.2
|
South==0.8.2
|
||||||
# hack so django-model-utils doesn't override Django 1.6b4 install
|
django-model-utils==1.5.0
|
||||||
git+git://github.com/pydanny/django-model-utils@d71bf2db7581d91dcc8e0a66fd4859eb8969d256
|
|
||||||
|
|
||||||
|
|
||||||
# images
|
# images
|
||||||
Pillow==2.1.0
|
Pillow==2.1.0
|
||||||
|
|
|
@ -6,5 +6,4 @@ Sphinx
|
||||||
|
|
||||||
|
|
||||||
# django-debug-toolbar that works with Django 1.5+
|
# 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
|
||||||
|
|
|
@ -1 +1,33 @@
|
||||||
/*! project specific CSS goes here. */
|
/*! 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;
|
||||||
|
}
|
|
@ -52,12 +52,14 @@
|
||||||
|
|
||||||
<h2>{% trans "Add E-mail Address" %}</h2>
|
<h2>{% trans "Add E-mail Address" %}</h2>
|
||||||
|
|
||||||
<form method="post" action="" class="add_email">
|
<form method="post" action="." class="add_email">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form|crispy }}
|
{{ form|crispy }}
|
||||||
<button class="btn" name="action_add" type="submit">{% trans "Add E-mail" %}</button>
|
<button class="btn" name="action_add" type="submit">{% trans "Add E-mail" %}</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,12 @@
|
||||||
|
|
||||||
<div class="container">
|
<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 %}
|
{% block content %}
|
||||||
<p>Use this document as a way to quick start any new project.</p>
|
<p>Use this document as a way to quick start any new project.</p>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user