- Basic registration, login and logout application using Django, REST and AngularJS.
- Based on thinkster.io tutorial.
NOTE: Requires virtualenv, virtualenvwrapper, postgress and Node.js.
- Fork this repository.
$ git clone git@github.com:<your username>/Djangular_UserAuth.git$ mkvirtualenv APP_NAME$ cd Djangular_UserAuth/$ pip install -r requirements.txt$ npm install -g bower$ npm install$ bower install- If the DB isn't running, in the virtualenv, run
postgres -D /usr/local/var/postgres - In the virtualenv,
psql postgres - In postgres, open
create database PROJECT_NAME; - Open your project in PYCharm at connect virtualenv etc. See notes django_setup
- In
local_settings.pyeditPROJECT_NAMEto match your database name
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'PROJECT_NAME',
}
}$ python manage.py migrate$ python manage.py runserver