Skip to content
Kiarash Golezardi edited this page Dec 30, 2018 · 8 revisions

Welcome to the SAD-Project wiki!

Bidilo

First, we need a virtual environment! We used virtualenvwrapper to make one with the following commands:

$ pip install virtualenvwrapper
$ export WORKON_HOME=~/Envs
$ mkdir -p $WORKON_HOME
$ source /usr/local/bin/virtualenvwrapper.sh
$ mkvirtualenv bidilo -p python3

We should add Django to requirements, but for now:

$ pip install django
$ django-admin startproject mysite
$ python manage.py runserver
$ python manage.py startapp core

How to forget changes?

One way is to git reset.

How to ignore files that have been committed?

  • Edit .gitignore
  • git rm -r --cached . to remove files from git
  • git add . to add files that are not ignored by new policy

Login basics

https://wsvincent.com/django-user-authentication-tutorial-login-and-logout/

Clone this wiki locally