Git Product home page Git Product logo

testproject_origin's Introduction

testproject

This is CS410 Course Project. All rights reserved

Steps 
  1. Course Propursal
  2. front end bootstrap http://wsnippets.com/responsive-airbnb-style-search-box-twitter-bootstrap/
  3. https://www.airbnb.com/s/shanghai-china?price_min=730&price_max=855&sw_lat=30.71744654271819&sw_lng=121.14263084830714&ne_lat=31.31213325210683&ne_lng=121.79082420768214&zoom=10&search_by_map=true&ss_id=r218idx1

git clone https://github.com/xxu46/testproject OR if you use pycharm clone.

  1. Watch tutorial 1 and download Django https://www.youtube.com/watch?v=3DccH9AMwFQ

  2. Download Pycharm 3.4 PyCharm-professional-3.4.1.dmg

  3. Open Pycharm and typing create a project Open the VCS and check out from github project

  4. Check your Pycharm Project Interpreter is 2.7.5 python Django version is 1.7

  5. Commit your changes also use VCS (command + k)

  6. Everyone would better his own branches and to do his own functions. End==============================

Useful notes

steps

  1. git commands
  2. git add *
  3. git clone https://github.com/xxu46/testproject
  4. git commit -m "message"
  5. git remote add pb https://github.com/xxu46/testproject
  6. git push -f pb master

Search Engine (build Index(haystack(2.4.0.dev) and Index search(Whoosh(2.5.7)) url = http://django-haystack.readthedocs.org/en/latest/tutorial.html

  1. pip install -e git+https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack (2.4.0 dev)

  2. setting.py import os HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': os.path.join(os.path.dirname(file), 'whoosh_index'), }, }

  3. templates/indexes/task/note_text.txt {{ object.title }} {{ object.user.get_full_name }} {{ object.body }}

  4. urls (r'^search/', include('haystack.urls')),

  5. ./manage.py rebuild_index

  6. Add Haystack To INSTALLED_APPS As with most Django applications, you should add Haystack to the INSTALLED_APPS within your settings file (usually settings.py).

Example:

INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites',

# Added.
'haystack',

# Then your usual apps...
'blog',

]

Amazon EC2 settings: http://www.nickpolet.com/blog/deploying-django-on-aws/1/

========================================

rm -rf foldername

testproject_origin's People

Contributors

ruochenxu92 avatar

Watchers

 avatar Yisong Yue avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.