Skip to content

Commit

Permalink
Very basic inital modes
Browse files Browse the repository at this point in the history
  • Loading branch information
komarserjio committed Feb 12, 2013
1 parent a4cfb7b commit 4b6788b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ nosetests.xml

# Vim
*.swp

# DB
*.db
13 changes: 6 additions & 7 deletions django/notejam/notejam/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
TEMPLATE_DEBUG = DEBUG

ADMINS = (
# ('Your Name', 'your_email@example.com'),
('Sergey Komar', 'komarserjio@gmail.com'),
)

MANAGERS = ADMINS

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'notejam.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
Expand Down Expand Up @@ -115,10 +115,9 @@
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
#'django.contrib.admin',
'notes',
'pads'
)

# A sample logging configuration. The only tangible logging
Expand Down
7 changes: 6 additions & 1 deletion django/notejam/notes/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from django.db import models

# Create your models here.
from pads.models import Pad


class Note(models.Model):
pad = models.ForeignKey(Pad)
name = models.CharField(max_length=100)
4 changes: 3 additions & 1 deletion django/notejam/pads/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from django.db import models

# Create your models here.

class Pad(models.Model):
name = models.CharField(max_length=100)

0 comments on commit 4b6788b

Please sign in to comment.