Skip to content

Commit 5a9edf9

Browse files
committed
Create app main
Restructure django project according to django's project-app conventions. The Django project now consists of a main app which contains all templates and static files - Move all main app related files to app directory - Use CDN for bootstrap and Jquery instead of local files - Use whitenoise to server static files in production - Remove db.sqlite3 fixes #18
1 parent 146cf29 commit 5a9edf9

File tree

23 files changed

+74
-6823
lines changed

23 files changed

+74
-6823
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ ENV/
8888
# Rope project settings
8989
.ropeproject
9090

91-
# Ignore changes in settings.py
92-
oshc/oshc/settings.py
91+
oshc/db.sqlite3
92+
staticfiles

oshc/db.sqlite3

-36 KB
Binary file not shown.

oshc/main/__init__.py

Whitespace-only changes.

oshc/main/admin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.contrib import admin
5+
6+
# Register your models here.

oshc/main/apps.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.apps import AppConfig
5+
6+
7+
class MainConfig(AppConfig):
8+
name = 'main'

oshc/main/migrations/__init__.py

Whitespace-only changes.

oshc/main/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models
5+
6+
# Create your models here.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)