This is CS410 Course Project. All rights reserved
Steps
- Course Propursal
- front end bootstrap http://wsnippets.com/responsive-airbnb-style-search-box-twitter-bootstrap/
- 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.
-
Watch tutorial 1 and download Django https://www.youtube.com/watch?v=3DccH9AMwFQ
-
Download Pycharm 3.4 PyCharm-professional-3.4.1.dmg
-
Open Pycharm and typing create a project Open the VCS and check out from github project
-
Check your Pycharm Project Interpreter is 2.7.5 python Django version is 1.7
-
Commit your changes also use VCS (command + k)
-
Everyone would better his own branches and to do his own functions. End==============================
Useful notes
steps
- git commands
- git add *
- git clone https://github.com/xxu46/testproject
- git commit -m "message"
- git remote add pb https://github.com/xxu46/testproject
- 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
-
pip install -e git+https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack (2.4.0 dev)
-
setting.py import os HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': os.path.join(os.path.dirname(file), 'whoosh_index'), }, }
-
templates/indexes/task/note_text.txt {{ object.title }} {{ object.user.get_full_name }} {{ object.body }}
-
urls (r'^search/', include('haystack.urls')),
-
./manage.py rebuild_index
-
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