Heldroe/pyverts-2011 — Issue #1: sur links: erreur lors de l'inscription
Author: jeando
Created: 2011-12-01 21:33:14+00:00
State: open

favreau@myhost:~$ vim te
termcap testez-vous04.pdf test.html test.html~
favreau@myhost:~$ vim te
termcap testez-vous04.pdf test.html test.html~
favreau@myhost:~$ vim test.html
favreau@myhost:~$ sudo pacman -Ss python image
Password:
Sorry, try again.
Password:
extra/python-imaging 1.1.7-3 [installed]
PIL. Provides image processing capabilities for python
favreau@myhost:~$ cd pyverts-2011/
favreau@myhost:~/pyverts-2011$ git add README
favreau@myhost:~/pyverts-2011$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD ..." to unstage)
#
#	modified: README
#
# Changes not staged for commit:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
#
#	modified: templates/account/login.html
#	modified: templates/account/signup.html
#	modified: templates/avatar/add.html
#	modified: templates/avatar/change.html
#	modified: templates/avatar/confirm_delete.html
#	modified: templates/profiles/edit_profile.html
#	modified: templates/profiles/profile_detail.html
#	modified: templates/site_base.html
#
# Untracked files:
# (use "git add ..." to include in what will be committed)
#
#	conf/locale/fr_FR/LC_MESSAGES/django.pot
#	templates/avatar/#add.html#
#	templates/avatar/.#add.html
favreau@myhost:~/pyverts-2011$ git -commit -m "add python-imaging"
Unknown option: -commit
usage: git [--version] [--exec-path[=]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=] [--work-tree=] [--namespace=]
[-c name=value] [--help]
[]
favreau@myhost:~/pyverts-2011$ git commit -m "add python-imaging"

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident not allowed
favreau@myhost:~/pyverts-2011$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD ..." to unstage)
#
#	modified: README
#
# Changes not staged for commit:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
#
#	modified: templates/account/login.html
#	modified: templates/account/signup.html
#	modified: templates/avatar/add.html
#	modified: templates/avatar/change.html
#	modified: templates/avatar/confirm_delete.html
#	modified: templates/profiles/edit_profile.html
#	modified: templates/profiles/profile_detail.html
#	modified: templates/site_base.html
#
# Untracked files:
# (use "git add ..." to include in what will be committed)
#
#	conf/locale/fr_FR/LC_MESSAGES/django.pot
#	templates/avatar/#add.html#
#	templates/avatar/.#add.html
favreau@myhost:~/pyverts-2011$ git push nuitinfo master
To git@github.com:Heldroe/pyverts-2011.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:Heldroe/pyverts-2011.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
favreau@myhost:~/pyverts-2011$ git pull nuitinfo master
remote: Counting objects: 50, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 39 (delta 23), reused 29 (delta 13)
Unpacking objects: 100% (39/39), done.
From github.com:Heldroe/pyverts-2011
* branch master -> FETCH_HEAD
Updating 707003c..7030691
Fast-forward
AGPLv3 | 661 ++++++++++++++++++++++++++++++++++++++++++++++++++
BSD | 27 ++
CC-by-sa-v3 | 24 ++
LICENSE | 4 +
accounts/LICENSE | 661 ++++++++++++++++++++++++++++++++++++++++++++++++++
accounts/admin.py | 4 +
accounts/handlers.py | 4 +
accounts/models.py | 5 +
accounts/tests.py | 5 +
achievements/LICENSE | 27 ++
allauth/LICENSE | 22 ++
avatar/LICENSE | 28 +++
bootstrap/LICENSE | 202 +++++++++++++++
templates/LICENSE | 27 ++
14 files changed, 1701 insertions(+), 0 deletions(-)
create mode 100644 AGPLv3
create mode 100644 BSD
create mode 100644 CC-by-sa-v3
create mode 100644 LICENSE
create mode 100644 accounts/LICENSE
create mode 100644 achievements/LICENSE
create mode 100644 allauth/LICENSE
create mode 100644 avatar/LICENSE
create mode 100644 bootstrap/LICENSE
create mode 100644 templates/LICENSE
favreau@myhost:~/pyverts-2011$ git commit -m "add python-imaging"

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident not allowed
favreau@myhost:~/pyverts-2011$ git push
Everything up-to-date
favreau@myhost:~/pyverts-2011$ git add README
favreau@myhost:~/pyverts-2011$ git push
Everything up-to-date
favreau@myhost:~/pyverts-2011$ git add README
favreau@myhost:~/pyverts-2011$ git add README
favreau@myhost:~/pyverts-2011$ git commit -m "add dependencies"

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident not allowed
favreau@myhost:~/pyverts-2011$ git config user.email "faverau@polytech.unice.fr"favreau@myhost:~/pyverts-2011$ git commit -m "add dependencies"
*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident not allowed
favreau@myhost:~/pyverts-2011$ git config --global user.email "favreau@polytech.unice.fr"
favreau@myhost:~/pyverts-2011$ git config --global user.name "Jean-Do"
favreau@myhost:~/pyverts-2011$ git commit -m "add dependencies"[master 4333fc9] add dependencies
1 files changed, 1 insertions(+), 0 deletions(-)
favreau@myhost:~/pyverts-2011$ git push
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 311 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
To git@github.com:Heldroe/pyverts-2011.git
7030691..4333fc9 master -> master
favreau@myhost:~/pyverts-2011$ git add templates
favreau@myhost:~/pyverts-2011$ git commit _m "accebilite"
error: pathspec '_m' did not match any file(s) known to git.
error: pathspec 'accebilite' did not match any file(s) known to git.
favreau@myhost:~/pyverts-2011$ git commit -m "accebilite"
[master e5a9cec] accebilite
10 files changed, 42 insertions(+), 27 deletions(-)
create mode 100644 templates/avatar/#add.html#
create mode 120000 templates/avatar/.#add.html
favreau@myhost:~/pyverts-2011$ git push
Counting objects: 28, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (14/14), done.
Writing objects: 100% (15/15), 1.83 KiB, done.
Total 15 (delta 11), reused 0 (delta 0)
To git@github.com:Heldroe/pyverts-2011.git
4333fc9..e5a9cec master -> master
favreau@myhost:~/pyverts-2011$ git pull
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 7 (delta 4), reused 7 (delta 4)
Unpacking objects: 100% (7/7), done.
From github.com:Heldroe/pyverts-2011
e5a9cec..f162f80 master -> origin/master
Updating e5a9cec..f162f80
Fast-forward
templates/LICENSE | 34 +++++++++++-----------------------
1 files changed, 11 insertions(+), 23 deletions(-)
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
remote: Counting objects: 41, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 23 (delta 17), reused 23 (delta 17)
Unpacking objects: 100% (23/23), done.
From github.com:Heldroe/pyverts-2011
f162f80..a3ed0fe master -> origin/master
Updating f162f80..a3ed0fe
Fast-forward
.gitignore | 1 -
accounts/handlers.py | 10 ++++++++++
allauth/facebook/models.py | 1 +
allauth/facebook/templatetags/facebook_tags.py | 2 +-
allauth/facebook/views.py | 1 +
allauth/socialaccount/helpers.py | 6 ++++++
allauth/socialaccount/models.py | 5 +++++
db.sqlite3 | Bin 0 -> 73728 bytes
settings.py | 2 +-
9 files changed, 25 insertions(+), 3 deletions(-)
create mode 100644 db.sqlite3
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 1), reused 3 (delta 1)
Unpacking objects: 100% (3/3), done.
From github.com:Heldroe/pyverts-2011
a3ed0fe..8fe8992 master -> origin/master
Updating a3ed0fe..8fe8992
Fast-forward
.gitignore | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 2 (delta 1), reused 2 (delta 1)
Unpacking objects: 100% (2/2), done.
From github.com:Heldroe/pyverts-2011
8fe8992..d6e2f34 master -> origin/master
Updating 8fe8992..d6e2f34
error: Your local changes to the following files would be overwritten by merge:
db.sqlite3
Please, commit your changes or stash them before you can merge.
Aborting
favreau@myhost:~/pyverts-2011$ git pull
Updating 8fe8992..d6e2f34
error: Your local changes to the following files would be overwritten by merge:
db.sqlite3
Please, commit your changes or stash them before you can merge.
Aborting
favreau@myhost:~/pyverts-2011$ ls
accounts appconf.pyc conf manage.py static
achievements avatar db.sqlite3 profiles templates
AGPLv3 bootstrap __init__.py README uploaded
allauth BSD __init__.pyc settings.py urls.py
appconf.py CC-by-sa-v3 LICENSE settings.pyc urls.pyc
favreau@myhost:~/pyverts-2011$ rm db.sqlite3
favreau@myhost:~/pyverts-2011$ git pull
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 1), reused 3 (delta 1)
Unpacking objects: 100% (3/3), done.
From github.com:Heldroe/pyverts-2011
d6e2f34..de579d8 master -> origin/master
Updating 8fe8992..de579d8
Fast-forward
db.sqlite3 => db.sqlite3.base | Bin 73728 -> 73728 bytes
1 files changed, 0 insertions(+), 0 deletions(-)
rename db.sqlite3 => db.sqlite3.base (98%)
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ cp db.sqlite3.base db.sqlite3
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reused 3 (delta 2)
Unpacking objects: 100% (3/3), done.
From github.com:Heldroe/pyverts-2011
de579d8..5d4e884 master -> origin/master
Updating de579d8..5d4e884
Fast-forward
db.sqlite3.base | Bin 73728 -> 73728 bytes
1 files changed, 0 insertions(+), 0 deletions(-)
favreau@myhost:~/pyverts-2011$ cp db.sqlite3.base db.sqlite3
favreau@myhost:~/pyverts-2011$ ls
accounts appconf.pyc conf LICENSE settings.pyc urls.pyc
achievements avatar db.sqlite3 manage.py static
AGPLv3 bootstrap db.sqlite3.base profiles templates
allauth BSD __init__.py README uploaded
appconf.py CC-by-sa-v3 __init__.pyc settings.py urls.py
favreau@myhost:~/pyverts-2011$ git pull
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 1), reused 3 (delta 1)
Unpacking objects: 100% (3/3), done.
From github.com:Heldroe/pyverts-2011
5d4e884..1cf777c master -> origin/master
Updating 5d4e884..1cf777c
Fast-forward
initdb.sh | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
create mode 100755 initdb.sh
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ ./initdb.sh
favreau@myhost:~/pyverts-2011$ ./initdb.sh
favreau@myhost:~/pyverts-2011$ git pull
remote: Counting objects: 14, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 11 (delta 3), reused 11 (delta 3)
Unpacking objects: 100% (11/11), done.
From github.com:Heldroe/pyverts-2011
1cf777c..49f2cfa master -> origin/master
Updating 1cf777c..49f2cfa
Fast-forward
LICENSE | 11 +-
AGPLv3 => licenses/AGPLv3 | 0
BSD => licenses/BSD | 0
CC-by-sa-v3 => licenses/CC-by-sa-v3 | 0
licenses/GPLv2 | 339 +++++++++++++++++++++++++++++++++++
licenses/MIT | 8 +
licenses/jQuery | 3 +
7 files changed, 359 insertions(+), 2 deletions(-)
rename AGPLv3 => licenses/AGPLv3 (100%)
rename BSD => licenses/BSD (100%)
rename CC-by-sa-v3 => licenses/CC-by-sa-v3 (100%)
create mode 100644 licenses/GPLv2
create mode 100644 licenses/MIT
create mode 100644 licenses/jQuery
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ git pull
Already up-to-date.
favreau@myhost:~/pyverts-2011$ libreoffice ../w3c.odt
favreau@myhost:~/pyverts-2011$ sudo pacman -Ss python image
Password:
extra/python-imaging 1.1.7-3 [installed]
PIL. Provides image processing capabilities for python
favreau@myhost:~/pyverts-2011$ sudo pacman -Ss python-setuptools
favreau@myhost:~/pyverts-2011$ sudo pacman -S links
resolving dependencies...
looking for inter-conflicts...

Targets (1): links-2.4-1

Total Download Size: 1.80 MB
Total Installed Size: 4.01 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
links-2.4-1-x86_64 1842.1K 1383.2K/s 00:00:01 [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) installing links [######################] 100%
Optional dependencies for links
libx11: for using xlinks
libtiff: for using xlinks
libpng: for using xlinks
favreau@myhost:~/pyverts-2011$ link
link linkicc links
favreau@myhost:~/pyverts-2011$ links http://127.0.0.1:8000/profile/user/

Django | The Django template language: For Python programmers | Dja (p16 of 41)
Subclassing Context: RequestContextP:

class django.template.RequestContextP:

Django comes with a special Context class, django.template.RequestContext,
that acts slightly differently than the normal django.template.Context.
The first difference is that it takes an HttpRequest as its first
argument. For
+------------ Exit Links -------------+
c = RequestConte | |
'foo': 'bar' | Do you really want to exit Links? |
}) | |
| [ Yes ] [ No ] |
The second dif +-------------------------------------+ e context with
a few variable ORS setting.

The TEMPLATE_CONTEXT_PROCESSORS setting is a tuple of callables -- called
context processors -- that take a request object as their argument and
return a dictionary of items to be merged into the context. By default,
TEMPLATE_CONTEXT_PROCESSORS is set to:

("django.contrib.auth.context_processors.auth",
https://docs.djangoproject.com/en/dev/ref/templates/api/#django.template.Reques

favreau@myhost:~/pyverts-2011$ sudo pacman -S w3n
Password:
error: target not found: w3n
favreau@myhost:~/pyverts-2011$ sudo pacman -S w3m
resolving dependencies...
looking for inter-conflicts...

Targets (2): gc-7.1-3 w3m-0.5.3-1

Total Download Size: 0.92 MB
Total Installed Size: 2.58 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from extra...
gc-7.1-3-x86_64 208.8K 1302.1K/s 00:00:00 [######################] 100%
w3m-0.5.3-1-x86_64 733.6K 1419.9K/s 00:00:01 [######################] 100%
(2/2) checking package integrity [######################] 100%
(2/2) checking for file conflicts [######################] 100%
(1/2) installing gc [######################] 100%
(2/2) installing w3m [######################] 100%
Optional dependencies for w3m
imlib2: for graphics support
favreau@myhost:~/pyverts-2011$ w3m
w3m version w3m/0.5.3, options lang=en,m17n,image,color,ansi-color,menu,cookie,ssl,ssl-verify,external-uri-loader,nntp,ipv6,alarm,mark
usage: w3m [options] [URL or filename]
options:
-t tab set tab width
-r ignore backspace effect
-l line # of preserved line (default 10000)
-I charset document charset
-O charset display/output charset
-e EUC-JP
-s Shift_JIS
-j JIS
-B load bookmark
-bookmark file specify bookmark file
-T type specify content-type
-m internet message mode
-v visual startup mode
-M monochrome display
-N open URL of command line on each new tab
-F automatically render frame
-cols width specify column width (used with -dump)
-ppc count specify the number of pixels per character (4.0...32.0)
-ppl count specify the number of pixels per line (4.0...64.0)
-dump dump formatted page into stdout
-dump_head dump response of HEAD request into stdout
-dump_source dump page source into stdout
-dump_both dump HEAD and source into stdout
-dump_extra dump HEAD, source, and extra information into stdout
-post file use POST method with file content
-header string insert string as a header
+ goto line
-num show line number
-no-proxy don't use proxy
-4 IPv4 only (-o dns_order=4)
-6 IPv6 only (-o dns_order=6)
-cookie use cookie (-no-cookie: don't use cookie)
-graph use DEC special graphics for border of table and menu
-no-graph use ACII character for border of table and menu
-S squeeze multiple blank lines
-W toggle wrap search mode
-X don't use termcap init/deinit
-title[=TERM] set buffer name to terminal title string
-o opt=value assign value to config option
-show-option print all config options
-config file specify config file
-help print this usage message
-version print w3m version
-reqlog write request logfile
-debug DO NOT USE
favreau@myhost:~/pyverts-2011$ w3m http://127.0.0.1:8000/profile/user/
favreau@myhost:~/pyverts-2011$
favreau@myhost:~/pyverts-2011$ links http://127.0.0.1:8000/profile/user/

403 Forbidden (p1 of 2)
Forbidden (403)

CSRF verification failed. Request aborted.

Help

Reason given for failure:

CSRF token missing or incorrect.

In general, this can occur when there is a genuine Cross Site Request
Forgery, or when Django's CSRF mechanism has not been used correctly. For
POST forms, you need to ensure:

* The view function uses RequestContext for the template, instead of
Context.
* In the template, there is a {% csrf_token %} template tag inside each
POST form that targets an internal URL.
* If you are not using CsrfViewMiddleware, then you must use
csrf_protect on any views that use the csrf_token template tag, as
well as those that accept the POST data.
http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf