Giter Club home page Giter Club logo

raspberryio-python's Introduction

Raspberry IO

This is the source code for the Raspberry IO site. Raspberry IO is a place to share knowledge about using the Python programming language to control Raspberry Pi computers.

This is an open source project. We welcome contributions. You can help by fixing bugs, planning new features, writing documentation, writing tests, or even managing the project. Ready to contribute? Read our Getting Started document.

Travis CI Build Status

image

Submit an issue

Found an issue? Have a question? We appreciate any and all feedback! Issues are managed on Github. Please include details about the browser, operating system, and/or device being used.

If you have a feature you'd like us to consider adding, please add the "Proposal" label to your issue.

Dependencies

Raspberry IO is a Django project using Postgres as our database. To get started, you will need the following programs installed. These should be installed using your operating system's standard package management system:

Running the project

Download the code:

git clone [email protected]:python/raspberryio.git
cd raspberryio

Create a virtualenv and install the necessary requirements:

mkvirtualenv --distribute raspberryio
$VIRTUAL_ENV/bin/pip install -r $PWD/requirements/dev.txt

Create a local settings file and set your DJANGO_SETTINGS_MODULE to use it:

cp raspberryio/settings/local.example.py raspberryio/settings/local.py
echo "export DJANGO_SETTINGS_MODULE=raspberryio.settings.local" >> $VIRTUAL_ENV/bin/postactivate
echo "unset DJANGO_SETTINGS_MODULE" >> $VIRTUAL_ENV/bin/postdeactivate

Add the project directory to the virtualenv, deactivate and reactivate it to setup the environment variables above:

add2virtualenv .
deactivate
workon raspberryio

Create the Postgres database:

createdb -E UTF-8 raspberryio

Run the initial syncdb/migrate. When asked to create a superuser, answer no. :

django-admin.py syncdb
django-admin.py migrate
NOTE:

Creating a superuser in the syncdb step will trigger the error django.db.utils.DatabaseError: relation "userprofile_profile" does not exist because of a required one-to-one relation with a user profile model that doesn't exist in the database yet.

Now, create a superuser (This will also create the profile correctly):

django-admin.py createsuperuser

Run the test suite with:

django-admin.py test

You should now be able to run the development server:

django-admin.py runserver

License

This code is licensed under the Apache 2.0 License.

raspberryio-python's People

Contributors

daaray avatar vkurup avatar calebsmith avatar tobiasmcnulty avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.