??????????Fresco???????????????????????
????1?????python virtualenv
????sudo apt-get install python-virtualenv
????2?????????python 2.7????????
????virtualenv python2.7 --python=python2.7
????1???л?????????
????source python2.7/bin.activate
????2?????django???汾????1.10
????sudo pip install django==1.10
????3?????ATC??????
????sudo pip install atc_thrift atcd django-atc-api django-atc-demo-ui django-atc-profile-storage
????4??????????django???
django-admin startproject atcui
cd atcui
INSTALLED_APPS = (
...
# Django ATC API
'rest_framework'??
'atc_api'??
# Django ATC Demo UI
'bootstrap_themes'??
'django_static_jquery'??
'atc_demo_ui'??
# Django ATC Profile Storage
'atc_profile_storage'??
)
from django.views.generic.base import RedirectView
from django.conf.urls import include??url
urlpatterns = [
...
# Django ATC API
url(r'^api/v1/'?? include('atc_api.urls'))??
# Django ATC Demo UI
url(r'^atc_demo_ui/'?? include('atc_demo_ui.urls'))??
# Django ATC profile storage
url(r'^api/v1/profiles/'?? include('atc_profile_storage.urls'))??
url(r'^$'?? RedirectView.as_view(url='/atc_demo_ui/'?? permanent=False))??
]
python manage.py migrate
????1?????atcd
???????????????????wan??lan?????ifconfig??????????wan????????lan
cd python2.7/bin/
sudo ./atcd --atcd-wan wan???? --atcd-lan lan????
```
8. ???django
```
python manage.py runserver 0.0.0.0:8000
????2??????
????????????localhost:8000
???????????IP