Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,3 +2,4 @@
.github
.gitignore
.venv
tmp
45 changes: 35 additions & 10 deletions .env.example
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,45 @@
SECRET_KEY='django-insecure-sm^36&t1s@ox08&3--loi_qa=u)wrsl!+eq5y^kw0h9b1r#+uw'
DEBUG=True
ALLOWED_HOSTS='localhost 127.0.0.1 [::1]'
CORS_ALLOWED_ORIGINS='http://localhost'
TIME_ZONE='Europe/London'
APP_ENV=development
SIGNING_KEY=2de5c7b55db0e2bcbaac7a135e7b0cf340da8dba93f8c6d4f5ef0934887c834b
APP_URL=http://localhost:8000
SECRET_KEY='django-insecure-change-me'
DEBUG=False
ALLOWED_HOSTS=''
CORS_ALLOWED_ORIGINS=''
Comment thread
kkamara marked this conversation as resolved.
TIME_ZONE=UTC
APP_ENV=local
CONNECTION=sqlite
MARIADB_DATABASE=python_selenium
MARIADB_DATABASE=boilerplate
MARIADB_HOST=localhost
MARIADB_USER=root
MARIADB_PASSWORD=
MARIADB_HOST=localhost
MARIADB_PORT=3306
EMAIL_HOST=mailhog
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_PORT=1025
EMAIL_USE_TLS=False
DOMAIN=localhost
MAILGUN_DOMAIN=
MAILGUN_SECRET=
MAIL_TO_ADDRESS=recipient@example.com
MAIL_FROM_ADDRESS="No Reply <noreply@python-boilerplate.com>"
MAIL_SUBJECT="Email Notification"

# Optional production hardening settings
# SECURE_SSL_REDIRECT=True
# SESSION_COOKIE_SECURE=True
# CSRF_COOKIE_SECURE=True
# SECURE_HSTS_SECONDS=31536000
# SECURE_HSTS_INCLUDE_SUBDOMAINS=True
# SECURE_HSTS_PRELOAD=True
# CSRF_TRUSTED_ORIGINS='https://localhost'

# Previous settings but for local development
SECURE_SSL_REDIRECT=False
SESSION_COOKIE_SECURE=False
CSRF_COOKIE_SECURE=False
SECURE_HSTS_SECONDS=0
SECURE_HSTS_INCLUDE_SUBDOMAINS=False
SECURE_HSTS_PRELOAD=False
CSRF_TRUSTED_ORIGINS='http://localhost'

USE_X_FORWARDED_PROTO=False

SELENIUM_HEADLESS=False
20 changes: 0 additions & 20 deletions .env.testing

This file was deleted.

9 changes: 0 additions & 9 deletions .envs/.local/.mariadb

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -41,7 +41,9 @@ jobs:
# Xvfb is case-sensitive
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- name: Create environment file
run: cp .env.testing .env
run: |
cp .env.example .env
sed -i "s/APP_ENV=local/APP_ENV=testing/g" .env
- name: Install Dependencies
run: pip install --no-input -vqr requirements.txt
- name: See your Python code do web browsing on your screen with GUI
Expand Down
288 changes: 3 additions & 285 deletions .gitignore
Original file line numberDiff line numberDiff line change
@@ -1,288 +1,6 @@
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
# build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
staticfiles/
mediafiles/

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# pyenv
.python-version



# Environments
.venv
venv/
env/

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/


### Node template
# Logs
# logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity


### Linux template
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*


### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/





### Windows template
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


### macOS template
# General
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### SublimeText template
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Workspace files are user-specific
*.sublime-workspace

# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project

# SFTP configuration file
sftp-config.json

# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache

# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings


### Vim template
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]

# Session
Session.vim

# Temporary
.netrwhist

# Auto-generated tag files
tags

### Project template
django_app/media/

.pytest_cache/
.ipython/
.env
.envs/*
!.envs/.local/

.idea
client/node_modules
db.sqlite3
migrations/
nohup.out
screenshots/
tmp
/tmp
/env
/static
.env
Loading