Skip to content

Commit 397b0a5

Browse files
author
Jens Kadenbach
committed
main application "readme" and it's migrations
1 parent c58261b commit 397b0a5

File tree

8 files changed

+48
-6
lines changed

8 files changed

+48
-6
lines changed

manage.py

100644100755
File mode changed.

pypo/settings.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
DATABASES = {
1313
'default': {
14-
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
15-
'NAME': '', # Or path to database file if using sqlite3.
14+
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
15+
'NAME': 'pypo', # Or path to database file if using sqlite3.
1616
# The following settings are not used with sqlite3:
17-
'USER': '',
18-
'PASSWORD': '',
17+
'USER': 'pypo',
18+
'PASSWORD': 'pypo',
1919
'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
2020
'PORT': '', # Set to empty string for default.
2121
}
@@ -120,10 +120,12 @@
120120
'django.contrib.sites',
121121
'django.contrib.messages',
122122
'django.contrib.staticfiles',
123+
'south',
123124
# Uncomment the next line to enable the admin:
124-
# 'django.contrib.admin',
125+
'django.contrib.admin',
125126
# Uncomment the next line to enable admin documentation:
126-
# 'django.contrib.admindocs',
127+
'django.contrib.admindocs',
128+
'readme',
127129
)
128130

129131
# A sample logging configuration. The only tangible logging

readme/__init__.py

Whitespace-only changes.

readme/migrations/0001_initial.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
import datetime
3+
from south.db import db
4+
from south.v2 import SchemaMigration
5+
from django.db import models
6+
7+
8+
class Migration(SchemaMigration):
9+
10+
def forwards(self, orm):
11+
pass
12+
13+
def backwards(self, orm):
14+
pass
15+
16+
models = {
17+
18+
}
19+
20+
complete_apps = ['readme']

readme/migrations/__init__.py

Whitespace-only changes.

readme/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.

readme/tests.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
This file demonstrates writing tests using the unittest module. These will pass
3+
when you run "manage.py test".
4+
5+
Replace this with more appropriate tests for your application.
6+
"""
7+
8+
from django.test import TestCase
9+
10+
11+
class SimpleTest(TestCase):
12+
def test_basic_addition(self):
13+
"""
14+
Tests that 1 + 1 always equals 2.
15+
"""
16+
self.assertEqual(1 + 1, 2)

readme/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Create your views here.

0 commit comments

Comments
 (0)