Skip to content

Instantly share code, notes, and snippets.

View giorgiberia's full-sized avatar
🎯
Focusing

Giorgi Beria giorgiberia

🎯
Focusing
View GitHub Profile
# it's very easy to remove white spaces from strings
# it can be done using many methods but here we will disscuss some efficient one
# 1. Using replace()
s = " h a c k you r co de " # this function doesn't modify original string
new_s = s.replace(" ","") # here new_s holds new string with no blank spaces at all.
print(new_s)
# the output will be "hackyourcode"
# 2. Using join() and split()
@giorgiberia
giorgiberia / gist:d1e772007170cc2a45d3f3f17c08a0a3
Last active August 21, 2019 11:44 — forked from evildmp/gist:3094281
Set up Django, nginx and uwsgi

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using: