当前位置: 首页 > 软件库 > 数据库相关 > >

HTTP_200

JSS InfoConnect Web Application
授权协议 Readme
开发语言 C/C++
所属分类 数据库相关
软件类型 开源软件
地区 不详
投 递 者 乐正育
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

HTTP_200

A new Information Center for JSS Academy of Technical Education, Noida.

Installation

The production HTTP_200 server is running on Ubuntu, so this isprobably the easiest environment in which to get things running, but otherdistributions of linux should be fine as well. We use Apache on theproduction server, but HTTP_200 will run standalone for testing as well.

Virtual environment (if your system doesn't have it already):

The development environment relies on using a Python virtual environmentfor tools and portability across platforms. Ensure that you have Python Pipinstalled for your platform before proceeding with these instructions.

Windows users can use the following guide. Specifically, getPython installed and then use the get-pip.py installer once Python is working

OSX users can use the built in version of Python as long as Pip is available,or better, install Brew and Python.

Linux users should have Python already installed. Ensure Pip is installed viayour package manager and you should be all set.

Instructions to get started with HTTP_200 development

HTTP_200 is built very cleanly. For setting the development environment on your machine, you need to follow the steps described in the next section.

Linux based Setup for HTTP_200 development

Note: Ubuntu 14.04 LTS is recommended to use for the development environment.

  1. Run the following git clone (specify a directory of your choosing if you like):

     git clone https://github.com/ncs-jss/HTTP_200.git http_200
    
  2. Run virtualenv on the git cloned directory to setup the Python virtual environment:

     virtualenv http_200
    
  3. cd into the name of the directory into which you cloned the git repository

     cd http_200
    
  4. Activate the virtual environment:

     source bin/activate
    
  5. After activating the virtual environment, install the dependencies

     pip install -r requirements/common.txt
     pip install -r requirements/dev.txt (For development)
    
  6. Now, create the database migrations so as to use the Database

     python manage.py syncdb
    
  7. For creating groups, run the following command

     python manage.py createdata
    
  8. (Optional) For creating random faculties, students and notices

     python manage.py createdata --dummydata
    

    this will create:

    1. faculty_admin: username = admin, password = admin
    2. student_admin: username = student, password = student
    3. 20 other faculties' and students' accounts with password = default
  9. You are all set. Run the final command

     python manage.py runserver
    
  10. Its time to rock. Visit http://localhost:8000 in your browser and you should be all set.

  • 2XX 成功 · 200 OK,表示从客户端发来的请求在服务器端被正确处理 · 204 No content,表示请求成功,但响应报文不含实体的主体部分 · 206 Partial Content,进行范围请求 3XX 重定向 · 301 moved permanently,永久性重定向,表示资源已被分配了新的 URL · 302 found,临时性重定向,表示资源临时被分配了新的 URL · 3

  • 在学习网页设计的时候都应该知道状态码,但我们常见的状态码都是200,404,下面介绍其他的状态值 1开头的http状态码 表示临时响应并需要请求者继续执行操作的状态代码。 100   (继续) 请求者应当继续提出请求。 服务器返回此代码表示已收到请求的第一部分,正在等待其余部分。   101   (切换协议) 请求者已要求服务器切换协议,服务器已确认并准备切换。 2开头的http状态码 表示请求成

  • HTTP状态码 当浏览者访问一个网页时,浏览者的浏览器会向网页所在服务器发出请求。当浏览器接收并显示网页前,此网页所在的服务器会返回一个包含HTTP状态码的信息头(server header)用以响应浏览器的请求。 HTTP状态码的英文为HTTP Status Code 下面是常见的HTTP状态码: 200 - 请求成功 301 - 资源(网页等)被永久转移到其它URL 404 - 请求的资源(网

  • 错误信息: NET::ERR_INCOMPLETE_CHUNKED_ENCODING200(OK) 错误背景: 微服务不通过统一的nginx端口访问,能够正常请求接口并获取对应的响应。 但是通过nginx的话,则出现请求通(也就是响应200),但始终没有得到正确的响应,提示上述错误 NET::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)。 解决办法: 在ngin

  • http.c #include <stdio.h> #include <stdlib.h> #include <arpa/inet.h> #include <netdb.h> #include <string.h> #include <unistd.h> #include "http.h" #define BUFFER_SIZE 1024 #define HTTP_POST "POST /%s

  • 项目场景: 提示:这里简述项目相关背景: ERR_FAILED 200 解决方案 问题描述 提示:这里描述项目中遇到的问题: 在chrome的网络调试器中,我可以读到文件大小估计为10.0MB (而文件实际大小为14MB )。这就是为什么我认为这是由于一些Chrome或Angular HTTPClient的限制。 原因分析: 提示:这里填写问题的分析: 我的Node REST API正确返回了状态

  • 前端get请求是报错net::ERR_CONNECTION_RESET 200 js无报错,服务端也没错误日志 经排 常公司网络限制了网络流量导致此问题,限制去掉,问题单解决 net::ERR_CONNECTION_RESET 。可能原因总结如下: 1 可能是服务器限制了文件上传的权限。   解决方法:开通了文件上传权限。 2 也许导致这种错误的方式有很多,可能是因为post请求时提交的数据过多而

  • 简述 浏览器调用接口报错  net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) 错误描述:编码模块不完整,返回浏览器的流不完整 可能原因: 1、丢包 2、响应数据被限制 3、读取流异常终止 针对可能的原因排查可以从几个方面 1、网络是否稳定 2、服务器端是否有对响应数据做限制,比如:nginx转发的数据限制,spring/Servlet的HTTP响应数据大小

  • 浏览器报错: net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) 查看Nginx错误日志: 13505#0: *1107085 pwritev() "/usr/local/nginx/proxy_temp/5/88/0000050885" failed (28: No space left on device) while reading upstream 大

  • 解决nginx出现net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) upstream prematurely closed connection while reading upstream的问题 项目一直使用nginx做反向代理,偶尔会出现前端图片等访问不了的问题,报错net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) 通过查看n

  • 场景: web端的环境上某一个请求报这个问题了, 其他的请求正常.打开f12控制台看到异常net::ERR_HTTP2_PROTOCOL_ERROR 200错误 排查: 查看nginx的error.log 报是某一个临时文件的权限不足.原因是启动nginx的账号, 在前面所报的目录没有操作权限 解决方案: 1. 把对应的临时目录开放读写权限 2. 使用root账号启动nginx

  • 谷歌浏览器访问 http://localhost:8080/index.html 出现ERR_INVALID_HTTP_RESPONSE错误 原因: 没有添加响应返回头信息 正确代码: if (file.exists()) { String header = "HTTP/1.1 200 OK\r\n" + "Content-Type: text/ht

相关阅读

相关文章

相关问答

相关文档