Ubuntu?′?ATC???????????
?????StriveG Blog ???????[ 2017/5/2 10:11:08 ] ????????python ??????
	??????????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
??????
					
					???·???
App??С????H5?????????????????Щ??
2024/9/11 15:34:34?????????????????????????
2024/9/10 11:13:49P-One ???????????????????????????????????????
2024/9/10 10:14:12???????????????????????????
2024/9/9 18:04:26??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44
					
			
								
								
								
								
								
								
								
								
								
								
				
sales@spasvo.com