File tree Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -37,25 +37,12 @@ Demo: http://dj.lxer.eu
37
37
- $ cd project
38
38
- $ source bin/activate
39
39
40
- - Now there are 2 options: either run install.sh
40
+ - run install.sh :
41
41
- $ source <(wget -qO- https://raw.githubusercontent.com/allox/django-base-template/master/install.sh )
42
42
43
- or run the following manually:
44
-
45
- - $ pip install Django
46
- - $ bin/django-admin.py startproject --template https://github.com/allox/django-base-template-1.8/zipball/master --extension py,md,rst mainapp
47
- - $ mv mainapp/ src
48
- - $ cd src
49
- - Uncomment your preferred database adapter in requirements/compiled.txt (MySQL, Postgresql, or skip this step to stick with SQLite)
50
- - $ pip install -r requirements/local.txt
51
- - $ cp mainapp/settings/local-dist.py mainapp/settings/local.py
52
- - $ chmod +x manage.py
53
- - $ ./manage.py makemigrations
54
- - $ ./manage.py migrate
55
- - $ ./manage.py createsuperuser
56
- - $ ./manage.py collectstatic
57
- - $ ./manage.py runserver
43
+ (To see what actually happens check https://raw.githubusercontent.com/allox/django-base-template/master/install.sh )
58
44
45
+ ...and that's all!
59
46
60
47
61
48
Original file line number Diff line number Diff line change 1
1
""" Views for the base application """
2
2
3
3
from django .shortcuts import render , render_to_response , HttpResponseRedirect
4
+ import django
4
5
5
6
def home (request ):
6
7
""" Default view for the root """
7
- return render (request , 'base/home.html' )
8
+ djangoversion = django .get_version ()
9
+ return render (request , 'base/home.html' ,{'djangoversion' :djangoversion })
10
+
11
+
12
+ return render (request , 'base/home.html' )
8
13
9
14
def profile (request ):
10
15
return render (request , "user/profile.html" )
You can’t perform that action at this time.
0 commit comments