Last active
July 21, 2020 06:14
-
-
Save Varnan/c206b13dc5608b6e3e1d to your computer and use it in GitHub Desktop.
Tutorial for python starters for setting their ubuntu work environment .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=========================== SETTING WORKING ENVIORNMENT ========================= | |
sudo apt-get install python-setuptools python-pip postgresql libjpeg62 libjpeg62-dev libpq-dev python-dev python-virtualenv zlib1g-dev libfreetype6 libfreetype6-dev python-psycopg2 libmysqlclient-dev | |
1. Create virtual env through terminal | |
$ virtualenv ENV_Name | |
2. activate our env : | |
$ source bin/activate | |
Eg: meluha@Navigator:~/ENV_Name $ source bin/activate | |
=========================== Let's start project!!! ============================== | |
1. To create a project | |
$ django-admin.py startproject PROJECT_NAME | |
Eg: $ django-admin.py startproject jumpingintodjango | |
Create a 'apps' folder inside project folder | |
2. To create a APPS inside application folder | |
$ python ../manage.py startapp app_name | |
=========================== SUBLIME 3 LICENCE KEY ================================ | |
----- BEGIN LICENSE ----- | |
Andrew Weber | |
Single User License | |
EA7E-855605 | |
813A03DD 5E4AD9E6 6C0EEB94 BC99798F | |
942194A6 02396E98 E62C9979 4BB979FE | |
91424C9D A45400BF F6747D88 2FB88078 | |
90F5CC94 1CDC92DC 8457107A F151657B | |
1D22E383 A997F016 42397640 33F41CFC | |
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D | |
5CDB7036 E56DE1C0 EFCC0840 650CD3A6 | |
B98FC99C 8FAC73EE D2B95564 DF450523 | |
------ END LICENSE ------ | |
============================ MYSQL CONFIGURATION ================================= | |
http://www.saltycrane.com/blog/2008/07/how-set-django-mysql-ubuntu-hardy/ | |
=========================== POSTGRESQL CONFIGURATION ============================== | |
--https://railskey.wordpress.com/2012/05/19/postgresql-installation-in-ubuntu-12-04/ | |
================ SERVER DEPLOYMENT - LINUX PYTHON SERVER =========================== | |
Server Configuration : Nginx, Uwsgi, Virtualenv and Django on Ubuntu 12.04 | |
http://eshlox.net/2012/09/11/nginx-uwsgi-virtualenv-and-django-ubuntu-1204/ | |
http://idroot.net/tutorials/fix-502-bad-gateway-error-nginx/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment