Will & Skill Developers

Will & Skill Developers


Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.

Tags


avrt
Mohammed H
Author

Mohammed H

How to submit package to PyPi

Hi there. So we meet again. I just created a simple django package (django-session-notifier) and submitted it to PyPI. Therefore I want to share me experience on how you submit your python package to PyPI. Structure Let's say that our package has the name "awesome_pypi_package" and that it…

Mohammed H Mohammed H

Unique and slugify Django filename

utils.py from django.utils.text import slugify import time import os class UniqueFilenameUtil: def __init__(self, directory): self.directory = directory def unique_filename(self, instance, filename): epoch_time = int(time.time()) slugify_filename = slugify(filename)…

Mohammed H Mohammed H

How to deploy a firebase project

Navigate to your project directory and install firebase-tools: npm install firebase-tools --save Authenticate to firebase firebase login Initialize as firebase project firebase init Deploy to firebase firebase deploy When prompt select the following: ? What Firebase do you want to use? (*Select your…

Mohammed H Mohammed H