On Windows
-
Download git command line tool from here -> http://git-scm.com/downloads
-
Download python 2.7 from here -> https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi
-
Download pip file from here -> https://bootstrap.pypa.io/get-pip.py Pip is a package manager for python
-
Install python. After that, verify that it is in your windows path by opening a cmd terminal and type "python", if it tells you that it is not recognized, follow these instructions
- Right click on my computer -> properties -> on the left panel click advanced system settings -> click environmental variables on the bottom of the window -> in system variables find path -> double click it and append
;C:\Python27;C:\Python27\Scripts
to it and apply
- Install Pip by changing directory in the cmd to the get-pip.py file and then type python get-pip.py install
- After that install virtualenv by typing
pip install virtualenv
- Open git bash and change the directory to your local working folder (mine is 'cd Desktop\spark')
- Clone the repository by issuing the command
git clone git@bitbucket.org:team4dev/spark.git .
, then type your private key password
Now that we have the framework, lets' get going with the project
- Open a cmd terminal and change directory to the working folder, mine is
cd Desktop/spark
- Run
virtualenv env && env\Scripts\activate && pip install django==1.7.1 pillow django-tinymce django-autofixture django-colorful djangorestframework dj_static whitenoise pytz django-periodically
( note that in unix, activating the environment issource env/bin/activate
) - Skip this if you want empty website, otherwise run
python manage.py migrate
- Then run
python manage.py shell
and in the console, enterexecfile('gc.py')
- You can use localhost:8000/admin to access the admin panel
- Have fun !
http://agiliq.com/blog/2012/06/understanding-args-and-kwargs/
For form development, a very good reference guide for advanced features http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/
For everything else, RTFM !
Forms multiple choice
Fill form from the view http://stackoverflow.com/questions/1993014/passing-kwargs-to-django-form
More on forms http://twigstechtips.blogspot.co.uk/2011/10/django-dynamic-forms-with-dynamic.html
Forms slideshow http://www.slideshare.net/pydanny/advanced-django-forms-usage
Client server authentication http://stackoverflow.com/questions/18330916/how-to-authenticate-android-user-post-request-with-django-rest-api
https://getblimp.github.io/django-rest-framework-jwt/ < token