django restfull centos6.5 x86_64 python2.7
2015-11-19 11:46
381 查看
mkdir tutorial cd tutorial virtualenv env source env/bin/activate pip2.7 install django pip2.7 install djangorestframework pip2.7 install ipython yum install ncurses-devel pip2.7 install Readline yum install sqlite-devel #重新编译Python #django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3 cd Python2.7.8 #不用./configure make make install django-admin.py startproject tutorial . cd tutorial django-admin.py startapp quickstart cd .. cd . #第一次,请同步到数据库 python2.7 manage.py migrate #建立超级用户 python2.7 manage.py createsuperus #建立用户admin 密码:admin 摘自: http://www.django-rest-framework.org/tutorial/quickstart/#serializers
相关文章推荐
- django中使用jquery ajax post数据出现403错误的解决办法(两种方法)
- django使用ajax post数据出现403错误如何解决
- windows+apache+mod_python配置django运行环境
- python Django连接MySQL数据库做增删改查
- django自定义Field实现一个字段存储以逗号分隔的字符串
- 在Python的Django框架中加载模版的方法
- 在Django中使用Sitemap的方法讲解
- 详解Django中的form库的使用
- Django中的CACHE_BACKEND参数和站点级Cache设置
- 剖析Django中模版标签的解析与参数传递
- Python中DJANGO简单测试实例
- Python的Django框架中的数据库配置指南
- 在Django的上下文中设置变量的方法
- 在Python的Django框架中编写编译函数
- 在Django的URLconf中进行函数导入的方法
- 在Python的Django框架中生成CSV文件的方法
- 在主机商的共享服务器上部署Django站点的方法
- 使用Python的Django框架中的压缩组件Django Compressor
- 对于Python的Django框架部署的一些建议
- Djang中静态文件配置方法