wsl --shutdown notepad "$env:USERPROFILE/.wslconfig"
[wsl2]
memory=3GB # Limits VM memory in WSL 2 up to 3GB
import json | |
input_data = [ | |
{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, | |
{ | |
"name": "Åland Islands", |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
Examples of behavior that contributes to creating a positive environment include:
name | about | title | labels | assignees |
---|---|---|---|---|
Feature request |
Suggest an idea for this project |
Is your feature request related to a problem? Please describe.
from django.contrib import admin | |
from django.urls import path, include | |
from django.conf import settings | |
from django.conf.urls.static import static | |
urlpatterns = [ | |
path('admin/', admin.site.urls), | |
path('', include('authentication.urls')), | |
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) |
web: gunicorn vbp.wsgi | |
release: python manage.py makemigrations --noinput && python manage.py migrate --noinput |
import os | |
def rename_files(folder_name, new_file_name): | |
"""Rename images in a folder""" | |
i = 0 | |
dir = "./" + folder_name | |
for filename in os.listdir(dir): | |
dst = new_file_name + str(i) + ".jpg" | |
src = folder_name + "/" + filename |
#!/bin/bash | |
#update depencies | |
sudo apt update && updgrade -y | |
#install gunicon | |
sudo apt install nginx -y |