dergut / stundenzettelcreator Goto Github PK
View Code? Open in Web Editor NEWA simple web app that automatically creates timesheets and mails them to you.
Home Page: https://stundenzettel-production.herokuapp.com
A simple web app that automatically creates timesheets and mails them to you.
Home Page: https://stundenzettel-production.herokuapp.com
To increase the response time during document generation:
ERROR:django.request:Internal Server Error: /contact/
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: Traceback (most recent call last):
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: response = get_response(request)
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: response = self.process_exception_by_middleware(e, request)
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: response = wrapped_callback(request, *callback_args, **callback_kwargs)
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/views/generic/base.py", line 68, in view
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: return self.dispatch(request, *args, **kwargs)
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/views/generic/base.py", line 88, in dispatch
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: return handler(request, *args, **kwargs)
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/views/generic/edit.py", line 182, in post
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: if form.is_valid():
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/forms/forms.py", line 183, in is_valid
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: return self.is_bound and not self.errors
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/forms/forms.py", line 175, in errors
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: self.full_clean()
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/forms/forms.py", line 384, in full_clean
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: self._clean_fields()
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/django/forms/forms.py", line 405, in _clean_fields
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: value = getattr(self, 'clean_%s' % name)()
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: File "/app/.heroku/python/lib/python3.6/site-packages/contact_form/forms.py", line 147, in clean_body
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: blog_url=getattr(settings, 'AKISMET_BLOG_URL', None)
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: TypeError: __init__() got an unexpected keyword argument 'key'
Feb 17 18:10:57 stundenzettel-staging-1 app/web.1: 10.126.161.90 - - [17/Feb/2019:18:10:57 +0100] "POST /contact/ HTTP/1.1" 500 27 "https://stundenzettel-staging-1.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15"
Since December 24th is a public holiday in Lower Saxony, it's not allowed to fill in working hours on that date. The creator app does but that, so an exception for that day would be great.
The current implementation raises a RuntimeError if the hours that should be worked cannot be spread over the month.
The logic should be separated from calls to datetime.datetime.today()
. This enables tests to work regardless of the date of execution
As the validation cannot run against some specific month or date range, some constant might be useful (e.g. 6 * 5 * 30 hours for 6 working hours in 5 days per week)
This should prevent people from spamming other inboxes
The SECRET_KEY can be generated automatically. Variables for email hosts etc. should at least throw some useful error message
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.