forked from mediafactory/yats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython3-todo.txt
47 lines (30 loc) · 1.16 KB
/
python3-todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2.0:
- ErrorCaptureMiddleware
- pyxmpp2 py3
- webdav??? User???
- graph iteritems() ???
YWRtaW46YWRtaW4= <=> admin:admin
apt-get install -y python3 python3-dev python3-memcache python3-httplib2 python3-wand
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
sites=`python3 -c "import site; print(site.getsitepackages()[0])"`
you may try...
2to3 -w xyz.py
try to install all libs via pip3!
pip3 install -r /vagrant/requirements.txt
####
https://docs.python.org/3/howto/pyporting.html
models.ForeignKey => , on_delete=models.CASCADE
import mast be absolute => change to "from . views.py"
invalid token => chmod(data.temporary_file_path(), 0664) => chmod(data.temporary_file_path(), 0o664)
rewrite middleware
is_authenticated(): is now property
replace unicode() by str()
replace long() by int()
replace __unicode__ by __str__
replace print by print()
replace import xmlrpclib by from xmlrpc import client as xmlrpclib
replace iteritems() by items()
add renderer=None to widget def render(
https://stackoverflow.com/questions/52039654/django-typeerror-render-got-an-unexpected-keyword-argument-renderer
Options.virtual_fields is deprecated, use private_fields instead