Skip to content

Commit f968de7

Browse files
Merge pull request #20 from jarifibrahim/issue-18
Create App Main
2 parents 52369e5 + b1e9ddc commit f968de7

24 files changed

+79
-6834
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

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ We are trying to create a medium where people who want to start with contributin
77
[Website](http://opensourcehelpcommunity.herokuapp.com/) [WIP]
88

99

10-
This is using [Django(1.7.6)](https://www.djangoproject.com/) and [Bootstrap](http://getbootstrap.com/).
10+
This is using [Django(1.11)](https://www.djangoproject.com/) and [Bootstrap](http://getbootstrap.com/).
1111
Feel free to suggest a better design.
1212

1313

@@ -31,24 +31,18 @@ to install everything required to run this project on heroku as well as on your
3131
cd oshc
3232
```
3333

34-
3. Syncdb
35-
34+
3. Collectstatic files using
3635
```
37-
python manage.py syncdb
36+
python manage.py collectstatic
3837
```
3938

40-
4. Change path to static files in settings.py
41-
42-
Right now this file is having path of my local. Just change the machine's username to your own.
43-
44-
```
45-
STATICFILES_DIRS = ()
46-
```
4739
4. Run the app
4840
```
4941
python manage.py runserver
5042
```
5143

44+
To run the web app in Debug mode set the DEBUG environment variable.
45+
In Linux, run the `export DEBUG=True` command in the terminal.
5246

5347
To deploy on heroku clone the code present in [heroku branch](https://github.com/OpenSourceHelpCommunity/OpenSourceHelpCommunity.github.io/tree/heroku).
5448

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)