Skip to content

Commit 39d5d7c

Browse files
author
vCra
committed
inital commit
0 parents  commit 39d5d7c

File tree

98 files changed

+39044
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+39044
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.gitignore

Lines changed: 330 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,330 @@
1+
### Python template
2+
# Byte-compiled / optimized / DLL files
3+
__pycache__/
4+
*.py[cod]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
staticfiles/
55+
56+
# Sphinx documentation
57+
docs/_build/
58+
59+
# PyBuilder
60+
target/
61+
62+
# pyenv
63+
.python-version
64+
65+
66+
67+
# Environments
68+
.venv
69+
venv/
70+
ENV/
71+
72+
# Rope project settings
73+
.ropeproject
74+
75+
# mkdocs documentation
76+
/site
77+
78+
# mypy
79+
.mypy_cache/
80+
81+
82+
### Node template
83+
# Logs
84+
logs
85+
*.log
86+
npm-debug.log*
87+
yarn-debug.log*
88+
yarn-error.log*
89+
90+
# Runtime data
91+
pids
92+
*.pid
93+
*.seed
94+
*.pid.lock
95+
96+
# Directory for instrumented libs generated by jscoverage/JSCover
97+
lib-cov
98+
99+
# Coverage directory used by tools like istanbul
100+
coverage
101+
102+
# nyc test coverage
103+
.nyc_output
104+
105+
# Bower dependency directory (https://bower.io/)
106+
bower_components
107+
108+
# node-waf configuration
109+
.lock-wscript
110+
111+
# Compiled binary addons (http://nodejs.org/api/addons.html)
112+
build/Release
113+
114+
# Dependency directories
115+
node_modules/
116+
jspm_packages/
117+
118+
# Typescript v1 declaration files
119+
typings/
120+
121+
# Optional npm cache directory
122+
.npm
123+
124+
# Optional eslint cache
125+
.eslintcache
126+
127+
# Optional REPL history
128+
.node_repl_history
129+
130+
# Output of 'npm pack'
131+
*.tgz
132+
133+
# Yarn Integrity file
134+
.yarn-integrity
135+
136+
137+
### Linux template
138+
*~
139+
140+
# temporary files which can be created if a process still has a handle open of a deleted file
141+
.fuse_hidden*
142+
143+
# KDE directory preferences
144+
.directory
145+
146+
# Linux trash folder which might appear on any partition or disk
147+
.Trash-*
148+
149+
# .nfs files are created when an open file is removed but is still being accessed
150+
.nfs*
151+
152+
153+
### VisualStudioCode template
154+
.vscode/*
155+
!.vscode/settings.json
156+
!.vscode/tasks.json
157+
!.vscode/launch.json
158+
!.vscode/extensions.json
159+
160+
161+
# Provided default Pycharm Run/Debug Configurations should be tracked by git
162+
# In case of local modifications made by Pycharm, use update-index command
163+
# for each changed file, like this:
164+
# git update-index --assume-unchanged .idea/abercompsoc.iml
165+
### JetBrains template
166+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
167+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
168+
169+
# User-specific stuff:
170+
.idea/**/workspace.xml
171+
.idea/**/tasks.xml
172+
.idea/dictionaries
173+
174+
# Sensitive or high-churn files:
175+
.idea/**/dataSources/
176+
.idea/**/dataSources.ids
177+
.idea/**/dataSources.xml
178+
.idea/**/dataSources.local.xml
179+
.idea/**/sqlDataSources.xml
180+
.idea/**/dynamic.xml
181+
.idea/**/uiDesigner.xml
182+
183+
# Gradle:
184+
.idea/**/gradle.xml
185+
.idea/**/libraries
186+
187+
# CMake
188+
cmake-build-debug/
189+
190+
# Mongo Explorer plugin:
191+
.idea/**/mongoSettings.xml
192+
193+
## File-based project format:
194+
*.iws
195+
196+
## Plugin-specific files:
197+
198+
# IntelliJ
199+
out/
200+
201+
# mpeltonen/sbt-idea plugin
202+
.idea_modules/
203+
204+
# JIRA plugin
205+
atlassian-ide-plugin.xml
206+
207+
# Cursive Clojure plugin
208+
.idea/replstate.xml
209+
210+
# Crashlytics plugin (for Android Studio and IntelliJ)
211+
com_crashlytics_export_strings.xml
212+
crashlytics.properties
213+
crashlytics-build.properties
214+
fabric.properties
215+
216+
217+
218+
### Windows template
219+
# Windows thumbnail cache files
220+
Thumbs.db
221+
ehthumbs.db
222+
ehthumbs_vista.db
223+
224+
# Dump file
225+
*.stackdump
226+
227+
# Folder config file
228+
Desktop.ini
229+
230+
# Recycle Bin used on file shares
231+
$RECYCLE.BIN/
232+
233+
# Windows Installer files
234+
*.cab
235+
*.msi
236+
*.msm
237+
*.msp
238+
239+
# Windows shortcuts
240+
*.lnk
241+
242+
243+
### macOS template
244+
# General
245+
*.DS_Store
246+
.AppleDouble
247+
.LSOverride
248+
249+
# Icon must end with two \r
250+
Icon
251+
252+
# Thumbnails
253+
._*
254+
255+
# Files that might appear in the root of a volume
256+
.DocumentRevisions-V100
257+
.fseventsd
258+
.Spotlight-V100
259+
.TemporaryItems
260+
.Trashes
261+
.VolumeIcon.icns
262+
.com.apple.timemachine.donotpresent
263+
264+
# Directories potentially created on remote AFP share
265+
.AppleDB
266+
.AppleDesktop
267+
Network Trash Folder
268+
Temporary Items
269+
.apdisk
270+
271+
272+
### SublimeText template
273+
# Cache files for Sublime Text
274+
*.tmlanguage.cache
275+
*.tmPreferences.cache
276+
*.stTheme.cache
277+
278+
# Workspace files are user-specific
279+
*.sublime-workspace
280+
281+
# Project files should be checked into the repository, unless a significant
282+
# proportion of contributors will probably not be using Sublime Text
283+
# *.sublime-project
284+
285+
# SFTP configuration file
286+
sftp-config.json
287+
288+
# Package control specific files
289+
Package Control.last-run
290+
Package Control.ca-list
291+
Package Control.ca-bundle
292+
Package Control.system-ca-bundle
293+
Package Control.cache/
294+
Package Control.ca-certs/
295+
Package Control.merged-ca-bundle
296+
Package Control.user-ca-bundle
297+
oscrypto-ca-bundle.crt
298+
bh_unicode_properties.cache
299+
300+
# Sublime-github package stores a github token in this file
301+
# https://packagecontrol.io/packages/sublime-github
302+
GitHub.sublime-settings
303+
304+
305+
### Vim template
306+
# Swap
307+
[._]*.s[a-v][a-z]
308+
[._]*.sw[a-p]
309+
[._]s[a-v][a-z]
310+
[._]sw[a-p]
311+
312+
# Session
313+
Session.vim
314+
315+
# Temporary
316+
.netrwhist
317+
318+
# Auto-generated tag files
319+
tags
320+
321+
322+
### Project template
323+
324+
programdom/media/
325+
326+
.pytest_cache/
327+
.env
328+
.envs/*
329+
330+
\.idea/

.pylintrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[MASTER]
2+
load-plugins=pylint_common, pylint_django
3+
4+
[FORMAT]
5+
max-line-length=120
6+
7+
[MESSAGES CONTROL]
8+
disable=missing-docstring,invalid-name
9+
10+
[DESIGN]
11+
max-parents=13
12+
13+
[TYPECHECK]
14+
generated-members=REQUEST,acl_users,aq_parent,"[a-zA-Z]+_set{1,2}",save,delete

compose/local/django/Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM python:3.7-alpine
2+
3+
ENV PYTHONUNBUFFERED 1
4+
5+
RUN apk update \
6+
# psycopg2 dependencies
7+
&& apk add --virtual build-deps gcc python3-dev musl-dev \
8+
&& apk add postgresql-dev \
9+
# Pillow dependencies
10+
&& apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev \
11+
# CFFI dependencies
12+
&& apk add libffi-dev py-cffi \
13+
# Translations dependencies
14+
&& apk add gettext \
15+
# https://docs.djangoproject.com/en/dev/ref/django-admin/#dbshell
16+
&& apk add postgresql-client
17+
18+
# Requirements are installed here to ensure they will be cached.
19+
COPY ./requirements /requirements
20+
RUN pip install -r /requirements/local.txt
21+
22+
COPY ./compose/local/django/entrypoint /entrypoint
23+
RUN sed -i 's/\r//' /entrypoint
24+
RUN chmod +x /entrypoint
25+
26+
COPY ./compose/local/django/start /start
27+
RUN sed -i 's/\r//' /start
28+
RUN chmod +x /start
29+
30+
WORKDIR /app
31+
32+
ENTRYPOINT ["/entrypoint"]

0 commit comments

Comments
 (0)