<commit_before>Django instalacija koplet
=========================



COOKIECUTTER
^^^^^^^^^^^^
::
 
    sudo apt-get update
    sudo apt-get install cookiecutter
    pip install --upgrade cookiecutter
    git clone <EMAIL>:audreyr/cookiecutter-pypackage.git
	cookiecutter cookiecutter-pypackage 

lahko pa kar direktno 
::

	cookiecutter <EMAIL>@github.com:audreyr/cookiecutter-pypackage.git


PYTHON 3.6.3
^^^^^^^^^^^^
v Ubuntuju je že instaliran. Ne ravno zadnja različic.
sicer pa pojdi na https://www.python.org/downloads/python3.6.3
extrahiraj in v direktoriju Python-3.6.3
::

    ./configure
    sudo make
    sudo make install

VIRTUALNO OKOLJE
^^^^^^^^^^^^^^^^

sudo pip3 install https://github.com/pypa/virtualenv/tarball/master je opcija z zadnjo verzijo
LOCAL je ime novega virtualnega okolja, ki ga bomo rabili za development
::

    sudo pip3 install virtualenv 
    sudo pip3 install https://github.com/pypa/virtualenv/tarball/master    
    virtualenv local(moje virtualno okolje) 

OKOLJE ZA DEVELOPMENT(local)
^^^^^^^^^^^^^^^^^^^^^

mogoče je treba s sudo pip3
v requirements/local.txt so naloženi programi za development
???? preberi si kako spremenimo requirements itd 

::
	source local/bin/activate
	pip install -r requirements/local.txt

POSTGRES
^^^^^^^^

v serverju postgres ustvarimo bazo
::
	sudo su -l postgres
	createdb bac 

DJANGO
^^^^^^
::

    python manage.py runserver
    python manage.py migrate

READTHEDOCS
^^^^^^^^^^^
::
za lepo html obliko navodil ali tudi modelsov in ostalega
v index.rst vpišemo ime fajla "navodila"<commit_msg>popravek<commit_after>Django instalacija koplet
=========================

COOKIECUTTER S PREDNASTAVLJENIM DJANGOM
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mogoče, boš moral zagnati v virtualnemu okolju.
Mislim, da zaradi poti do pythona
::
 
    sudo apt-get update
    sudo apt-get install cookiecutter
    pip install --upgrade cookiecutter
    cookiecutter https://github.com/pydanny/cookiecutter-django 

VIRTUALNO OKOLJE in OKOLJE ZA DEVELOPMENT
^^^^^^^^^^^^^^^^
V virtualnemu okolju, ki smo ga poimenovali local in v direktoriju bac inštaliramo okolje za development z vsemi potrebnimi programi. tudi za postgres.

::
	source local/bin/activate
	cd bac
	pip install -r requirements/local.txt 

POSTGRES
^^^^^^^^

v serverju postgres ustvarimo bazo
::
	sudo su -l postgres
	createdb bac 

DJANGO
^^^^^^
::

    python manage.py runserver
    python manage.py migrate


READTHEDOCS
^^^^^^^^^^^
::
za lepo html obliko navodil ali tudi modelsov in ostalega
v index.rst vpišemo ime fajla "navodila"
{'fraction_non_alphanumeric': 0.13652275379229872, 'fraction_numerical': 0.005056398288603656, 'mean_word_length': 4.259713701431493, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4704994', 'n_tokens_mistral': 966, 'n_tokens_neox': 898, 'n_words': 257}