Skip to content

Commit 842d6d4

Browse files
committed
Initial commit, add basic files
0 parents  commit 842d6d4

File tree

219 files changed

+48836
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+48836
-0
lines changed

.gitignore

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
static/
2+
./db.sqlite3
3+
./.idea/
4+
*.sqlite3
5+
db.sqlite3
6+
thinkfoss/local_settings.py
7+
thinkfoss/local_settings.pyc
8+
local_settings.py
9+
local_settings.pyc
10+
*.pyc
11+
.idea/
12+
dbbackup_tokens
13+
# Created by https://www.gitignore.io
14+
15+
### Vim ###
16+
[._]*.s[a-w][a-z]
17+
[._]s[a-w][a-z]
18+
*.un~
19+
Session.vim
20+
.netrwhist
21+
*~
22+
23+
24+
### Django ###
25+
*.log
26+
*.pot
27+
*.pyc
28+
__pycache__/
29+
local_settings.py
30+
migrations/
31+
32+
### Python ###
33+
# Byte-compiled / optimized / DLL files
34+
__pycache__/
35+
*.py[cod]
36+
37+
# C extensions
38+
*.so
39+
40+
# Distribution / packaging
41+
.Python
42+
env/
43+
build/
44+
develop-eggs/
45+
dist/
46+
downloads/
47+
eggs/
48+
.eggs/
49+
lib/
50+
lib64/
51+
parts/
52+
sdist/
53+
var/
54+
*.egg-info/
55+
.installed.cfg
56+
*.egg
57+
58+
# PyInstaller
59+
# Usually these files are written by a python script from a template
60+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
61+
*.manifest
62+
*.spec
63+
64+
# Installer logs
65+
pip-log.txt
66+
pip-delete-this-directory.txt
67+
68+
# Unit test / coverage reports
69+
htmlcov/
70+
.tox/
71+
.coverage
72+
.cache
73+
nosetests.xml
74+
coverage.xml
75+
76+
# Translations
77+
*.mo
78+
*.pot
79+
80+
# Django stuff:
81+
*.log
82+
83+
# Sphinx documentation
84+
docs/_build/
85+
86+
# PyBuilder
87+
target/
88+
89+
90+
### Kate ###
91+
# Swap Files #
92+
.*.kate-swp
93+
.swp.*
94+
95+
96+
# SQL dumps
97+
*.sql
98+
99+
.lesshst
100+
.viminfo
101+
.zcompdump
102+
.zshrc
103+
LOGS/
104+
bin/
105+
include/
106+
local/
107+
*.sql
108+
109+
#pydev
110+
.project
111+
.pydevproject
112+
*.sqlite3

docs/INSTALL.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## Development Environment
2+
Its super easy to set up our development environment
3+
4+
## Collect Pre-requisites
5+
Install `python-pip`, `python-dev` and `virtualenvwrapper`
6+
```bash
7+
sudo apt-get install python-pip python-dev memcached
8+
sudo pip install virtualenvwrapper
9+
```
10+
## Get the files
11+
You can clone it directly from [https://bitbucket.org/tonythomas01/doctorkanu](https://bitbucket.org/tonythomas01/doctorkanu)
12+
```bash
13+
git clone [email protected]:tonythomas01/doctorkanu.git
14+
```
15+
## Setup development environment
16+
First, some initialization steps. Most of this only needs to be done
17+
one time. You will want to add the command to source
18+
`/usr/local/bin/virtualenvwrapper.sh` to your shell startup file
19+
(`.bashrc` or `.zshrc`) changing the path to `virtualenvwrapper.sh`
20+
depending on where it was installed by `pip`.
21+
```bash
22+
export WORKON_HOME=~/Envs
23+
mkdir -p $WORKON_HOME
24+
source /usr/local/bin/virtualenvwrapper.sh
25+
```
26+
Lets create a virtual environment for our project
27+
```bash
28+
mkvirtualenv doctorkanu
29+
workon doctorkanu
30+
```
31+
## Install requirements
32+
All the requirements are mentioned in the file `requirements.txt`.
33+
```bash
34+
pip install -r requirements.txt
35+
```
36+
37+
## Setup database
38+
Setup tables in the DB
39+
```bash
40+
python manage.py syncdb
41+
```
42+
Collect all the static files for fast serving
43+
```bash
44+
python manage.py collectstatic
45+
```
46+
## Run server
47+
```bash
48+
python manage.py runserver
49+
```
50+

manage.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env python
2+
import os
3+
import sys
4+
5+
if __name__ == "__main__":
6+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thinkfoss.settings")
7+
8+
from django.core.management import execute_from_command_line
9+
10+
execute_from_command_line(sys.argv)

0 commit comments

Comments
 (0)