Code Monkey home page Code Monkey logo

collections's Introduction

##Collections

Here are a few Django-powered apps that track inventory and keep notes. They are:

  • Publications: books
  • Reader: blog
  • About (a static page)

###Local Setup To get this going:

  • Install Postgres and create a database called 'collections'
  • Adjust Django settings, accordingly (see configuration, below)
  • Install virtualenv and install the requirements:

virtualenv env source env/bin/activate pip install -r requirements.txt

A configuration file must be created to store your development secrets. You could also create other conifg files for testing, staging, and production. You will need to define the following vars in that file:

sk = '<string>'
usr = '<string>' # refers to the user who created the database 'collections'
pwd = '<string>' # refers to the pwd for that user

You can, of course, include any other configuration variables that you like here.

The configuration file needs to live in the virtual environment env/lib/python2.7/. You can set up a symlink here if you prefer to keep the file(s) elsewhere. This will vary from system to system.

The file in settings.py is called dev_config. It is imported into the settings file. After your configuration variables are set up, you can proceed:

  • Run the Django server: python jm_collections/manage.py runserver

###Troubleshooting

  • Check the database configuration, including the connection and dev passwords.
  • Be sure all of the virtualenv requirements are set.
  • Check the path and/or symlink to make sure that your configuration file is imported into the settings (seettings.py).
  • Verify postgresql is running
  • Verify the virtual environment is running

collections's People

Contributors

lautomator avatar

Watchers

James Cloos 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.