Skip to content

Instantly share code, notes, and snippets.

View imbaczek's full-sized avatar
🏠
Working from home

Marek Baczyński imbaczek

🏠
Working from home
View GitHub Profile
@imbaczek
imbaczek / tailserver.py
Created January 25, 2020 12:19
Tailing websocket server for Python using websockets module
# OSI License ID: Apache-2.0
#
# Copyright 2020 Marek Baczyński
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@imbaczek
imbaczek / relpath.py
Created September 28, 2010 12:22 — forked from tomazk/relpath.py
'''
If you allways endup googleing how to code down relative paths inside django's
settings.py file using the os.path module, you should consider bookmarking this
code snippet
Usage inside settings.py:
SITE_ROOT = site_root_path(__file__)
.
.
.