Skip to content

likethis85/instaclone_django

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

instaclone_django

This is the web app side of the instaclone ios app (https://github.com/ethanlance/instaclone_ios/blob/master/README.md).

You Also Need:

Amazon S3 account. If you want to upload images get an account and fill this section of settings.py out:

USE_AMAZON_S3 = True
AWS_ACCESS_KEY = 'YOU_NEED_THIS'
AWS_SECRET_KEY = 'AND_YOU_NEED_THIS'
AWS_TEMP_UPLOAD_BUCKET = 'instaclonebucket'
AWS_TEMP_UPLOAD_DIRECTORY = 'uploads/'

Setup

Set up a virtualenv

virtualenv venv --distribute

source venv/bin/activate

Now install all the requirements (like Django and Tastypie):

cd instaclone_django

pip install -r requirements.txt

cd instaclone_django/instaclone

Create our sqlite3 database:

python manage.py syncdb Say "NO" to creating an admin user. Or you'll get an error later on because tastypie will not have created an api_key for this user. I let the iOS app create the 1st user.

Start the server. I'm using a Mac and Bonjour to make this work:

python manage.py runserver 0.0.0.0:8000 For mac (dunno about windows, sorry) go System Preferences > Sharing. Under Computer Name click "Edit". Copy localhost name and use it in the constants.h file where we define: #define BASE_URL @"http://lancebook.local:8000/"

About

Simple, sample web app for the instaclone_ios app. Uses django-tastypie.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors