Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/APSL/puput-demo
An example blog app using Puput
https://github.com/APSL/puput-demo
Last synced: about 1 month ago
JSON representation
An example blog app using Puput
- Host: GitHub
- URL: https://github.com/APSL/puput-demo
- Owner: APSL
- License: mit
- Created: 2015-09-14T13:13:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T12:10:10.000Z (about 9 years ago)
- Last Synced: 2024-08-02T12:46:39.831Z (4 months ago)
- Language: Python
- Homepage:
- Size: 103 KB
- Stars: 7
- Watchers: 18
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - APSL/puput-demo - An example blog app using Puput (others)
README
puput-demo
==========An example blog app using Puput
Settings
--------puput-demo relies extensively on environment settings which **will not work with Apache/mod_wsgi setups**. It has been deployed successfully with both Gunicorn/Nginx and even uWSGI/Nginx.
For configuration purposes, the following table maps the 'puput-demo' environment variables to their Django setting:
======================================= =========================== ============================================== ======================================================================
Environment Variable Django Setting Development Default Production Default
======================================= =========================== ============================================== ======================================================================
DJANGO_CACHES CACHES (default) locmem redis
DJANGO_DATABASES DATABASES (default) See code See code
DJANGO_DEBUG DEBUG True False
DJANGO_SECRET_KEY SECRET_KEY CHANGEME!!! raises error
DJANGO_SECURE_BROWSER_XSS_FILTER SECURE_BROWSER_XSS_FILTER n/a True
DJANGO_SECURE_SSL_REDIRECT SECURE_SSL_REDIRECT n/a True
DJANGO_SECURE_CONTENT_TYPE_NOSNIFF SECURE_CONTENT_TYPE_NOSNIFF n/a True
DJANGO_SECURE_FRAME_DENY SECURE_FRAME_DENY n/a True
DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS HSTS_INCLUDE_SUBDOMAINS n/a True
DJANGO_SESSION_COOKIE_HTTPONLY SESSION_COOKIE_HTTPONLY n/a True
DJANGO_SESSION_COOKIE_SECURE SESSION_COOKIE_SECURE n/a False
DJANGO_DEFAULT_FROM_EMAIL DEFAULT_FROM_EMAIL n/a "puput_demo "
DJANGO_SERVER_EMAIL SERVER_EMAIL n/a "puput_demo "
DJANGO_EMAIL_SUBJECT_PREFIX EMAIL_SUBJECT_PREFIX n/a "[puput_demo] "
DJANGO_ALLOWED_HOSTS ALLOWED_HOSTS ['*'] ['example.com']
======================================= =========================== ============================================== ======================================================================The following table lists settings and their defaults for third-party applications:
======================================= =========================== ============================================== ======================================================================
Environment Variable Django Setting Development Default Production Default
======================================= =========================== ============================================== ======================================================================
DJANGO_AWS_ACCESS_KEY_ID AWS_ACCESS_KEY_ID n/a raises error
DJANGO_AWS_SECRET_ACCESS_KEY AWS_SECRET_ACCESS_KEY n/a raises error
DJANGO_AWS_STORAGE_BUCKET_NAME AWS_STORAGE_BUCKET_NAME n/a raises errorDJANGO_MAILGUN_API_KEY MAILGUN_ACCESS_KEY n/a raises error
DJANGO_MAILGUN_SERVER_NAME MAILGUN_SERVER_NAME n/a raises error
======================================= =========================== ============================================== ======================================================================