Customization prep

This commit is contained in:
Daniel Greenfeld 2013-08-16 18:23:22 +02:00
parent 0fba2400fa
commit a2195db9ae
5 changed files with 18 additions and 4 deletions

View File

@ -30,3 +30,8 @@ Using this template
$ pip install cookiecutter $ pip install cookiecutter
$ cookiecutter https://github.com/sloria/cookiecutter-dj-project.git $ cookiecutter https://github.com/sloria/cookiecutter-dj-project.git
"Your Stuff"
-------------
Scattered throughout the Python and HTML of this project are places marked with "your stuff". This is where third-party libraries are to be integrated with your project.

View File

@ -0,0 +1 @@
web: python {{cookiecutter.repo_name}}/manage.py run_gunicorn --settings=config.settings -b "0.0.0.0:$PORT" -w 3

View File

@ -141,6 +141,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.tz', 'django.core.context_processors.tz',
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
'django.core.context_processors.request', 'django.core.context_processors.request',
# Your stuff: custom template context processers go here
) )
@ -182,7 +183,7 @@ THIRD_PARTY_APPS = (
# Apps specific for this project go here. # Apps specific for this project go here.
LOCAL_APPS = ( LOCAL_APPS = (
'users', # custom users app 'users', # custom users app
# Your custom apps go here # Your stuff: custom apps go here
) )
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps # See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
@ -206,7 +207,6 @@ WSGI_APPLICATION = 'config.wsgi.application'
########## End URL Configuration ########## End URL Configuration
########## django-secure ########## django-secure
INSTALLED_APPS += ("djangosecure", ) INSTALLED_APPS += ("djangosecure", )
# set this to 60 seconds and then to 518400 when you can prove it works # set this to 60 seconds and then to 518400 when you can prove it works
@ -349,3 +349,7 @@ LOGGING = {
} }
} }
########## END LOGGING CONFIGURATION ########## END LOGGING CONFIGURATION
########## Your stuff: Below this line define 3rd party libary settings

View File

@ -28,7 +28,7 @@ urlpatterns = patterns('',
# Uncomment the next line to enable avatars # Uncomment the next line to enable avatars
#url(r'^avatar/', include('avatar.urls')), #url(r'^avatar/', include('avatar.urls')),
# Your custom urls go here # Your stuff: custom urls go here
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

View File

@ -16,6 +16,8 @@
<!-- Latest compiled and minified CSS --> <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css"> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css">
<!-- Your stuff: Third-party css libraries go here -->
<!-- This file store project specific CSS --> <!-- This file store project specific CSS -->
<link href="{% static 'css/project.css' %}" rel="stylesheet"> <link href="{% static 'css/project.css' %}" rel="stylesheet">
{% endblock %} {% endblock %}
@ -67,7 +69,9 @@
{% block javascript %} {% block javascript %}
<script src="http://code.jquery.com/jquery-latest.js"></script> <script src="http://code.jquery.com/jquery-latest.js"></script>
<!-- Latest compiled and minified JavaScript --> <!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/js/bootstrap.min.js"></scrip <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/js/bootstrap.min.js"></script>
<!-- Your stuff: Third-party javascript libraries go here -->
<!-- place project specific Javascript in this file --> <!-- place project specific Javascript in this file -->
<script src="{% static 'js/project.js' %}"></script> <script src="{% static 'js/project.js' %}"></script>