Veille technologique

Python

Projet Crispy Forms.

  • Last login: Thu Oct 26 11:31:16 on console
  • MAC-GS-001:~ gabriel$ cd demo-django-crispy-forms-master
  • MAC-GS-001:demo-django-crispy-forms-master gabriel$ python3 -m venv demo-django-crispy-forms
  • MAC-GS-001:demo-django-crispy-forms-master gabriel$ source demo-django-crispy-forms/bin/activate(demo-django-crispy-forms)
  • MAC-GS-001:demo-django-crispy-forms-master gabriel$ ./manage.py runserver
  • Performing system checks…
  • System check identified no issues (0 silenced).
  • October 26, 2017 - 11:33:14
  • Django version 1.9.6, using settings 'demo_django_crispy_forms.settings'
  • Starting development server at http://127.0.0.1:8000/
  • Quit the server with CONTROL-C.


Projet Blog avec Pelican

MAC-GS-001:~ gabriel$ virtualenv ~/virtualenvs/project3-py2 -p /usr/bin/python2.7 Running virtualenv with interpreter /usr/bin/python2.7 New python executable in /Users/gabriel/virtualenvs/project3-py2/bin/python Installing setuptools, pip, wheel…done.

MAC-GS-001:~ gabriel$ cd virtualenvs

MAC-GS-001:virtualenvs gabriel$ ls project1 project3-py2

MAC-GS-001:virtualenvs gabriel$ cd

MAC-GS-001:~ gabriel$ source ~/virtualenvs/project3-py2/bin/activate (project3-py2)

MAC-GS-001:~ gabriel$ pip install pelican Markdown typogrify Collecting pelican

Downloading pelican-3.7.1-py2.py3-none-any.whl (134kB)
  100% |████████████████████████████████| 143kB 912kB/s 

Collecting Markdown

Using cached Markdown-2.6.9.tar.gz

Collecting typogrify

Using cached typogrify-2.0.7.tar.gz

Collecting blinker (from pelican)

Downloading blinker-1.4.tar.gz (111kB)
  100% |████████████████████████████████| 112kB 794kB/s 

Collecting unidecode (from pelican)

Downloading Unidecode-0.04.21-py2.py3-none-any.whl (228kB)
  100% |████████████████████████████████| 235kB 1.1MB/s 

Collecting feedgenerator>=1.9 (from pelican)

Downloading feedgenerator-1.9.tar.gz (4.1MB)
  100% |████████████████████████████████| 4.1MB 185kB/s 

Collecting six>=1.4 (from pelican)

Using cached six-1.11.0-py2.py3-none-any.whl

Collecting pytz>=0a (from pelican)

Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
  100% |████████████████████████████████| 491kB 931kB/s 

Collecting pygments (from pelican)

Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
  100% |████████████████████████████████| 849kB 683kB/s 

Collecting docutils (from pelican)

Downloading docutils-0.14-py2-none-any.whl (543kB)
  100% |████████████████████████████████| 552kB 828kB/s 

Collecting jinja2>=2.7 (from pelican)

Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB)
  100% |████████████████████████████████| 348kB 1.3MB/s 

Collecting python-dateutil (from pelican)

Downloading python_dateutil-2.6.1-py2.py3-none-any.whl (194kB)
  100% |████████████████████████████████| 194kB 1.1MB/s 

Collecting smartypants>=1.8.3 (from typogrify)

Using cached smartypants-2.0.0-py2.py3-none-any.whl

Collecting MarkupSafe>=0.23 (from jinja2>=2.7→pelican)

Downloading MarkupSafe-1.0.tar.gz

Building wheels for collected packages: Markdown, typogrify, blinker, feedgenerator, MarkupSafe

Running setup.py bdist_wheel for Markdown ... done
Stored in directory: /Users/gabriel/Library/Caches/pip/wheels/bf/46/10/c93e17ae86ae3b3a919c7b39dad3b5ccf09aeb066419e5c1e5
Running setup.py bdist_wheel for typogrify ... done
Stored in directory: /Users/gabriel/Library/Caches/pip/wheels/db/20/a1/3e15e1a8bf1742b5ea6e5d8268088c239de42f608bcb132cd0
Running setup.py bdist_wheel for blinker ... done
Stored in directory: /Users/gabriel/Library/Caches/pip/wheels/7b/8a/eb/5a4f4444f366c515073db8a129c92d4727ad945e5e64b9e8bd
Running setup.py bdist_wheel for feedgenerator ... done
Stored in directory: /Users/gabriel/Library/Caches/pip/wheels/6a/7e/41/7ed20833c4cae3d36c5e373ac5d8d9eee58546b87c1b9505fe
Running setup.py bdist_wheel for MarkupSafe ... done
Stored in directory: /Users/gabriel/Library/Caches/pip/wheels/88/a7/30/e39a54a87bcbe25308fa3ca64e8ddc75d9b3e5afa21ee32d57

Successfully built Markdown typogrify blinker feedgenerator MarkupSafe Installing collected packages: blinker, unidecode, pytz, six, feedgenerator, pygments, docutils, MarkupSafe, jinja2, python-dateutil, pelican, Markdown, smartypants, typogrify Successfully installed Markdown-2.6.9 MarkupSafe-1.0 blinker-1.4 docutils-0.14 feedgenerator-1.9 jinja2-2.9.6 pelican-3.7.1 pygments-2.2.0 python-dateutil-2.6.1 pytz-2017.2 six-1.11.0 smartypants-2.0.0 typogrify-2.0.7 unidecode-0.4.21 (project3-py2)

MAC-GS-001:~ gabriel$ pelican-quickstart Welcome to pelican-quickstart v3.7.1.

This script will help you create a new Pelican-based website.

Please answer the following questions so this script can generate the files needed by Pelican.

> Where do you want to create your new web site? [.]

What will be the title of this web site? blog
Who will be the author of this web site? gabriel
What will be the default language of this web site? [fr]
Do you want to specify a URL prefix? e.g., http://example.com (Y/n) n
Do you want to enable article pagination? (Y/n) y
How many articles per page do you want? [10]
What is your time zone? [Europe/Paris]
Do you want to generate a Fabfile/Makefile to automate generation and publishing? (Y/n) y
Do you want an auto-reload & simpleHTTP script to assist with theme and site development? (Y/n) y
Do you want to upload your website using FTP? (y/N) y
What is the hostname of your FTP server? [localhost]
What is your username on that server? [anonymous] gabriel
Where do you want to put your web site on that server? [/]
Do you want to upload your website using SSH? (y/N)
Do you want to upload your website using Dropbox? (y/N) n
Do you want to upload your website using S3? (y/N) n
Do you want to upload your website using Rackspace Cloud Files? (y/N) n
Do you want to upload your website using GitHub Pages? (y/N) n

Done. Your new project is available at /Users/gabriel (project3-py2) MAC-GS-001:~ gabriel$ ls Applications env Desktop fabfile.py Documents nilshamerlinck.github.io-master Downloads output Library p2.7 Makefile pelicanconf.py Movies projets Music publishconf.py Pictures site_perso Public test blog venv content virtualenvs demo-django-crispy-forms-master workspace develop_server.sh (project3-py2) MAC-GS-001:~ gabriel$ virtualenv blog Using base prefix '/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6' New python executable in /Users/gabriel/blog/bin/python3.6 Also creating executable in /Users/gabriel/blog/bin/python Installing setuptools, pip, wheel…done. (project3-py2) MAC-GS-001:~ gabriel$ ls Applications demo-django-crispy-forms-master Desktop env Documents nilshamerlinck.github.io-master Downloads output Library p2.7 Movies projets Music site_perso Pictures venv Public virtualenvs blog workspace (project3-py2) MAC-GS-001:~ gabriel$ cd blog

(project3-py2) MAC-GS-001:blog gabriel$ pelican-quickstart Welcome to pelican-quickstart v3.7.1.

This script will help you create a new Pelican-based website.

Please answer the following questions so this script can generate the files needed by Pelican.

> Where do you want to create your new web site? [.]

What will be the title of this web site?

You must enter something

What will be the title of this web site? Mon blog
Who will be the author of this web site? gabriel
What will be the default language of this web site? [fr]
Do you want to specify a URL prefix? e.g., http://example.com (Y/n) n
Do you want to enable article pagination? (Y/n) y
How many articles per page do you want? [10]
What is your time zone? [Europe/Paris]
Do you want to generate a Fabfile/Makefile to automate generation and publishing? (Y/n) y
Do you want an auto-reload & simpleHTTP script to assist with theme and site development? (Y/n) y
Do you want to upload your website using FTP? (y/N) n
Do you want to upload your website using SSH? (y/N) n
Do you want to upload your website using Dropbox? (y/N) n
Do you want to upload your website using S3? (y/N) n
Do you want to upload your website using Rackspace Cloud Files? (y/N) n
Do you want to upload your website using GitHub Pages? (y/N) n

Done. Your new project is available at /Users/gabriel/blog (project3-py2) MAC-GS-001:blog gabriel$ ls Makefile fabfile.py pelicanconf.py bin include pip-selfcheck.json content lib publishconf.py develop_server.sh output (project3-py2) MAC-GS-001:blog gabriel$ mkdir content/pages (project3-py2) MAC-GS-001:blog gabriel$ ls Makefile fabfile.py pelicanconf.py bin include pip-selfcheck.json content lib publishconf.py develop_server.sh output (project3-py2) MAC-GS-001:blog gabriel$ mkdir content/images (project3-py2) MAC-GS-001:blog gabriel$ mkdir extra (project3-py2) MAC-GS-001:blog gabriel$ sudo nano pelican.conf Password: (project3-py2) MAC-GS-001:blog gabriel$ sudo nano pelicanconf.py (project3-py2) MAC-GS-001:blog gabriel$ sudo nano pelicanconf.py Password: (project3-py2) MAC-GS-001:blog gabriel$ sudo nano pelicanconf.py (project3-py2) MAC-GS-001:blog gabriel$ sudo nano pelicanconf.py Password: (project3-py2) MAC-GS-001:blog gabriel$ sudo nano publishconf.py (project3-py2) MAC-GS-001:blog gabriel$ from pygments.styles import get_all_styles from: can't read /var/mail/pygments.styles (project3-py2) MAC-GS-001:blog gabriel$ sudo nano publishconf.py Password: (project3-py2) MAC-GS-001:blog gabriel$ make devserver /Users/gabriel/blog/develop_server.sh restart cat: /Users/gabriel/blog/srv.pid: No such file or directory HTTP server PIDFile not found cat: /Users/gabriel/blog/pelican.pid: No such file or directory Pelican PIDFile not found Starting up Pelican and HTTP server Pelican and HTTP server processes now running in background. (project3-py2) MAC-GS-001:blog gabriel$ DEBUG: Pelican version: 3.7.1